Skip to content

isarota/manavsepeti-rabbitmq-fastapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

-manavsepeti-rabbitmq-fastapi

Pub-Sub mechanism on top of REST-API endpoints...

Installation process is demonstrated below.

There are two FastAPI applications in this repository.

First one is order-receiver which receives orders from clients and send them to a RabbitMQ queue.

Second one is order-processor which receives orders from a RabbitMQ queue and process them.

Installation

  1. Run RabbitMQ as a container.
docker run -it --rm --name rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:3.9-management
  1. Create a virtual Python environment with requirements.txt.
python -m venv venv
pip install -r requirements.txt
  1. Start order-processor.
cd order-processor
uvicorn main:app --reload --port 5000
  1. Start order-receiver.
cd order-receiver
uvicorn main:app --reload --port 8000

About

Pub-Sub mechanism on top of REST-API endpoints...

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages