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

Provide a common way to pass GID and LID

    XMLWordPrintableJSON

Details

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

    Description

      When using SNS https://spring.io/projects/spring-cloud-aws to pass the invocation across the services, it's quite important for Omega to pass the Global Transaction ID and Local Transaction ID across the services.

      I just spend some time to check about the message API of spring-cloud-aws, it has message converters (https://cloud.spring.io/spring-cloud-static/spring-cloud-aws/2.2.0.M1/#_using_message_converters) which could be used to pass the GID and LID through the business object.

      After talking with ZhangLei about this issue, he suggested that we could introduce a wrapper class for the user to pass the GID and LID across thread or VM. As Omega can intercept the method call, we can restore the GID and LID back to thread local variable before calling the intercepted method.

      Attachments

        Issue Links

          Activity

            People

              njiang Willem Jiang
              njiang Willem Jiang
              Votes:
              0 Vote for this issue
              Watchers:
              4 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