Re: [Discuss] Let the client perceive the rate limit

2021-11-01 Thread PengHui Li
If the producer has been throttled, we should return the exception to the user after exceeding the publish timeout. Otherwise, if a producer has been throttled for 1ms, the producer failed all the pending messages(ordering guarantee), this might introduce confusion and might introduce more workload

[Discuss] Let the client perceive the rate limit

2021-11-01 Thread linlin
Hi all: Now, Broker limits the rate of producing messages by setting `channel.setAutoRead(false)`. But no exception is returned to the client, or any log is printed, which makes it very difficult for us to troubleshoot the problem. The client timeout when sending messages and the connection will b