This looks very close to my issue. https://stackoverflow.com/questions/64050027/how-to-configure-grpc-http-2-flow-control-in-python On Monday, February 28, 2022 at 5:40:52 PM UTC-5 Asheley Shawn Lee wrote:
> 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 grpc-io+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/50023b7e-a6cf-4e59-aba3-ecc914e9092fn%40googlegroups.com.