You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feature Request: Add RPC method with multiple stream requests and one stream response
Overview
I'm proposing a new feature that allows the definition of gRPC methods where the server accepts multiple independent stream requests (e.g., two or more) and processes these streams concurrently, returning a single stream response.
Motivation
Currently, gRPC supports bidirectional streaming, where both client and server can stream data. However, it is limited to one request stream and one response stream. For some use cases, it would be useful for the server to handle multiple concurrent request streams (from the same client) while sending back a unified or processed stream as the response.
Use Cases
File transfer and processing: A client may stream two large files (or multiple files) concurrently to a server, which processes the data and streams back results in a single response stream.
Multi-data source streaming: Scenarios where a client needs to stream data from two independent sources (or more) and the server performs real-time merging or processing on those streams, then responds with a single stream of results.
Real-time collaboration applications: For applications requiring concurrent real-time input (e.g., from multiple sensors, cameras, or other data sources), the server can consume multiple streams of data, process them together, and return a single result.
Proposal
Introduce a new method signature in .proto files that allows for defining multiple request streams. For example:
Feature Request: Add RPC method with multiple stream requests and one stream response
Overview
I'm proposing a new feature that allows the definition of gRPC methods where the server accepts multiple independent stream requests (e.g., two or more) and processes these streams concurrently, returning a single stream response.
Motivation
Currently, gRPC supports bidirectional streaming, where both client and server can stream data. However, it is limited to one request stream and one response stream. For some use cases, it would be useful for the server to handle multiple concurrent request streams (from the same client) while sending back a unified or processed stream as the response.
Use Cases
Proposal
Introduce a new method signature in
.proto
files that allows for defining multiple request streams. For example:The text was updated successfully, but these errors were encountered: