I'm looking for a way to control how many messages a client prefetches from a server.
For example: If a client is processing through a message every 60 seconds and the server has 100,000 messages to send to the client then the client will prefetch all 100,000 of the messages as it continues to process the messages asynchronously. Is there a way to reduce the size of the prefetch buffer on the client? I'm trying to use grpc.http2.lookahead_bytes option with no impact. In my testing I'm getting about 4MB of client cached messages before the client doesn't ask for any more. I have a POC that I can transfer over from my work machine to this forum but it's basically just a server with one method that yields as fast as possible and a client that receives the message and just sleeps for 60 seconds. -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/f14dac65-21a1-4bb4-b79f-38e13fda35a2n%40googlegroups.com.
