Amazon Simple Queue Service (SQS)
What is Amazon Simple Queue Service (SQS)?
Amazon Simple Queue Service (SQS) is a serverless service used to decouple (loose couple) serverless applications and components.
The queue represents a temporary repository between the producer and consumer of messages.
It can scale up to 1-10000 messages per second.
The default retention period of messages is four days and can be extended to fourteen days.
SQS messages get automatically deleted after being consumed by the consumers.
SQS messages have a fixed size of 256KB.
There are two SQS Queue types:
Standard Queue -
● The unlimited number of transactions per second.
● Messages get delivered in any order.
● Messages can be sent twice or multiple times.
FIFO Queue -
● 300 messages per second.
● Support batches of 10 messages per operation, results in 3000 messages per second.
● Messages get consumed only once.
Delay Queue is a queue that allows users to postpone/delay the delivery of messages to a queue for a specific number of seconds.
Messages can be delayed for 0 seconds (default) -15 (maximum) minutes.
Dead-Letter Queue is a queue for those messages that are not consumed successfully. It is used to handle message failure.
Visibility Timeout is the amount of time during which SQS prevents other consumers from receiving (poll) and processing the messages.
● Default visibility timeout - 30 seconds
● Minimum visibility timeout - 0 seconds
● Maximum visibility timeout - 12 hours