SQS Flashcards
What does SQS stand for?
Simple Queue Service
What does AWS SQS do?
SQS is a pull-based, distributed queue system forproducer/consumer-typesystems
- some applications add requests to the queue, other applications poll the queue for requests and execute them
- Amazon SQS is a web service that gives you access to a message queue that can be used to store messages while waiting for a computer to process them.
In the context of SQS, what is a queue?
A temporary repository of messages that are awaiting processing
On the exam, when you see the word decouple, what should you immediately think about? Why?
SQS
SQS is used to decouple components of an application and ease message management btween them.
(SQS has been using terminology with decouple for a long time)
What was the very first service offered by AWS?
SQS
What is the maximum size of an SQS message?
256kb BUT you can go over this by storing payloads in S3
What are the two types of SQS queues?
- Standard
- FIFO
What does TPS stand for?
Transactions Per Second
What is the TPS limit on an SQS standard queue?
nearly unlimited transactions per second
What are the main drawbacks of standard queues vs. FIFO queues?
Occassionally, becuase of the highly-distributed nature architechture that gives the high throughput:
- (duplicates) more than one copy of a message might be delivered
- (best-effort ordering vs. exactly-once processing) messages might be delivered slightly out of order, but are generally delivered in the same order in which they are sent
(With FIFO queues, you don’t get duplicates, and you get exactly-once processing and ordering is strictly preserved)
What is the TPS limit on FIFO queues?
300 TPS
How long can messages be kept in SQS?
- Configurable from 1 minute to 14 days.
- Default value is 4 days
What are message groups?
- Messages are grouped into distinct, ordered “bundles” within a FIFO queue.
- For each message group ID, all messages are sent and received in strict order. However, messages with different message group ID values might be sent and received out of order.
- Every message must have a message group ID
(Source: https://aws.amazon.com/sqs/faqs/)
Can you have multiple producers for an SQS FIFO queue?
Yes. Messages are stored in the order that they were successfully received by Amazon SQS.
(Source: https://aws.amazon.com/sqs/faqs/)
Can you have multiple consumers for an SQS FIFO queue?
Yes, but you only get a speedup if you are using multiple message groups.
(See: https://aws.amazon.com/sqs/faqs/)