Crate axum_realtime_kit

Crate axum_realtime_kit 

Source
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 MessageHandler trait to define your application’s behavior.
  • Flexible Authentication: A generic WsAuth extractor that works with headers or query params.
  • Request Coalescing (Optional): A generic CoalescingService to 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.


Modules§

auth
Example
prelude
Public prelude for convenience.
ws