Hello,
I have a gRPC server with 2 streams, both providing events. Messages are posted on these stream from the same thread. For testing I send a message from stream1, then stream2, etc. On client side I need to keep that order when receiving the messages.
By default on client side there are multiple threads that will come in the way, I was able to fix the issue on that side using a SerialExecutor (like the one documented in java.util.concurrent.Executor). Now my client is well receiving on one thread.
However the order of the messages is still wrong. For example, I can get 5 messages from stream1 in a row. My guess is that the server is opening multiple connection to serve the messages. How can I fix that and keep my messages in order?
Regards,
Bob