Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7830395
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T11:13:04+00:00 2026-06-02T11:13:04+00:00

SOA services should self contained services, but in practice we need to orchestrate these

  • 0

SOA services should self contained services, but in practice we need to orchestrate these services to perform some business/process.

Now, for a process & data to be consistent, we need to ensure all the services are executed or none is executed.

One way to implement is to implement “compensation” logic for each service and call it if some problem occurred in the process/previous service.

Is there any better way or some standard to do the same, for example, taking out the transaction context and implement something like 2 phase commit?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T11:13:05+00:00Added an answer on June 2, 2026 at 11:13 am

    It does depend on the services that you are accessing. In some you will have no way to perform compensation, whilst in others you will have no way to control the transaction, and in others you will have no alternative whatsoever.

    Both compensation handlers and 2 phase commit (XA transactions) are both valid mechanisms for managing transactions.

    Consider the services you are interfacing to, and what type of support they offer. For example if you have a large number of web services you may not have the transaction control that XA will give you, but they may have a mechanism for reversing an operation.

    In a perfect world you would have 2 phase commit which would reduce the compensation required but interfaces are interfaces, and like people to people, communication will vary and there is no one perfect solution.

    When designing interfaces make consideration of transaction control and compensation recovery as part of your interface design and you will be praised (or at least not criticised) for creating a useful interface.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to SOA (and to Stack Overflow too...) Some services and web applications
Looking for some resources on SOA / BPEL best practices. Specially BPEL.
We currently have a system with 20 SOA services and having a single master
I need to create a .Net windows service to monitor a mailbox and process
We are working on a SOA Project consisting of multiple web services. Each web
We are implementing a SOA-architecture the Udi Dahan way, which means that services are
I'm using JBoss SOA-P 5.2, which should be equivalent to JBoss ESB 4.10. And
I am newbie to SOA though I have some experience in OOAD. One of
Truth be told I have no clue whether SOA describes/recommends which protocols web services
Im am not new to WCF web services but there has been a couple

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.