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

Sockudo – Pusher-compatible WebSocket server in Rust

说明与用途

Sockudo 是一个轻量级的 Rust WebSocket 服务器,兼容 Pusher 协议,可通过 Docker 或 Kubernetes 部署,支持水平扩展,并通过 Prometheus 和 Grafana 进行监控。

问题

Organizations using Pusher, Laravel Reverb, or Soketi need a self‑hosted, low‑resource WebSocket server that supports the same client libraries without code changes.

结果

Sockudo delivers a lightweight, high‑performance, Pusher‑compatible WebSocket server that can be deployed in Docker or Kubernetes, supports horizontal scaling, offers built‑in observability, and requires no changes to existing client code.

工作流

  • 1. Pull the Sockudo image or install via cargo.
  • 2. Configure backend adapters (Redis, NATS, etc.) and app‑config storage (MySQL, PostgreSQL, DynamoDB).
  • 3. Set environment variables for authentication, rate‑limiting, and metrics.
  • 4. Run docker run -d -p 6001:6001 sockudo/sockudo:latest or start the binary.
  • 5. Point existing Pusher client libraries (e.g., Laravel Echo) to the Sockudo endpoint without code changes.
  • 6. Monitor performance with built‑in Prometheus metrics and Grafana dashboards.
  • 7. Scale horizontally using modular adapters (Redis Cluster, NATS).

证据

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.

来源

  • 记录日期: 2026-09-21T19:45:21.820Z