Skip to content
FossShelf
Home / Categories / For API Developers

Centrifugo

Scalable real-time messaging server with WebSocket support

Replaces Pusher, Ably, Pubnub

10.98K starsApache-2.0reviewed 9 Jan 2025last commit 16 Nov 2026
Screenshot of Centrifugo

Who it's for

Backend teams adding live product updates

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.

SaaS teams replacing hosted realtime APIs

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

Realtime client fan-out

Handles WebSocket and realtime messaging patterns so the application backend can publish events instead of managing every client socket.

Language-agnostic backend integration

Centrifugo sits beside existing backends, which lets teams keep their app in any language while using a dedicated realtime server.

Presence and channel patterns

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

Languages
Go, PLpgSQL, Shell, HTML, Python, Makefile, JavaScript, Lua, Dockerfile
Frameworks
gRPC, Socket.IO
Databases
Redis
Tooling
HTTP/3, Server-Sent Events, WebSocket, WebTransport

FAQ

What is Centrifugo used for?

Centrifugo is used to add realtime messaging, pub/sub, and client fan-out to web and mobile applications.

Is Centrifugo self-hosted?

Yes. Centrifugo is distributed as server software that can run alongside your existing backend.

Is Centrifugo a full chat app?

No. It provides the realtime messaging layer. You still build product-specific chat UI, persistence, moderation, and permissions.

Similar tools

More in API Developers