Replies: 3 comments 3 replies
-
You can use flow control to avoid overwhelming a receiver and also not wait unnecessarily before sending. |
Beta Was this translation helpful? Give feedback.
-
A repro or code snippet will be helpful to diagnose the exception. |
Beta Was this translation helpful? Give feedback.
-
Performance should not be a concern when you use onReady handler before writing. If you see a performance difference, they can set onReadyThreshold "Invalid protobuf byte sequence" in the exception you posted means the server is probably calling onNext() from multiple threads and causing corruption. |
Beta Was this translation helpful? Give feedback.
-
My Usecase:
I want to implement bidirectional streaming using java. My usecase has typically 200-2500 messages or requests and each would have an average size of 40kb to be sent to server and recieve the response subsequently. What would be the best approach to send these requests and process responses so that both client and server are not overloaded.Should we batch requests,add some delay,do processing on different threads,etc. Please help with any inputs or approaches based on your experience.Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions