Rabbit-SSE-Integrator is a lightweight service written in Rust that integrates RabbitMQ with Server-Sent Events (SSE).
It allows backend services to publish messages to RabbitMQ and automatically streams them to web clients in real time using SSE.
- 🚀 High-performance Rust backend.
- 🔗 Real-time message streaming via SSE.
- 🐇 RabbitMQ integration for event-driven architecture.
- 🐳 Docker-ready for easy deployment.
- ⚡ Lightweight and fast.
.
├── src/ # Source code
├── Dockerfile # Docker build file
├── .github/workflows/ # CI/CD pipelines
├── Cargo.toml # Rust dependencies & metadata
└── README.md # Documentation
- Rust (nightly recommended if using edition 2024)
- RabbitMQ instance running
git clone https://github.com/EslamYasser-Dev/Rabbit-SSE-Integrator.git
cd Rabbit-SSE-Integrator
cargo rundocker build -t rabbit-sse-integrator .
docker run -p 8080:8080 --env RABBITMQ_URL=amqp://guest:guest@localhost:5672 rabbit-sse-integratorEnvironment variables:
| Variable | Description | Default |
|---|---|---|
RABBITMQ_URL |
RabbitMQ connection string | amqp://guest:guest@localhost:5672 |
PORT |
Server port for SSE endpoint | 8080 |
Once running, clients can connect to the SSE endpoint:
GET /events
Accept: text/event-streamThe service will push RabbitMQ messages directly to connected clients.
Contributions are welcome!
Please open issues and pull requests to help improve the project.
This project is licensed under the MIT License - see the LICENSE file for details.