saga-pattern-microservices
Demo saga pattern, outbox pattern using Spring Boot, Debezium, Kafka, Kafka Connect
File Explorer
Download Latest Version (.zip)- config.yml
- dependabot.yml
- maven-wrapper.jar
- maven-wrapper.properties
- MavenWrapperDownloader.java
- ApiGatewayApplication.java
- application.yml
- pom.xml
- banner.jpg
- CustomerController.java
- Customer.java
- NotFoundException.java
- CustomerRepositoryPort.java
- CustomerUseCasePort.java
- EventHandlerPort.java
- CustomerRequest.java
- CustomerUseCase.java
- PlacedOrderEvent.java
- JacksonMapperConfig.java
- MessageLog.java
- MessageLogRepository.java
- OutBox.java
- OutBoxRepository.java
- CustomerEventHandler.java
- EventHandlerAdapter.java
- CustomerEntity.java
- CustomerJpaRepository.java
- CustomerRepositoryAdapter.java
- CustomerApplication.java
- application.yml
- pom.xml
- ProductController.java
- Product.java
- NotFoundException.java
- EventHandlerPort.java
- ProductRepositoryPort.java
- ProductUseCasePort.java
- PlacedOrderEvent.java
- ProductRequest.java
- ProductUseCase.java
- JacksonMapperConfig.java
- MessageLog.java
- MessageLogRepository.java
- OutBox.java
- OutBoxRepository.java
- EventHandlerAdapter.java
- InventoryEventHandler.java
- ProductEntity.java
- ProductJpaRepository.java
- ProductRepositoryAdapter.java
- InventoryApplication.java
- application.yml
- pom.xml
- OrderController.java
- Order.java
- OrderStatus.java
- EventHandlerPort.java
- OrderRepositoryPort.java
- OrderUseCasePort.java
- OrderRequest.java
- OrderUseCase.java
- PlacedOrderEvent.java
- JacksonMapperConfig.java
- MessageLog.java
- MessageLogRepository.java
- OutBox.java
- OutBoxRepository.java
- EventHandlerAdapter.java
- OrderEventHandler.java
- OrderEntity.java
- OrderJpaRepository.java
- OrderRepositoryAdapter.java
- OrderApplication.java
- application.yml
- pom.xml
- .gitignore
- compose.yml
- delete-connectors.sh
- LICENSE
- mvnw
- mvnw.cmd
- outbox_customer_connector.json
- outbox_inventory_connector.json
- outbox_order_connector.json
- pom.xml
- README.md
- register-connectors.sh
# Installation Guide
1. Get the code
git clone https://github.com/uuhnaut69/saga-pattern-microservices
Downloads the entire project code from GitHub to your computer.
cd saga-pattern-microservices
Moves into the project folder you just downloaded.
2. Docker
Easy RecommendedPrerequisites
- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
export PLATFORM=linux/amd64 && docker-compose up -d
Runs the command against the services defined in the compose file.
export PLATFORM=linux/arm64 && docker-compose up -d
Runs the command against the services defined in the compose file.
Run docker compose ps to check the containers are Up. If the README mentions a port, open http://localhost:PORT in your browser.
Pulled directly from this repo's README.
3. Maven (Java)
MediumPrerequisites
- Git Needed to download the project code from GitHub.
- JDK (Java) Required to build and run Java projects.
- Maven The build tool used for the mvn command.
cd api-gateway
This project's files live in a subfolder, so move into it first.
mvn clean install
Installs dependencies and builds the project using Maven.
A BUILD SUCCESS message means it worked. The output is created under target/.
// repository documentation
Was this content helpful?
(0 ratings)
