Popularity
0.7
Declining
Activity
0.0
Stable
5
0
1
Description
Elixir Plug for Ralitobu, the Rate Limiter with Token Bucket algorithm
Monthly Downloads: 2
Programming language: Elixir
License: MIT License
Ralitobu.Plug alternatives and similar packages
Based on the "HTTP" category.
Alternatively, view Ralitobu.Plug alternatives based on common mentions on social networks and blogs.
-
mint
Functional HTTP client for Elixir with support for HTTP/1 and HTTP/2 🌱 -
Crawly
Crawly, a high-level web crawling & scraping framework for Elixir. -
PlugAttack
A plug building toolkit for blocking and throttling abusive requests -
spell
Spell is a Web Application Messaging Protocol (WAMP) client implementation in Elixir. WAMP is an open standard WebSocket subprotocol that provides two application messaging patterns in one unified protocol: Remote Procedure Calls + Publish & Subscribe: http://wamp.ws/ -
web_socket
An exploration into a stand-alone library for Plug applications to easily adopt WebSockets. -
http_proxy
http proxy with Elixir. wait request with multi port and forward to each URIs -
explode
An easy utility for responding with standard HTTP/JSON error payloads in Plug- and Phoenix-based applications -
Mechanize
Build web scrapers and automate interaction with websites in Elixir with ease! -
mnemonic_slugs
An Elixir library for generating memorable slugs. -
uri_template
RFC 6570 compliant URI template processor for Elixir -
ivar
Ivar is an adapter based HTTP client that provides the ability to build composable HTTP requests. -
fuzzyurl
An Elixir library for non-strict parsing, manipulation, and wildcard matching of URLs. -
uri_query
URI encode nested GET parameters and array values in Elixir -
SpiderMan
SpiderMan,a base-on Broadway fast high-level web crawling & scraping framework for Elixir. -
lhttpc
What used to be here -- this is a backwards-compat user and repo m( -
http_digex
HTTP Digest Auth Library to create auth header to be used with HTTP Digest Authentication
Learn Elixir in as little as 12 Weeks
A structured learning environment with practical assignments, code reviews, weekly live coaching sessions, job-hunting assistance, and more. Try a Free Preview today!
Promo
learn-elixir.dev
Do you think we are missing an alternative of Ralitobu.Plug or a related project?
README
Ralitobu.Plug
Usage
# bucketize on remote IP, allow 10 req/s
plug Ralitobu.Plug, on_ip: true, limit: 10, lifetime: 1_000
Example
$ curl -i http://localhost:4000/
HTTP/1.1 200 OK
server: Cowboy
date: Sun, 24 Apr 2016 12:44:37 GMT
content-length: 12
cache-control: max-age=0, private, must-revalidate
ratelimit-limit: 3
ratelimit-remaining: 0
ratelimit-reset: 2
hello world
$ curl -i http://localhost:4000/
HTTP/1.1 429 Too Many Requests
server: Cowboy
date: Sun, 24 Apr 2016 12:44:38 GMT
content-length: 64
cache-control: max-age=0, private, must-revalidate
ratelimit-limit: 3
ratelimit-remaining: 0
ratelimit-reset: 1
retry-after: 1
content-type: application/json; charset=utf-8
{"status": 429, "error": "Too Many Requests", "retry_after": 1}