
Centrifugo
Scalable real-time messaging server with WebSocket support
Replaces Pusher, Ably, Pubnub

Who it's for
Use Centrifugo for notifications, collaboration state, chats, and dashboards where the core app publishes events to connected clients.
Skip if server-sent events or periodic polling are enough for your latency needs.
It fits teams that want to move Pusher-style workloads onto their own infrastructure for cost or control reasons.
Skip if you need a fully managed realtime service and do not want to run socket infrastructure.
The problem
Realtime features look simple until thousands of clients need reliable fan-out, authorization, reconnect behavior, and presence state. Custom WebSocket code tends to leak application complexity into the transport layer, while hosted realtime APIs can become expensive or restrictive once traffic grows.
How it works
Handles WebSocket and realtime messaging patterns so the application backend can publish events instead of managing every client socket.
Centrifugo sits beside existing backends, which lets teams keep their app in any language while using a dedicated realtime server.
Supports common realtime primitives such as channels and connection state that products need for collaboration, notifications, and live dashboards.
Features
- Realtime client fan-out
- Language-agnostic backend integration
- Presence and channel patterns
Recommended for this setup
Strengths
- Dedicated realtime layer: Teams avoid embedding socket lifecycle code directly into the main application server, which keeps realtime delivery easier to scale and observe.
- Apache-2.0 self-hosted option: The Apache-2.0 repository gives teams a permissive path for commercial use and infrastructure ownership.
Trade-offs
- Requires an application-side auth design: Centrifugo does not remove the need to decide who can subscribe, publish, or see presence. Teams still need a clean token and permission model.
Tech stack
FAQ
Centrifugo is used to add realtime messaging, pub/sub, and client fan-out to web and mobile applications.
Yes. Centrifugo is distributed as server software that can run alongside your existing backend.
No. It provides the realtime messaging layer. You still build product-specific chat UI, persistence, moderation, and permissions.