Ravi Sir's Cards › AWS
SQS as a buffer
This revision card explains SQS as a buffer. A sudden flash sale can drown a single Lambda concurrency limit. Work must wait safely. It describes amazon SQS is a managed queue. Producers SendMessage; consumers receive later. Standard queue is fine for this lab. The how-to section covers how to create queue yourname-orders, grant intake sqs:SendMessage, grant worker consume + PutItem, add event source mapping batch size 5. An example on the card is if the worker is slow, messages pile in ApproximateNumberOfMessages; the API still returns 202.
Read card text
What this card says
Why do we need it?
A sudden flash sale can drown a single Lambda concurrency limit. Work must wait safely.
What is it?
Amazon SQS is a managed queue. Producers SendMessage; consumers receive later. Standard queue is fine for this lab.
How to do it
Create queue yourname-orders, grant intake sqs:SendMessage, grant worker consume + PutItem, add event source mapping batch size 5.
VisibilityTimeout
Example
If the worker is slow, messages pile in ApproximateNumberOfMessages; the API still returns 202.