Please see the Github Pages Site for complete documentation: quarkuscoffeeshop.github.io
This repo contains the kitchen microservice which is responsible for making drinks. The kitchen microservice listens on a Kafka topic for incoming orders, applies the business logic for making an order, and then sends an update on another Kafka topic.
This project uses Quarkus, the Supersonic Subatomic Java Framework. If you want to learn more about Quarkus, please visit its website: https://quarkus.io/ .
This project requires Kafka. The quarkuscoffeeshop-support project contains a Docker compose file that will start Kafka.
https://github.com/quarkuscoffeeshop/quarkuscoffeeshop-support.git
https://github.com/quarkuscoffeeshop/quarkuscoffeeshop-kitchen.git
From inside the quarkuscoffeeshop-support folder run:
docker compose up
From inside the quarkuscoffeeshop-kitchen folder run:
./mvnw quarkus:dev
The application is packageable using ./mvnw package.
It produces the executable quarkuscoffeeshop-kitchen-1.0-SNAPSHOT-runner.jar file in /target directory.
Be aware that it’s not an über-jar as the dependencies are copied into the target/lib directory.
The application is now runnable using java -jar target/quarkuscoffeeshop-kitchen-1.0-SNAPSHOT-runner.jar.
You can create a native executable using: ./mvnw package -Pnative.
Or you can use Docker to build the native executable using: ./mvnw package -Pnative -Dquarkus.native.container-build=true.
You can then execute your binary: ./target/quarkuscoffeeshop-kitchen-1.0-SNAPSHOT-runner
If you want to learn more about building native executables, please consult https://quarkus.io/guides/building-native-image-guide .
Quarkus' configuration can be environment specific: https://quarkus.io/guides/config
docker run -i --network="host" quarkuscoffeeshop-kitchen/quarkus-cafe-kitchen:latest