Transactions are one of the most complex and yet very important areas of computing. They can get particularly hard when the system moves to the distributed environments as almost every component in the distributed system is liable to failures. Traditional locking protocols, used in transaction solutions today, are then very prone to holding locks on resources for unnecessarily long periods. The saga pattern provides an alternative non-blocking solution with the design that allows individual parts of the transaction to commited immediately and independently. This design is specifically suitable for long running transactions and distributed systems. In this session, we will present a newly created MicroProfile specification called Long Running Actions (LRA) which provides a definition of the transactional protocol and a simple API for the distributed transactions in the Java microservices environment based on the saga pattern. We will show you why the saga pattern is a very suitable transactional solution for many distributed microservices applications and demonstrate the usage of the LRA specification with the live coded demo.
A different flavor of the distributed transaction
Objective of the presentation:
To introduce the MicroProfile Long Running Actions (LRA) specification for the distributed eventually consistent transactions (sagas).
Attendee pre-requisites - If none, enter "N/A":
Basic knowledge of enterprise Java (Java/Jakarta EE (CDI, JAX-RS)).