Uploaded image for project: 'Apache ServiceComb'
  1. Apache ServiceComb
  2. SCB-1386

Support to send out SagaEnd event in other method

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • pack-0.5.0
    • pack-0.5.0
    • Saga
    • None

    Description

      In an async environment (ex: microservices architecture communicating via messaging systems) it is important to control when the saga ends. Therefore, I propose a new annotation - @SagaEnd - to have the possibility to explicitly end the Saga, which will also allow the triggering of the compensation methods in case of failure. 

      NOTE from willem
      To support the old behavior of SagaStart, we need to add an option to disable sending the Saga end event.
      To avoid the aspect class conflict, I didn't introduce @SagaEnd annotation, I just introduced sendingSagaEnd attribute to SagaStart and Compensable this two annotations class to control the SagaEnd event sending.

      Attachments

        Issue Links

          Activity

            People

              njiang Willem Jiang
              cardosoj José Cardoso
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m