A company needs to decouple their microservices architecture to ensure that checkout events from their e-commerce platform are reliably processed by a separate inventory management service. The events must be delivered at least once, and it is acceptable if the inventory service processes the same event multiple times in rare scenarios. Which service should the company use to implement a robust messaging solution for this requirement?
Utilize Amazon Simple Notification Service (Amazon SNS) to send messages directly from the checkout service to the inventory management service.
Route the checkout events to the inventory service using Amazon EventBridge.
Implement AWS AppSync to manage the data flow between the checkout events and the inventory service.
Use Amazon Simple Queue Service (Amazon SQS) as the messaging service between the e-commerce platform and the inventory management service.
Amazon Simple Queue Service (Amazon SQS) is suited for decoupling components of a cloud application, providing a durable message queue that ensures messages are delivered at least once. It allows for occasional duplicates, hence satisfying the 'at least once' and idempotent processing requirements of the given scenario. Amazon Simple Notification Service (SNS) is primarily designed for fan-out scenarios where messages are sent to multiple subscribers and is not the optimal solution for this use case. AWS AppSync is used for creating flexible API endpoints, not messaging between services. Amazon EventBridge is used for event-driven application architectures but does not inherently have the same level of message delivery guarantees and is more about routing rather than queuing.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What are the key features of Amazon SQS?
Open an interactive chat with Bash
How does SQS handle message duplication?
Open an interactive chat with Bash
When should I use Amazon SNS instead of SQS?
Open an interactive chat with Bash
AWS Cloud Practitioner CLF-C02
Cloud Technology and Services
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access