Mini project accomplishing connection between asynchronous API, RabbitMQ queue and server with database access. Project contains of:
- Async API with
GET/POST
methods for sending saving/retrieving task - RabbitMQ container which queues task and send them to receivers
- Receivers get key/data and retrieve it from database or save it
Project was pursued with technologies: aiohttp
, pika
, pydantic
, celery
.
Please follow steps:
git clone https://github.com/KonradMarzec1991/async-RabbitMQ.git
docker-compose up --build
Docker loads all required dependencies and starts application on port 8000
.
Please ensure that local instance of RabbitMQ
is not working. If it so, use:
sudo service rabbitmq-server stop
to stop local process.
With initialization of database sqlite3
some records are loaded. You can retrieve record first
without saving it.
Below screenshots shows how to use correctly application (I used here Postman
).