/eventuate-tram-sagas-examples-customers-and-orders

Spring Boot/JPA microservices that use a saga to maintain data consistency

Primary LanguageJava

Eventuate Tram Sagas Customers and Orders

This application demonstrates how to maintain data consistency in an Java/JDBC/JPA-based microservice architecture using sagas.

The application consists of two services:

  • Order Service - creates orders

  • Customer Service - manages customers

Both services are implemented using Spring Boot, JPA and the Eventuate Tram Saga framework

The Order Service uses a saga to enforce the customer’s credit limit when creating orders.

Learn more

To learn more about why you need sagas if you are using microservices: