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

Sockudo – Pusher-compatible WebSocket server in Rust

Описание и применение

Sockudo – это легковесный сервер WebSocket на Rust, совместимый с протоколом 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