A proof-of-concept application demonstrating real-time updates from MongoDB to a web browser using Rust, Axum, and Server-Sent Events (SSE).
- Real-time MongoDB change stream monitoring
- Server-Sent Events (SSE) for push notifications
- Lightweight client-side JavaScript implementation
- Zero client-side dependencies
-
Backend
- Rust
- Axum - Web framework
- MongoDB Rust Driver
- Tokio - Async runtime
-
Frontend
- JavaScript
- Server-Sent Events (SSE)
- HTML5
- Rust (latest stable version)
- MongoDB 4.0 or higher (with replica set enabled)
- The Rust backend establishes a change stream with MongoDB
- Changes are broadcast to all connected clients using SSE
- The client-side JavaScript renders updates in real-time
This is a proof-of-concept project and should not be used in production without proper security measures and error handling.
This project is licensed under the MIT License - see the LICENSE file for details.