Socket acceptor pool for TCP protocols in Erlang
open sourceISCfree
Ranch is an Erlang library that accepts TCP connections for you, with a small code base and low latency, either run as its own application or embedded in yours. Each listener manages connections on one port with a chosen transport and protocol, limits how many connections run at once, and sorts them into pools that keep their own counts. The acceptor pool can be upgraded without closing open sockets.
Problems it solves
- accept TCP connections efficiently in an Erlang server
- limit concurrent socket connections in Erlang/Elixir
- build a custom TCP protocol server on the BEAM
Features
- TCP acceptor pool with pluggable transports and protocols
- limits on concurrent connections
- connection pools with their own counts
- upgrade the acceptor pool without closing open sockets
- run standalone or embedded
Alternatives
The same job
These do what Ranch does.
- Thousand Island A modern, pure Elixir socket server
