Soru

Zorluk: KolayDecoupling Architectures and Event-Driven Messaging

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?

  1. Implement an Amazon SQS FIFO queue to buffer incoming transaction requests and process them in order.Cevap
  2. B
    Implement an Amazon SQS Standard queue to buffer incoming transaction requests and process them in order.
  3. C
    Write incoming transaction requests directly to an Amazon DynamoDB table configured in provisioned capacity mode to store and process them in order.
  4. D
    Store 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

1
Analyze the requirements for decoupling, handling unpredictable traffic spikes, and strict ordering.
The solution must decouple the front-end application from the backend, scale to absorb spikes, and process messages in a strict first-in, first-out sequence.
Decoupling ensures the application remains responsive during spikes, while ordering is necessary to prevent balance calculation errors.
2
Compare the message ordering capabilities of Amazon SQS queue types.
Amazon SQS Standard queues do not guarantee order. Amazon SQS FIFO queues guarantee strict ordering and exactly-once processing.
This identifies the correct messaging technology that meets the strict chronological processing requirement.

Anahtar Kavram

Decoupling with Amazon SQS FIFO queues to guarantee message ordering and handle unpredictable workloads.
Bu soruyu puanla