- 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.