Expand description
§Axum Realtime Kit
A toolkit for building scalable, real-time applications with Axum, WebSockets, and Redis Pub/Sub. This crate provides generic building blocks to help you focus on your application’s business logic instead of the boilerplate for managing connections and state.
§Core Features
- Generic
WebsocketService: Manages the entire lifecycle of WebSocket connections. - Redis Pub/Sub Integration: Horizontally scale your service across multiple instances.
- Pluggable Logic: Use the
MessageHandlertrait to define your application’s behavior. - Flexible Authentication: A generic
WsAuthextractor that works with headers or query params. - Request Coalescing (Optional): A generic
CoalescingServiceto prevent dogpiling on expensive operations.
§Getting Started
See the documentation for the ws module for a full example of how to set up the WebsocketService.