This project consists of a demonstration of event storage in an application.
- RabbitMQ
- Redis
- ElasticSearch
- APM
- Kibana
- Flask
The producer receives a task to fetch all cities in a state, in addition to saving this in cache, sends it to a RabbitMQ queue, called city.
On the other hand, we have a simple consumer of this queue, working only with a worker, consuming the messages and saving the information in Elastic.
This project consists of two microservices acting within the same network
In order to Run the project, in this sense, it is necessary to create a network locally:
docker network create elastic_t
Enter the two directories (producer and consumer) and start their respective docker-compose:
make docker_run
Send a post request to http://localhost:5001/register/{state} and you should see the result like on next step below: