Skip to content

An example for a Distributed Systems project. It contains a JavaFX frontend (OrderUI), a Spring-Boot based REST-Service (OrderAPI), two worker services (CookService, WasherService) and a messaging queue (RabbitMQ) prepared in an docker-compose.yml file

License

Notifications You must be signed in to change notification settings

BernLeWal/fhtw-disys-RestaurantDemo

Repository files navigation

Distributed Systems Demo Project

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

Scenario

Docker-Services

  • queue
    • URL: localhost:5672
    • Web: localhost:15672
  • orders_db
    • JDBC: localhost:5432

Requirements

Start

docker-compose up

Documentations

RabbitMQ Tutorial

RabbitMQ Management

docker exec -it <containerid> bash
  • Show existing queues:
rabbitmqctl list_queues

RabbitMQ Install Management-Plugin:

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

About

An example for a Distributed Systems project. It contains a JavaFX frontend (OrderUI), a Spring-Boot based REST-Service (OrderAPI), two worker services (CookService, WasherService) and a messaging queue (RabbitMQ) prepared in an docker-compose.yml file

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published