Skip to content

Centrifugo

Self-hosted real-time messaging server for adding WebSocket pub/sub to any backend

Permissive (OSI) · Apache-2.0
  • Self-hosted

Listed by , founder & editor

85

Health

Thriving

Overview

Stars

11,023

Last commit

yesterday

Nov 2026

Repository age

11 years

since Mar 2015

Latest version

v6.10.3

Nov 2026

Contributors

–

6 active in 90 days

Releases

24

last 12 months

Language

Go

Centrifugo is a real-time messaging server written in Go. It delivers messages to connected users over WebSocket, HTTP streaming, Server-Sent Events, GRPC and experimental WebTransport. Clients subscribe to channels, and your backend publishes into them through a simple HTTP or GRPC API.

It works with any backend language. Typical uses include chat, live comments, collaborative tools, data dashboards and streaming AI responses. Authentication uses JWT or proxy requests to your backend. Channels support history with recovery after reconnect, presence with join and leave events, and delta compression. You can scale it with Redis or compatible stores, PostgreSQL or NATS. Consumers for PostgreSQL and Kafka support outbox and CDC patterns.

It ships as a Docker image with an embedded admin UI, and as native binaries, packages and Homebrew. It is Apache 2.0 licensed and positioned as a self-hosted alternative to PubNub, Pusher, Ably, Socket.IO, Phoenix.PubSub and SignalR.

Who it's for

Backend teams adding live features to an existing app

You publish over HTTP or GRPC and keep business logic in your own stack.

Skip if: You want a full chat product with a ready-made interface.

Teams paying for hosted real-time services

You can run it yourself and scale with Redis, PostgreSQL or NATS.

Skip if: You do not want to operate your own infrastructure.

Developers building streaming AI or collaborative tools

Channel history, presence and recovery handle reconnects and shared state.

Skip if: Your app needs only simple request-response calls.

The problem it solves

Adding live updates to an app usually means a paid hosted service or a custom WebSocket layer that is hard to scale. Centrifugo gives you a standalone pub/sub server you run yourself and connect to any backend.

Strengths

  • Supports WebSocket, HTTP streaming, SSE, GRPC and WebTransport
  • Scales through Redis, PostgreSQL or NATS
  • Channel history with automatic recovery after reconnect
  • Presence info and join/leave notifications
  • Docker quick start with an embedded admin UI

Trade-offs

  • You must operate and secure the server yourself
  • WebTransport support is experimental
  • Official SDKs are needed on the client side, or a unidirectional setup
  • Scaling beyond one node requires Redis, PostgreSQL or NATS

Self-host Centrifugo

Self-hostable
Yes
Docker Compose
The repository ships a Compose file

Quick start

docker run -it --rm -p 8000:8000 centrifugo/centrifugo:latest centrifugo \
  --client.insecure --admin.enabled --admin.insecure

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Is Centrifugo free?

Yes. It is open source under the Apache 2.0 license.

Can I self-host it?

Yes. It runs from a Docker image or native binaries.

Which transports are supported?

WebSocket, HTTP streaming, Server-Sent Events, GRPC and experimental WebTransport.

Which backend languages work?

Any. Your backend talks to it over an HTTP or GRPC API.

Similar tools in Integration and messaging platforms

Soketi

Integration and messaging platforms

Self-hosted WebSockets server that speaks the Pusher protocol, for developers cutting

5.6k 362 3 years ago Dormant AGPL-3.0

CMAK

Integration and messaging platforms

Web UI for inspecting and administering Apache Kafka clusters, now dormant

12k 2.5k 4 years ago Dormant Apache-2.0

AutoMQ

Integration and messaging platforms

Kafka-compatible streaming on S3 storage for teams cutting cloud storage and traffic costs

11k 809 today Thriving Apache-2.0

Revert

Integration and messaging platforms

Self-hosted unified API for CRM, chat and ticketing integrations in B2B products

1k 122 2 years ago Dormant AGPL-3.0

Replaces Merge.dev

kafka-ui

Integration and messaging platforms

Web UI for monitoring and managing Apache Kafka clusters, topics and consumers

2.9k 460 yesterday Active Apache-2.0

connect

Integration and messaging platforms

Self-hosted integration engine for moving and translating HL7 healthcare messages

1.2k 476 2 months ago Slowing MPL-2.0