Channels: rate limit / throttle?

211 views
Skip to first unread message

Karma Kolabor

unread,
Sep 10, 2016, 8:19:50 AM9/10/16
to phoenix-talk
Hi,

does phoenix / elixir provide some facility to do rate limiting and / or throttling on channels or are there libraries available that might help me to implement this feature the right way? 

If it needs to be done from ground up, how to do that in an elixiry way - I guess you would build some kind of agent to monitor sockets and act on set limits?

Any code examples to learn from would be very appreciated, 
thanks again for your attention!


Marcus F

unread,
Sep 10, 2016, 7:59:38 PM9/10/16
to phoenix-talk

Karma Kolabor

unread,
Sep 12, 2016, 6:03:59 AM9/12/16
to phoenix-talk
Thanks, very interesting!

I feel like aometing like this should be provided by phoenix - it is such a basic requirement for any site. Not having this in phoenix is similar to a forum software that has no spam protection mechanisms - yes, people will use it, but they actually installed a timebomb that *will* blow up at some day.

Also the documentation about channels should cover this very important topic. You just can not put that weapon into the hands of children without protecting them :)

Thank you very much for your attention!
Have a nice day!

Karma Kolabor

unread,
Sep 12, 2016, 7:39:40 AM9/12/16
to phoenix-talk
BTW that was a plug - from what I understand I can not use plug code in channels. 

 
Reply all
Reply to author
Forward
0 new messages