A company wants to run a serverless workload that processes messages, scales instantly, and can retry on transient errors. The message ordering requirement applies only within a tenant. Which approach is best?

Answer

Use AWS Lambda triggered by SQS FIFO with message group IDs set to tenant ID; configure batch retries and DLQ for poison messages

Explanation

SQS FIFO preserves ordering within a message group, so setting message group IDs to tenant IDs meets the scoped ordering requirement. Lambda retries and DLQ handling address transient failures and poison messages robustly.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list