AWS Certified Solutions Architect – ProfessionalContinuously Improve Existing SolutionsMedium
An online gaming company's backend microservices communicate synchronously, leading to cascading failures when a single service experiences high load or becomes unavailable. The company wants to improve the system's resilience and scalability by decoupling these services. Which AWS service should they integrate to facilitate asynchronous communication between microservices?
- AAWS AppSync
- BAmazon EventBridge
- CAWS Step Functions
- DAmazon SQS
Show answer & explanationAnswer & explanation
Correct answer: D. Amazon SQS
Amazon SQS (Simple Queue Service) is a fully managed message queuing service that enables you to decouple and scale microservices, distributed systems, and serverless applications. It allows services to communicate asynchronously, preventing cascading failures and improving overall system resilience.
Why the other options are wrong
- A. AWS AppSync is a managed GraphQL service for building flexible APIs, not for asynchronous messaging between backend microservices.
- B. Amazon EventBridge is an event bus service for building event-driven architectures, good for routing events, but SQS is more direct for queuing messages between decoupled services.
- C. AWS Step Functions orchestrates workflows and coordinates multiple services, but it's not primarily for simple asynchronous message passing between decoupled services.
Asynchronous Microservices Communication
A pattern where microservices communicate without waiting for an immediate response, typically using message queues or event buses to improve resilience and scalability.
- Decouples services, reducing dependencies.
- Prevents cascading failures.
- Improves system resilience, scalability, and responsiveness.
Memory trick: SQS is like a post office, holding messages until the recipient is ready.