gRPC Communication Patterns
Service Dashboard
Four demo services, one for each way gRPC can communicate.
Pick a service to see its real .proto contract and a live
in-browser simulation of how messages flow between client and server.
⇄
Unary
Greeter
The simplest pattern. The client sends one request and gets exactly one response back, like a normal function call.
1 request → 1 response
⇊
Server streaming
PriceFeed
The client asks once, and the server keeps sending a stream of responses over time (e.g. live stock prices).
1 request → many responses
⇈
Client streaming
FileUpload
The client streams many messages (e.g. file chunks) and the server replies once at the end with a summary.
many requests → 1 response
⇆
Bidirectional streaming
Chat
Both sides stream messages independently and at the same time, like a live chat room.
many ↔ many, at once
Note: This is a teaching tool. PHP on shared hosting can act as a gRPC
client but cannot run a gRPC server (that needs the grpc/protobuf
C extensions and protoc). So the demos below simulate each pattern in the
browser, while showing you the genuine
.proto definitions used in real gRPC.