Added
A ticketing platform receives short bursts of 20,000 reservation requests per minute. The reservation API currently invokes a pricing service synchronously, and pricing slowdowns cause client timeouts and duplicate submissions. The pricing team needs to process each request eventually, but clients should receive an acknowledgement quickly. The platform must preserve request order for each customer, while different customers can be processed concurrently. Which design best meets these requirements?
An SQS FIFO queue decouples the API from pricing and preserves order within each customer message group, while allowing separate groups to be processed concurrently. Returning after SendMessage succeeds gives clients a fast acknowledgement without waiting for pricing. An SNS standard topic does not provide the required per-customer ordering. Extending a synchronous API timeout retains the coupling and does not solve duplicate submissions. Separate Kinesis consumers do not by themselves guarantee that workers process a customer's records sequentially.