<div dir="ltr"><div>spent a few hours writing a erlang library for rate limiting within the vm.<br></div><div dir="ltr"><div><a href="https://github.com/ruanpienaar/tempo">https://github.com/ruanpienaar/tempo</a><br></div><div><br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Sep 21, 2018 at 7:40 AM Frank Muller <<a href="mailto:frank.muller.erl@gmail.com">frank.muller.erl@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Hi guys</div><div dir="auto"><br></div><div dir="auto">We have an HTTP web service based Cowboy which is receiving more and more traffic.</div><div dir="auto"><br></div><div dir="auto">We would like to implement a throttling mechanism per IP address to limit how many request/sec the same IP address can make.</div><div dir="auto"><br></div><div dir="auto">Is there any library out there for that?</div><div dir="auto">Or any (simple yet efficient) algorithm to implement?</div><div dir="auto"><br></div><div dir="auto">Ideas & feedabacks are very welcome. </div><div dir="auto"><br></div><div dir="auto">Thanks in advance.</div><div dir="auto"><br></div><div dir="auto">/Frank</div>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><span style="font-family:arial,helvetica,sans-serif;font-size:12px"><i>Erlang Solutions cares about your data and privacy; please find all details about the basis for communicating with you and the way we process your data in our </i></span><a href="https://www.erlang-solutions.com/privacy-policy.html" style="color:rgb(17,85,204);font-family:arial,helvetica,sans-serif;font-size:12px" target="_blank"><i>Privacy Policy</i></a><span style="font-family:arial,helvetica,sans-serif;font-size:12px"><i>.You can update your email preferences or opt-out from receiving Marketing emails <a href="http://www2.erlang-solutions.com/emailpreference" style="color:rgb(17,85,204)" target="_blank">here</a>.</i></span><br><div><span style="font-family:arial,helvetica,sans-serif;font-size:12px"><i><br></i></span></div><div><span style="font-family:arial,helvetica,sans-serif;font-size:12px"><i>Ruan Pienaar</i></span></div><div><span style="font-family:arial,helvetica,sans-serif;font-size:12px"><i>+44 7500 708 814</i></span></div></div></div>