O'Reilly logo

Hands-On Enterprise Java Microservices with Eclipse MicroProfile by Scott Stark, Antoine Sabot-Durand, Pavol Loffay, Jeff Mesnil, Heiko W. Rupp, Cesar Saavedra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Long Running Actions

In a loosely-coupled service environment, the motivation behind the Long Running Actions (LRA) specification is to provide consistent outcomes by business processes comprised of calls to many microservices without the need to lock data. One way to think about LRA is as transactions for microservices. Examples of situations when you need LRA include the following:

  • Ordering a book online will require the retirement of a book from the inventory, the processing of a payment, and finally shipping of the book. All these tasks need to happen atomically, in other words, they need to be processed all together, in that, if any of the tasks fail, then all tasks must be undone.
  • Making a flight reservation will require the removal ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required