SQS Flashcards
What is SQS?
Amazon Simple Queue Service (SQS) is a fully managed message queuing service that enables you to decouple and scale microservices, distributed systems, and serverless applications
What can you use to decouple applications?
SQS, SNS, Kinesis
How does SQS work?
SQS provides an API endpoint to submit messages and another endpoint to read messages from a queue. Each message can only be retrieved once, and you can have many clients submitting messages to and reading messages from a queue at the same time.
Which are the SQS types?
Standard Queue
Delay Queue
Dead Letter Queue
FIFO Queue
What is the message retention period in Standard SQSs?
Message retention: default 4 days, up to 14 days or until a consumer deletes it
What is the max retention time in Standard SQSs?
14 days
How many messages are allowed in Standard SQSs?
Unlimited throughput, unlimited number of messages in queue
Due to the high throughput accepted by Standard SQS what could happen?
Can have duplicate messages (at least once delivery, occasionally)
What standard SQS does related to ordering?
Can have out of order messages (best effort ordering)
Can you send any message in Standard SQS?
No, just Strings limited to 256 KB
What is the max delay time in Delay SQS?
up to 15 minutes
What is the default delay time in Delay SQS?
0
At what level is SQS delay time defined?
At queue level but you can override the default at a message level using the DelaySeconds parameter
What is returned by SQS to the producers?
a msg id and MD5 hash of the body
How many messages can poll an SQS consumer at a time?
up to 10
What should the SQS consumer do after processing a msg?
To tell SQS to delete the message
In what time needs SQS consumers to process a message?
within the visibility timeout
What is SQS visibility timeout?
It is a defined time a message is invisible to other consumers
What is default value of SQS visibility timeout?
30 seconds
What is the range of SQS visibility timeout?
0 - 12 hours