Messaging Pattern

Bidirectional Streaming

Bidirectional streaming is when a continuous flow of messages is sent between sender and receiver as well as between receiver and sender.

An example of bidirectional streaming is gRPC. gRPC runs under HTTP/2, which allows a sender to establish a constant connection to a receiver. Once connected, data can flow back and forth between sender and receiver in a continuous stream.