A company is designing a high-throughput financial transaction processing application on AWS. The application must process incoming transactions in the exact order they are received. Transactions are ingested via Amazon API Gateway and must be decoupled before being processed by a fleet of microservices running on Amazon Elastic Container Service (Amazon ECS). Additionally, an independent compliance microservice must receive a copy of every transaction for near real-time auditing and archiving, although the compliance service itself does not require strict ordering. Which combination of steps should a solutions architect take to meet these requirements with the least operational overhead? (Select TWO.)
- Publish incoming transactions from Amazon API Gateway to an Amazon SNS FIFO topic.Answer
- Create two Amazon SQS FIFO queues: one for the transaction processing backend and one for the compliance microservice. Subscribe both queues to the SNS FIFO topic.Answer
- CCreate an Amazon SQS FIFO queue for the transaction processing backend, and a standard Amazon SQS queue for the compliance microservice. Subscribe both queues to the SNS FIFO topic.
- DPublish incoming transactions to a standard Amazon SNS topic, and subscribe two Amazon SQS FIFO queues to it to ensure ordering is maintained at the queue level.
- EConfigure the compliance microservice to subscribe directly to the Amazon SNS FIFO topic using an HTTPS endpoint.
Answer
Publish incoming transactions from Amazon API Gateway to an Amazon SNS FIFO topic, and create two Amazon SQS FIFO queues (one for the transaction processing backend and one for the compliance microservice) subscribed to the SNS FIFO topic.
To process transactions in strict order with a decoupled, fan-out architecture, the ingestion must use an Amazon SNS FIFO topic. Because Amazon SNS FIFO topics strictly limit subscriber endpoints to Amazon SQS FIFO queues, the compliance microservice must also use an SQS FIFO queue despite not requiring strict ordering itself. This design ensures end-to-end message ordering, deduplication, and successful fan-out delivery.
Step-by-Step Solution
Key Concept
End-to-end FIFO ordering in event-driven systems using Amazon SNS FIFO and Amazon SQS FIFO integration rules.
Estimated Time:3m 0s