Rate Limiting in GRPC

73 views
Skip to first unread message

Husain Dalroti

unread,
Apr 20, 2023, 4:39:54 AM4/20/23
to grpc.io
Hi Team,

We want to achieve rate limiting on the number of messages to be send by each client on particular stream at cluster level.

If there is any documentation related to this , it would be much hepful.

Thanks !!

Sanjay Pujare

unread,
Apr 24, 2023, 11:21:22 PM4/24/23
to Husain Dalroti, grpc.io
So you want to limit the number of messages in an RPC? What’s the use-case?

--
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+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/243899cb-1abd-4fb2-a0b0-86fe96639fa4n%40googlegroups.com.

Husain Dalroti

unread,
Apr 27, 2023, 9:16:28 AM4/27/23
to grpc.io
Yes, we want to limit the number of messages.

Sanjay Pujare

unread,
Apr 27, 2023, 12:41:12 PM4/27/23
to Husain Dalroti, grpc.io
- is the limit static or dynamic?
- is the limit set on the client side i.e. the limit could be enforced completely on the client side before messages are sent out?
- so what do you want to happen when a client attempts to send a message above the limit? Should the RPC fail at the client 
side? Or should the server end the RPC with an error?
- or you don't want any RPC to fail but only throttle the message sending until something else happens

Since your high level use case is not clear I had to ask these questions.
 

Reply all
Reply to author
Forward
0 new messages