Skip to content

shellrean/borderland-rust-server-sent-event

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“‘ Axum SSE Broadcast Server

This project is a lightweight real-time messaging server built with Axum, using Server-Sent Events (SSE) and topic-based broadcasting. It allows clients to subscribe to specific topics and receive live messages pushed from the server.


πŸš€ Features

  • πŸ”„ Real-time streaming via Server-Sent Events (SSE)
  • πŸ“¨ Topic-based broadcasting using tokio::broadcast
  • 🧡 Thread-safe shared state with Arc<Mutex<...>>
  • ⚑ Built with async Rust using tokio and axum

πŸ“ Project Structure

AppState

struct AppState {
    topics: Arc<Mutex<HashMap<String, broadcast::Sender<BroadcastMessage>>>>,
}

About

The system is designed to handle real-time updates efficiently without requiring WebSockets.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages