A startup is migrating its application to AWS. The application consists of an order processing service and an inventory service. Originally, the order processing service made direct, synchronous HTTPS calls to the inventory service. To ensure that orders can still be accepted even if the inventory service is temporarily offline or experiencing high latency, the team introduces an Amazon Simple Queue Service (Amazon SQS) queue to decouple the two services. Which of the following cloud design principles does this architectural change directly implement?
- AMonolithic integration
- BElasticity
- Loose couplingAnswer
- DHorizontal scaling
Answer
Loose coupling
The correct answer is loose coupling. By inserting Amazon SQS as a messaging buffer between the order processing service and the inventory service, the systems are decoupled. If the inventory service goes offline or is slow, the order processing service can still write messages to the queue and complete the transaction from the user's perspective, avoiding a system-wide failure.
Step-by-Step Solution
Key Concept
Loose coupling is a key AWS design principle that reduces dependencies between components, preventing failures in one service from impacting another.
Estimated Time:1m 0s