A project demonstrating 2 applications using WebFlux to asynchronously communicate with each other.
There are shell scripts in ./scripts
that will build and run the docker containers for you.
There are IntelliJ run configurations for these scripts in the .run
directory.
To run both apps on a docker network, run the following command in the root directory of the project:
docker compose up -f docker-compose.branch.yml
docker compose down -f docker-compose.branch.yml
docker compose up -f docker-compose.branch.yml -d
docker compose down -f docker-compose.branch.yml -d
Navigate to the project directory and run docker compose up
.
Otherwise you can use the following commands:
docker compose up -f ./freya/docker-compose.yml
docker compose down -f ./freya/docker-compose.yml
docker compose up -f ./freya/docker-compose.branch.yml
docker compose down -f ./freya/docker-compose.branch.yml
Navigate to the project directory and run docker compose up
.
Otherwise you can use the following commands:
docker compose up -f ./freyr/docker-compose.yml
docker compose down -f ./freyr/docker-compose.yml
docker compose up -f ./freyr/docker-compose.branch.yml
docker compose down -f ./freyr/docker-compose.branch.yml
Once this is finalized, I will add postman config under the folder /postman
Flow - Endpoint to call to reserve a book for
- Docker Kafka (network)
- E2E testing with both services
- Docker Postgres
- Postgres DB Setup
- Endpoint
- Docker Kafka (individual)
- Kafka Consumer (Order)
- Kafka Producer (User)
- Setup Book
- Setup Library (UserBooks)
- Docker Redis
- Endpoint
- Docker Kafka (individual)
- Kafka Consumer (User)
- Kafka Producer (Order)