Skip to content

EslamYasser-Dev/Rabbit-SSE-Integrator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rabbit-SSE-Integrator

Build Status Docker Build License

📌 Overview

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.

✨ Features

  • 🚀 High-performance Rust backend.
  • 🔗 Real-time message streaming via SSE.
  • 🐇 RabbitMQ integration for event-driven architecture.
  • 🐳 Docker-ready for easy deployment.
  • ⚡ Lightweight and fast.

📂 Project Structure

.
├── src/                 # Source code
├── Dockerfile           # Docker build file
├── .github/workflows/   # CI/CD pipelines
├── Cargo.toml           # Rust dependencies & metadata
└── README.md            # Documentation

🛠 Installation

Prerequisites

  • Rust (nightly recommended if using edition 2024)
  • RabbitMQ instance running

Clone and Run

git clone https://github.com/EslamYasser-Dev/Rabbit-SSE-Integrator.git
cd Rabbit-SSE-Integrator
cargo run

Run with Docker

docker build -t rabbit-sse-integrator .
docker run -p 8080:8080 --env RABBITMQ_URL=amqp://guest:guest@localhost:5672 rabbit-sse-integrator

⚙️ Configuration

Environment variables:

Variable Description Default
RABBITMQ_URL RabbitMQ connection string amqp://guest:guest@localhost:5672
PORT Server port for SSE endpoint 8080

📡 Usage

Once running, clients can connect to the SSE endpoint:

GET /events
Accept: text/event-stream

The service will push RabbitMQ messages directly to connected clients.

🤝 Contributing

Contributions are welcome!
Please open issues and pull requests to help improve the project.

📜 License

This project is licensed under the MIT License - see the LICENSE file for details.

About

this a high performant simple code to convert from rabbit mq to SSE

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors