qmetrics.net

Centrifugo

Self-hosted scalable real-time pub/sub messaging server

Centrifugo screenshot

Centrifugo delivers channel-based real-time messages to online clients over WebSocket, SSE, HTTP streaming, gRPC, and WebTransport. Backends publish via HTTP or gRPC APIs.

Overview

Centrifugo is a real-time messaging server built around channel subscriptions, so applications treat it as a user-facing publish and subscribe layer separate from business logic. Client devices connect with official SDKs or unidirectional transports, while your application server publishes events into named channels.

The server supports several wire transports and scales across nodes using Redis, PostgreSQL, or NATS for coordination. Features include flexible authentication, subscription multiplexing, channel history with reconnect recovery, presence, RPC to backends, JSON or Protobuf payloads, and an embedded admin web UI with Prometheus metrics.

Deployment is commonly started via Docker or native packages, with documentation covering production configuration and client quickstarts. The design targets chat, live comments, dashboards, multiplayer sync, IoT feeds, and streaming AI token delivery where many subscribers must receive the same publication efficiently.

Centrifugo is language-agnostic: any backend can integrate through a simple publishing API while clients subscribe through the supported transports and SDKs.

Key features

  • Channel-based pub/sub for online users
  • WebSocket, SSE, and HTTP streaming transports
  • Redis, PostgreSQL, or NATS multi-node scaling
  • JWT and proxy connection authentication
  • Message history and reconnect recovery
  • Online presence and join or leave events
  • HTTP and gRPC backend publish API
  • Embedded admin UI and Prometheus metrics

Use cases

  • Real-time chat and messaging
  • Live dashboards and metrics streaming
  • Multiplayer game state sync
  • AI response token streaming to browsers
  • Fan-out live data feeds to many clients

Open-source alternative to

Ably
“Centrifugo is an open-source real-time messaging server — a self-hosted alternative to PubNub, Pusher, Ably, Socket.IO, Phoenix.PubSub & SignalR.” source
PubNub
“Centrifugo is an open-source real-time messaging server — a self-hosted alternative to PubNub, Pusher, Ably, Socket.IO, Phoenix.PubSub & SignalR.” source
Pusher
“Centrifugo is an open-source real-time messaging server — a self-hosted alternative to PubNub, Pusher, Ably, Socket.IO, Phoenix.PubSub & SignalR.” source

Tags

Compare Centrifugo

Similar software

Socket.IO

Bidirectional real-time communication for web and Node

Socket.IO enables low-latency, event-based communication between clients and servers. It prefers WebSockets and falls back to HTTP long-polling when needed.

★ 63.3k⟳ 4 days agoMIT
Frameworks & PlatformsDesktop/CLI app

ntfy

HTTP pub-sub push notification service

Ntfy sends push notifications to phones and desktops via simple HTTP PUT or POST requests and a REST API, without requiring sign-up on the public host.

★ 35.8k⟳ todayApache-2.0

Celery

Distributed task queue for Python workers and brokers

Celery distributes units of work called tasks from client applications to worker processes through a message broker. It supports RabbitMQ, Redis, Amazon SQS, and other transports with retries and scheduling features.

★ 29.3k⟳ yesterdayBSD-3-Clause

NSQ

Realtime distributed message queue and pub-sub platform

NSQ is a distributed messaging system built for large-scale throughput. It avoids single points of failure and ships with official Go and Python client libraries.

★ 25.8k⟳ 3 months agoMIT

Redisson

Java client and real-time data platform for Valkey and Redis

Redisson is a Java client for Valkey and Redis with synchronous, asynchronous, reactive, and RxJava APIs. It adds distributed collections, locks, queues, caching helpers, and related services on top of standard Valkey or Redis deployments.

★ 24.4k⟳ 4 days agoApache-2.0

whatsapp-web.js

Node.js client for WhatsApp Web automation

whatsapp-web.js drives WhatsApp Web through Puppeteer so Node programs can send, receive, and manage chats with many web-client features. It targets multi-device accounts and documents session auth strategies.

★ 23k⟳ 3 days agoApache-2.0
Integration PlatformsDesktop/CLI app