# Ranch

> Socket acceptor pool for TCP protocols in Erlang

Source: https://talira.ai/catalog/ranch-7q9kykv9
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / sockets](https://talira.ai/categories/libraries/sockets), [languages / erlang](https://talira.ai/categories/languages/erlang)
- Licence: ISC[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Loïc Hoguin](https://talira.ai/orgs/loic-hoguin.md)

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.

## Links

- GitHub: https://github.com/ninenines/ranch
- Docs: https://ninenines.eu/docs/en/ranch/2.4/guide

## 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

## Trust

Overall: 0.61 out of 1.
Signals: maintenance 1.00, adoption 0.62, momentum 0.27, community 0.67, backing 0.30, extensibility 0.00.

- last commit 4 days ago
- 78 commits in the last 90 days
- 1.2k GitHub stars
- 47 contributors
- accepts sponsorship (Github, Custom)
- backed by Loïc Hoguin

## Alternatives

- [Thousand Island](https://talira.ai/catalog/thousand-island-4tw7vrdd.md): A modern, pure Elixir socket server

## Sources

[^1]: https://github.com/ninenines/ranch/blob/master/README.asciidoc (checked 28 Nov 2026)
[^2]: https://github.com/ninenines/ranch/blob/master/LICENSE (checked 28 Nov 2026)
