SQS, and Kinesis Flashcards
What is the max message size in SQS?
256 KB.
What the number of messages that can
be processed as a batch in SQS?
10 messages at a time.
What is visibility timeout in SQS?
Once a consumer receives a message, SQS doesn’t allow any other consumers to read the same message for a period of time, called the visibility timeout.
What is the default and max visibility timeout period in SQS?
- Default: 30 seconds.
- Max: 12 hours
What is the default and max retention period in SQS?
- Default: 4 days
- Max: 14 days
What is default and max per-queue delay settings in SQS?
- Default: 0 second
- Max: 15 minutes
What are the two different queue types in SQS?
- Standard queue
- FIFO queue
What are the pros and cons of standard queue in SQS?
Pro: almost unlimited throughput. Can handle 120,000 in-flight message.
Con:
- Messages may be delivered out of order
- Messages may occasionally be delivered more than once
What are the pros and cons of FIFO queue in SQS?
Pro:
- Messages are delivered in order
- Messages are delivered exactly once
- Supports message grouping
Con:
- Can send 3,000 messages per second
- Can handle 20,000 in-flight messages
Is message in SQS deleted automatically after received by client?
No, client will need to delete it by calling API.
What are polling options to receive messages from SQS?
- Short polling (quick, but may not get all the messages)
- Long polling (slow, but get all messages)
What is Dead-Letter Queue in SQS?
You can have SQS automatically pull such a message from your source queue and place it into a dead‐letter queue after it’s been received so many times.
It’s based on maxReceiveCount of the message.
One thing to keep in mind is that when a message is moved to a dead‐letter queue, the message will be deleted based on its original creation date.
What is Kinesis?
Kinesis is a collection of services that let you collect, process, store, and deliver streaming data.
Kinesis can perform real‐time ingestion of gigabytes per second from thousands of sources, making it perfect for things like audio and video feeds, application logs, and telemetry data.
What are the Kinesis offerings?
- Kinesis Video Streams
- Kinesis Data Streams
- Kinesis Data Firehose
What is Kinesis Video Streams?
Kinesis Video Streams is designed to ingest and index almost unlimited amounts of streaming video data, such as from webcams, security cameras, and smartphones.
Kinesis Video Streams uses a producer‐consumer model.
Kinesis automatically indexes the stream by using timestamps, allowing for easy retrieval later on.
By default, Kinesis Video Streams will store a video stream for 24 hours, but you can extend this retention period up to 7 days.