Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Sockudo – Pusher-compatible WebSocket server in Rust

说明与用途

Sockudo 是一个轻量级、兼容 Pusher 协议的 WebSocket 服务器,可在 Docker 或 Kubernetes 上自托管,提供低内存占用、Prometheus 指标和水平扩展适配器,允许客户端无需更改代码即可切换。

问题

Need a self‑hosted, low‑resource WebSocket server that speaks the Pusher protocol so existing front‑end clients can be switched to a self‑hosted backend without code changes.

结果

Sockudo provides a lightweight, Pusher‑compatible WebSocket server that can be self‑hosted with Docker or Kubernetes, offering built‑in metrics, TLS, CORS, and horizontal scaling adapters, enabling organizations to replace third‑party services without front‑end changes.

工作流

  • 1. Pull the Sockudo image or install via cargo.
  • 2. Configure environment variables for database, Redis, and authentication backends.
  • 3. Run docker run -d -p 6001:6001 sockudo/sockudo:latest or use the provided Makefile for common tasks.
  • 4. Point Pusher‑compatible clients (e.g., Laravel Echo) to the Sockudo endpoint without code changes.
  • 5. Monitor performance and metrics via Prometheus/Grafana dashboards.
  • 6. Scale horizontally using Redis, Redis Cluster, or NATS adapters as needed.

证据

Sockudo speaks the Pusher protocol, so if you’re already using Pusher client libraries (like Laravel Echo), you can point them at Sockudo without changing your frontend code.

来源

It runs with Tokio for async, uses fastwebsockets for the WebSocket implementation, and the whole thing is pretty lean on memory.

来源

Getting started is straightforward: docker run -d -p 6001:6001 sockudo/sockudo:latest

来源

  • 记录日期: 2026-09-10T13:17:31.107Z