Skip to content

wzharith/rabbitmq-poc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RabbitMQ Proof of Concept with FastAPI

This project is a proof of concept (POC) using RabbitMQ and FastAPI. The goal is to demonstrate various use cases of RabbitMQ in combination with FastAPI. Each use case is separated into different folders for better organization and clarity.

Project Structure

  • simple-queue/: Demonstrates a basic queue implementation using RabbitMQ and FastAPI.
  • file-processor/: Illustrates a file processing system with RabbitMQ and FastAPI.
  • use-case-3/: Description of the third use case.
  • ...: Additional use cases.

Getting Started

Prerequisites

  • Python 3.8+
  • RabbitMQ server
  • FastAPI
  • Pydantic
  • Uvicorn

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/rabbitmq-poc.git
    cd rabbitmq-poc
  2. Create a virtual environment and activate it:

    python -m venv venv
    source venv/bin/activate  # On Windows use `venv\Scripts\activate`
  3. Install the required dependencies:

    pip install -r requirements.txt

Running the Examples

  1. Start the RabbitMQ server:

    sudo systemctl start rabbitmq-server
  2. Navigate to the desired use case folder, for example, simple-queue:

    cd simple-queue
  3. Run the FastAPI application using Uvicorn:

    uvicorn main:app --reload
  4. Access the API documentation at http://127.0.0.1:8000/docs.

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any improvements or new use cases.

License

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

Acknowledgements

About

RabbitMQ Playground

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published