Centrifugo API

An open-source, self-hosted real-time messaging server that provides publish/subscribe channels over WebSocket, SSE, and HTTP streaming, with an HTTP and gRPC server API for publishing messages and managing channels from backend agents.

Evaluated Mar 07, 2026 (0d ago) vcurrent
Homepage ↗ Repo ↗ Communication self-hosted open-source pub-sub realtime websocket grpc hmac
⚙ Agent Friendliness
60
/ 100
Can an agent use this?
🔒 Security
85
/ 100
Is it safe for agents?
⚡ Reliability
79
/ 100
Does it work consistently?

Score Breakdown

⚙ Agent Friendliness

MCP Quality
--
Documentation
86
Error Messages
80
Auth Simplicity
72
Rate Limits
80

🔒 Security

TLS Enforcement
90
Auth Strength
84
Scope Granularity
82
Dep. Hygiene
86
Secret Handling
84

Security posture is entirely operator-controlled in self-hosted deployments. TLS configuration is the operator's responsibility. HMAC secret and JWT signing key must be carefully managed. No third-party compliance certifications apply — the operator's own certification covers the deployment.

⚡ Reliability

Uptime/SLA
70
Version Stability
84
Breaking Changes
82
Error Recovery
80
AF Security Reliability

Best When

Best when an organization requires full data sovereignty and self-hosted real-time messaging, has the infrastructure capability to operate it, and wants to avoid per-message cloud billing.

Avoid When

Avoid when the team lacks DevOps capacity to operate, scale, and monitor a self-hosted real-time server, or when a managed SLA is required.

Use Cases

  • Publish real-time events from agent workflows to connected browser or mobile clients without relying on a third-party cloud service
  • Build private-cloud or air-gapped real-time communication infrastructure where data cannot leave self-hosted environments
  • Implement live dashboard updates by having agents publish processed metrics directly to subscriber channels
  • Create scalable notification delivery systems where agent-generated alerts are broadcast to thousands of WebSocket subscribers
  • Use the gRPC API for high-throughput, low-latency inter-service publishing in microservice architectures

Not For

  • Teams without infrastructure expertise to operate and maintain a self-hosted server — Centrifugo has no managed cloud offering with SLA guarantees
  • Applications requiring built-in chat features like message history, reactions, or threading without substantial custom development
  • Startups wanting a fully managed service with zero operational overhead — self-hosting carries ongoing ops burden

Interface

REST API
Yes
GraphQL
No
gRPC
Yes
MCP Server
No
SDK
Yes
Webhooks
Yes

Authentication

Methods: api_key jwt hmac
OAuth: No Scopes: Yes

Server API calls use a shared HMAC secret or API key in the Authorization header. Client connections use JWTs signed with the server secret, containing claims for channel subscription permissions. Namespace-level permission scoping is supported.

Pricing

Model: free
Free tier: Yes
Requires CC: No

Self-hosting means infrastructure costs fall on the operator. There is no per-message or per-connection billing from Centrifugo itself.

Agent Metadata

Pagination
none
Idempotent
No
Retry Guidance
Documented

Known Gotchas

  • No built-in message persistence by default — messages published when no subscribers are connected are lost unless history is explicitly configured per-channel
  • JWT token generation must be implemented correctly server-side; incorrect claims cause silent subscription failures on the client without clear server-side logging
  • Scaling beyond a single server requires Redis or Tarantool for the broker backend — this architectural requirement is easy to miss in initial deployment
  • The HTTP API and gRPC API have slightly different request structures for the same operations, causing confusion when switching between them
  • Centrifugo PRO features are not clearly delineated from open-source features in all documentation pages, leading to implementing features that require a paid license

Alternatives

Full Evaluation Report

Comprehensive deep-dive: security analysis, reliability audit, agent experience review, cost modeling, competitive positioning, and improvement roadmap for Centrifugo API.

AI-powered analysis · PDF + markdown · Delivered within 30 minutes

$99

Package Brief

Quick verdict, integration guide, cost projections, gotchas with workarounds, and alternatives comparison.

Delivered within 10 minutes

$3

Score Monitoring

Get alerted when this package's AF, security, or reliability scores change significantly. Stay ahead of regressions.

Continuous monitoring

$3/mo

Scores are editorial opinions as of 2026-03-07.

6228
Packages Evaluated
26150
Need Evaluation
173
Need Re-evaluation
Community Powered