A company is building a ride-sharing application. The application must process passenger ride-status updates, such as requested, driver assigned, and completed, asynchronously. To ensure the passenger history displays correctly, these updates must be processed in the exact sequence they occurred. The system processes approximately 150 updates per second. Which solution meets these requirements with the least operational overhead?
- Send the ride-status update messages to an Amazon SQS FIFO queue and process them sequentially.Answer
- BSend the ride-status update messages to an Amazon SQS Standard queue and sort them by timestamp in the consumer application.
- CSend the ride-status update messages to an Amazon SQS Standard queue and set a delivery delay on the queue.
- DSend the ride-status update messages to an Amazon SQS Standard queue and configure a single consumer instance to process them one at a time.
Answer
Send the ride-status update messages to an Amazon SQS FIFO queue and process them sequentially.
The correct option correctly identifies Amazon SQS FIFO queues as the native AWS solution to guarantee that messages are processed in the exact order they are received. Since the application processes 150 updates per second, it falls well within the default limit of 300 transactions per second for FIFO queues without batching, satisfying the request with minimal operational complexity.
Step-by-Step Solution
Key Concept
Amazon SQS FIFO queues preserve the exact ordering of messages and are ideal for low-to-medium throughput applications requiring strict sequencing.
Estimated Time:45s