In this example we will design a simple event-driven distrbuted system that simulate order managment system using spring-cloud, spring-native, apache-camel and saga design pattern. This is just a show case on how to use apache camel with saga in microservices.
-
Start kafka server by running:
cd kafka-server
docker-compose up -d
-
Start LRA coordinator:
cd narayana-lra-coordinator
java -Dquarkus.http.port=50000 -jar target/quarkus-app/quarkus-run.jar
-
Run
discovery-server
,customer-service
,gateway-service
,order-service
-
Run simple API test by calling
http://localhost:9999/api/order