Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-15335

Add support for Sagas (Compensating) Transactions

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 5.x Backlog
    • Component/s: Transaction
    • Labels:
    • Last commented by a User:
      true

      Description

      In the world of MicroServices, Saga transactions are a way to ensure that you can enroll multiple service calls into a workflow so that you can execute a long-running transaction without having to take any locks or imply a 2PC transaction manager, which is not suitable in a distributed system scenario where processing times can be invariable.

      Currently, there is little support for the Saga pattern. I also found that Axon supports it, and possibly Narayana.

      It would be great if we can discuss if there is a way to add this in Spring framework since it's definitely a handy feature. I assume that Sagas go hand-in-hand with the Spring 5 Reactive approach.

        Attachments

          Activity

            People

            Assignee:
            juergen.hoeller Juergen Hoeller
            Reporter:
            mih_vlad MIhalcea Vlad
            Last updater:
            Spring Issues Spring Issues
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Days since last comment:
              3 years, 23 weeks, 6 days ago