talira

Centrifugo

Scalable realtime messaging and state sync for any stack

open coreApache-2.0self-hostablefree

Centrifugo is a self-hosted real-time messaging server, written in Go, that holds persistent client connections over WebSocket, HTTP-streaming, SSE, WebTransport and gRPC and gives your backend a simple publishing API, so any application can add live updates without changing its architecture. It provides PUB/SUB messaging and state synchronization with flexible auth, several kinds of subscriptions, channel history, online presence, delta updates and proxying of connection events to your backend, with a JSON or binary Protobuf client protocol. Official client SDKs cover JavaScript, Dart, Swift, Java, Go, Python, Rust and C#. It scales across nodes with Redis (or Redis Cluster and compatible stores such as Valkey, DragonflyDB, KeyDB, AWS ElastiCache and Google Memorystore), PostgreSQL or NATS as the broker. Typical uses are chats, live comments, dashboards, multiplayer games, financial feeds, IoT tracking and streaming AI responses. Centrifugo PRO, a commercial self-hosted edition under one flat company licence, adds push notifications, ClickHouse analytics, SSO and an audit log for the admin UI, rate limiting and performance optimizations.

Problems it solves

  • add real-time updates to my app over WebSockets without rewriting the backend
  • a self-hosted alternative to Pusher or Ably
  • broadcast a message to thousands or millions of connected clients
  • stream AI model responses to the browser with reconnects and resumable streams
  • build a chat or live comments feature with presence and history
  • scale WebSocket connections across several servers with Redis or NATS

Features

  • WebSocket, HTTP-streaming, SSE, WebTransport and gRPC transports
  • server publishing API
  • channel history, online presence and delta updates
  • proxying connection events to the backend
  • JSON or binary Protobuf client protocol
  • official SDKs for JavaScript, Dart, Swift, Java, Go, Python, Rust and C#
  • scaling with Redis, Redis Cluster and compatible stores, PostgreSQL or NATS
  • PRO: push notifications through FCM, APNs, HMS and WebPush
  • PRO: ClickHouse analytics, tracing, SSO/OIDC for the admin UI and audit log

Limitations

  • Push notifications, ClickHouse analytics, SSO for the admin UI, operation rate limiting and other features need Centrifugo PRO, which is sold only to companies.1

Ways to run it

Centrifugo

You run it, Apache-2.0

free

Not included

  • the Centrifugo PRO features: push notifications, ClickHouse analytics, SSO/OIDC and audit log for the admin UI, operation rate limiting, token revocation and performance optimizations1

You arrange

  • Redis, PostgreSQL or NATS as a broker to run more than one node

Self-hosting docs

Centrifugo PRO

You run it, under a commercial licence

flat company licence, quote on request

Only in this edition

  • push notifications
  • ClickHouse analytics
  • SSO/OIDC and audit log for the admin UI
  • operation rate limiting
  • one year of prioritized support and updates

You arrange

  • Redis, PostgreSQL or NATS as a broker to run more than one node

Self-hosting docs

Capabilities

Has an APIplan not known
Has a command line toolplan not known
Has official SDKsplan not known
Sends webhooksplan not known

Alternatives

The same job

These do what Centrifugo does.

  1. Pusher Channels Hosted WebSocket pub/sub API for realtime features in web and mobile apps
  2. Ably Realtime platform for chat, AI and live apps at scale
  3. Socket.IO Bidirectional and low-latency communication for every platform
  4. PubNub Real-time messaging network and APIs for chat, live events, IoT and collaboration

Compare Centrifugo with the top 3