Description
We want to introduce gRPC-based communication for the Server-Driven UI (SDUI) system to replace or complement the existing REST/JSON approach.
The goal is to:
- Improve performance (binary serialization, HTTP/2)
- Enable strongly-typed UI contracts
- Support bi-directional streaming for real-time or progressive UI updates
- Make SDUI more scalable and maintainable across clients
- With gRPC, the server will send UI schemas / component trees defined via .proto messages, and the client will render the UI dynamically based on these definitions.
Requirements:
Additional Context
gRPC is preferred due to:
- Lower payload size vs JSON
- Contract-first development
- Better multi-platform client generation
- This enables A/B testing, feature flags, and remote UI experiments without app updates
Especially useful for:
- Home screens
- Dashboards
- Dynamic forms
- Experiment-heavy flows
Optional future extension:
Description
We want to introduce gRPC-based communication for the Server-Driven UI (SDUI) system to replace or complement the existing REST/JSON approach.
The goal is to:
Requirements:
Example: GetScreen(ScreenRequest) -> ScreenResponse
Additional Context
gRPC is preferred due to:
Especially useful for:
Optional future extension: