SQS Flashcards

1
Q

what is SQS

A

SQS is a way to decouple infrastructure
pull based
messages in 256 KBB size
can be kept in a queue from 1 minute-14 days with a default retention period of 4 days
standard SQS/Fifo SQS
Standard SQS might duplicate and cannot guarentee order
FIFO guarentes order and only once and 3,000 tps per second

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

Visibility Timeout

A

message is invisible after the reader picks up that message. Provided the job is processed before the visibilty expires then the message will be deleted from the queue else the message will become visible again for another reader to process the same. This could result in processing the message twice

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

Visibility Timeout max

A

Visibbility timeout maximum is 12 hrs

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

Polling

A

Polling is a way to retrieve messages
Long polling does not return a response until a message arrives in the message queue or the long poll times out
Short polling returns immediately even if the message queue being polled is empty.

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

SQS Vs SWF

A

SQS max retention period is 14 days. SWF workflow executions can last up to 1 year
SWF presenst a task oriented API
SQS message oriented API
SWF ensures that task is assigned only once.. with SQA you need to handle duplicated messages and may also need to ensure that message is processed only once.

Amazon SWF keeps track of all the tasks and events on an application. with SQS YOU NEED TO implement your own application level tracking especially if your applciations uses multiple queues

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

SWF workflow Actors

A

Workflow Starters - Application that initiate the workflow
Deciders - controls the flow of activity tasks in workflow execution
Activity Workers - Carry out activity tasks

In SWF domain refer to “Collection of related workflows”

AWS SWF does not retrict the use of specific programming languages as it supports hTTP based API and you can implement API however

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