A company has a web application that processes user registration requests. The requests must be processed asynchronously in the exact order they are received to ensure proper database indexing. The workload is highly unpredictable with sudden, massive traffic spikes. A solutions architect needs to decouple the frontend application from the backend processing servers. Which solution meets these requirements with the least operational overhead?
- AConfigure the web application to send the requests to an Amazon SQS Standard queue, and configure backend servers to process the messages.
- BConfigure the web application to write the requests to an Amazon DynamoDB table configured with Provisioned Capacity Mode to handle the unpredictable traffic.
- Configure the web application to send the requests to an Amazon SQS FIFO queue, and configure backend servers to process the messages.Cevap
- DConfigure the web application to invoke an AWS Lambda function to run the processing script that executes continuously for 20 minutes.
Cevap
Configure the web application to send the requests to an Amazon SQS FIFO queue, and configure backend servers to process the messages.
The correct option is the one that configures the application to use Amazon SQS FIFO queues. FIFO queues guarantee that messages are processed in the exact order they are sent, satisfying the indexing requirement. Because SQS scales automatically to absorb spikes, it buffers the load for the backend servers, meeting the decoupling and resilience goals with the least operational overhead.
Adım Adım Çözüm
Anahtar Kavram
Decoupling with ordered message processing using SQS FIFO queues