Loose Coupling
SQS
Simple queue service
Simple Notification Service
- to deliver text messages or emails
API Gateway
SQS Producer
SQS Consumer
SQS Setting - Delivery Delay
SQS Setting - Message Size
SQS & SNS Setting - Encryption
- optional: can add encryption at rest
SQS Setting - Message Retention*
SQS Setting - Long Polling*
API connects and waits (not selected by default)
- always choose long polling on the exam
SQS Setting - Short Polling*
API connects and gets a message and disconnects
SQS Setting - Queue Depth*
SQS Visibility Timeout*
Dead Letter Queues
What is the only way to take a message from a queue and temporarily set it aside?
Dead Letter Queue
Why do you need to set an alarm on a Dead Letter Queue?
so you can catch it before something goes off the rails
How to create a Dead Letter Queue
1) Need to create the dead letter queue before you create your main queue
2) then create the main queue and specify the dead letter queue and set the maximum receives = maximum retries
Can SNS use dead letter queues?*
Yes, both SQS and SNS can use them
Standard SQS Queues
FIFO Queues
Fifo Message Group ID
- all messages in the group are downloaded together
SNS Push Based messaging
SNS Setting - Subscribers*