A company has a web application that receives financial transaction requests from clients. The application must decouple the request reception from the backend processing systems. The transaction volume is highly unpredictable, with sudden spikes throughout the day. It is critical that all transaction requests are processed in the exact order they are received to prevent account balance errors. Which solution meets these requirements while guaranteeing transaction ordering?
- Implement an Amazon SQS FIFO queue to buffer incoming transaction requests and process them in order.Cevap
- BImplement an Amazon SQS Standard queue to buffer incoming transaction requests and process them in order.
- CWrite incoming transaction requests directly to an Amazon DynamoDB table configured in provisioned capacity mode to store and process them in order.
- DStore incoming transaction requests in an Amazon S3 Standard-IA bucket, and delete the objects immediately after processing.
Cevap
Implement an Amazon SQS FIFO queue to buffer incoming transaction requests and process them in order.
The solution that implements an Amazon SQS FIFO queue is correct because SQS FIFO queues are designed to guarantee that messages are processed in the exact order they are received, while also providing decoupling to handle sudden spikes in traffic without losing messages.
Adım Adım Çözüm
Anahtar Kavram
Decoupling with Amazon SQS FIFO queues to guarantee message ordering and handle unpredictable workloads.