maximum message rate in vernemq.conf

29 views
Skip to first unread message

ansari mustafa

unread,
May 26, 2023, 7:39:44 AM5/26/23
to vernemq-users
Hi,

I am new to vernemq, I have been exploring vernemq for putting limit on publishing message. I went through the documentation, there I got max_message_rate, but we can only restrict the message in second. but I want to restrict user/client 10 message per minute.
 
can someone help me how I can achieve.

vernemq version: 1.10.2

André Fatton

unread,
May 31, 2023, 3:24:21 AM5/31/23
to vernemq-users
Hi,
Your current alternative for max_message_rate is to use the throttle modifier in auth_on_publish hooks. The idea behind this is to give the decision on how to throttle publishers to a plugin. I think there's currently no example of this in the documentation; the rater limiter test suite might help you to get an idea: https://github.com/vernemq/vernemq/blob/2cdc23d2125ac66302dcbbd0fba91f51187644c2/apps/vmq_server/test/vmq_rate_limiter_SUITE.erl
Cheers,
André
Reply all
Reply to author
Forward
0 new messages