An example for a Distributed Systems project. It contains
- OrderUI: a JavaFX frontend
- OrderAPI: a REST-Service implemented with Sprint Boot
- two worker services: CookService and WasherService
- a messaging queue (RabbitMQ)
- and a database (PostgreSQL) prepared in a docker-compose.yml file
- queue
- URL: localhost:5672
- Web: localhost:15672
- orders_db
- JDBC: localhost:5432
docker-compose up
- see RabbitMQ
docker exec -it <containerid> bash
- Show existing queues:
rabbitmqctl list_queues
apt install wget, python3
rabbitmq-plugins enable rabbitmq_management
wget http://localhost:15672/cli/rabbitmqadmin
mv rabbitmqadmin /usr/local/bin
chmod a+x /usr/local/bin/rabbitmqadmin
- Get contents of a Queue:
rabbitmqadmin get queue=example
- Create Queues:
rabbitmqadmin declare queue name=re_spaces
See also Stackoverflow