The AnyAirline organization's passenger reservations center is designing an integration solution that combines invocations of three different System APIs (bookFlight, bookHotel, and bookCar) in a business transaction. Each System API makes calls to a single database.
The entire business transaction must be rolled back when at least one of the APIs fails.
What is the most idiomatic (used for its intended purpose) way to integrate these APIs in near real- time that provides the best balance of consistency, performance, and reliability?
- Implement eXtended Architecture (XA) transactions between the API implementations Coordinate between the API implementations using a Saga pattern
Implement caching in each API implementation to improve performance - Implement local transactions within each API implementation
Configure each API implementation to also participate in the same eXtended Architecture (XA) transaction
Implement caching in each API implementation to improve performance - Implement local transactions in each API implementation Coordinate between the API implementations using a Saga pattern
Apply various compensating actions depending on where a failure occurs - Implement an eXtended Architecture (XA) transaction manager in a Mule application using a Saga pattern
Connect each API implementation with the Mule application using XA transactions Apply various compensating actions depending on where a failure occurs
Answer(s): C
Reference:
https://aws.amazon.com/blogs/compute/building-a-serverless-distributed-application- using-a-saga-orchestration-pattern/
Reveal Solution Next Question