emqx / esockd

Erlang general non-blocking TCP/SSL socket server
https://www.emqx.com
Apache License 2.0
211 stars 84 forks source link

Rate limiting applied on communication to subscribers #75

Open rejji opened 6 years ago

rejji commented 6 years ago

Hello EMQ Team, Feng,

Rate limiting appear to be applied only to input flow from publishers to EMQ. Could it be applied to output flow from EMQ, if not, could you plan to provide the same. This can be useful when the available bandwidth to subscribers is limited or when the subscriber can run only at a slower or fixed rate. This is wrt mqtt.listener.ssl.rate_limit and mqtt.listener.tcp.rate_limit in 2.1.2 version.

Thanks.

emqplus commented 6 years ago

@rejji sorry for the delay. I am working on EMQ X R3.0 these days, and the rate limit and flow control features will be implemented according to the MQTT Version 5.0 specification.