Description
Centrifugo is an open-source, self-hosted real-time messaging server. It handles persistent client connections over WebSocket and other transports, and it gives your application a simple publishing API, so you can add live updates without changing the architecture of the app. The site positions it as an alternative to hosted services such as PubNub, Pusher and Ably, and to libraries such as Socket.IO and SignalR, and says it is language-agnostic, so any backend can publish to it. It is written in Go, and it is built on the Centrifuge library for Go. Its feature list includes flexible authentication, several subscription types, channel history, online presence, delta updates, and the ability to proxy connection events to your backend. Official SDKs cover web and mobile. To scale across several nodes it uses brokers such as Redis, Redis Cluster and compatible services, PostgreSQL, or NATS. The project has been used in production by several companies, and it is available as a Docker image: running docker run with port 8000 and the v6 image starts it in seconds. Centrifugo PRO is a commercial edition for enterprises.…
Highlights
- WebSocket and other transports with a publishing API
- Language-agnostic, self-hosted server
- Auth, presence, history and delta updates
- Scales with Redis, PostgreSQL or NATS
- Official web and mobile SDKs
Ratings & Reviews
No ratings yet
Be the first to rate Centrifugo.
People also visit
Centrifugo FAQ
What is Centrifugo?
A self-hosted real-time messaging server that delivers messages to connected clients over WebSocket and other transports.
Does it need changes to my app?
No. The site says it integrates with any application through a simple publishing API, so no change to the existing architecture is needed.
How does it scale?
Across several nodes, using brokers such as Redis, PostgreSQL or NATS.
How do I start it?
Run docker run -p 8000:8000 centrifugo/centrifugo:v6 centrifugo. The site lists other install options too.
What does PRO add?
Analytics with ClickHouse, real-time tracing, performance optimizations, a push notification API and SSO for the web UI.
Why is my client disconnected on first connect?
Often because no credentials were provided. The FAQ also says to check allowed_origins, and to avoid client.insecure in production.
What are the best Centrifugo alternatives?
Popular alternatives to Centrifugo include AnyCable, Server and deepstream.io. See all Centrifugo alternatives

