SQS - Simple Queue Service Flashcards

1
Q

What is Amazon SQS?

A

Web service that gives access to a message queue that can store messages while waiting for a computer to process them.

Distributed queue system enabling web services to queue messages that one component generates to be consumed by another component

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Is SQS Push or Pull based?

A

Pull

Processing components pull the messages out of the queue

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the visibility timeout window?

A

Amount of time a message is marked as invisible in the queue after a reader picks it up.

If job is processed before visibility time out expires, message is deleted

If job not processed before visibility time out expires, message becomes visible again for processing.

Can result in same message being delivered twice

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How big can SQS messages be?

A

Up to 256KB of text in any format (JSON, etc)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What’s the size limit of SQS messages?

A

Up to 256KB of text in any format (JSON, etc)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Describe Standard queues

A

nearly unlimited amount of transactions per second

guarantees messages delivered at least once

Occasionally a message can be delivered out of order

Provides best-effort ordering where messages are mostly delivered in order they were received

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Describe FIFO queues

A

Limited to 300 transactions per second

messages are strictly sent in the order they were received

messages are delivered only once and remain available until consumer processes and deletes it.

Duplicates are not created

Support message groups allowing multiple ordered groups within a single queue

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How long can messages stay in the queue?

A

1 minute to 14 days

Default is 4 days

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the maximum visibility time out?

A

12 hours

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the maximum visibility time out?

A

12 hours

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is SQS Long Polling?

A

A way to retrieve messages from SQS queues

Default is regular short polling which returns immediately but always polls even if queue is empty.

Doesn’t return a response until message arrives in the message queue or the long poll times out

Long polling saves money by doing less polling

How well did you know this?
1
Not at all
2
3
4
5
Perfectly