Decoupling Workflows Flashcards
What can the SQS delivery delay be set to? What’s the default?
- 0-15min
- Default 0
How large can an SQS message be?
256kb
How is SQS encrypted?
- Encrypted in transit by default
- Must enable at-rest encryption.
How long do SQS messages live by default? Whats the min and max?
- 4 days default
- Min 1 minute
- Max 14 days
What is long and short polling? Which should you favor?
- Short polling polls often for short periods.
- Long polling remains connected longer.
- Favor long polling generally.
What is Queue Depth used for?
- Queue depth can trigger autoscaling if there is a backup in messages.
What is the visibility Timeout? What is it for?
- Its the amount of time after a message is downloaded that a message is locked from being read by other consumers.
- Ensures proper handling of messages
What is the default SQS visibility Timeout?
30 Seconds
What’s more efficient? Long polling or short polling? What might this cause?
- Long polling
- Burning through API calls
- Higher cost
What are the restrictions on the contents of SQS messages?
None
What’s a dead-letter queue?
- Its just an SQS Queue
- Allows us to move messages to another queue temporarily after a number of retries
What attributes make a Dead Letter Queue?
- Enabling the DLQ to receive undeliverable messages
- Entering the ARN of the queue to receive dead messages from
What can you do with problematic SQS messages?
Send them to an SQS Desd-letter Queue
how can you know if a DLQ is filling up?
Use Cloudwatch to create an alarm and SNS to notify.
What can you do if an SNS message fails to deliver?
You can send it to a dead letter queue