Application Services Flashcards
What is SQS?
A message queue to de-couple applications
Is SQS pull or push based?
pull
What is the size of SQS messages?
- Can be up to 2gb, but need to use S3.
What is the SQS visibility timeout max?
12 hours
How long can SQS messages stay in queue?
1 min to 14 days. Default is 4 days
What is the SQS visibility timeout?
Amount of time that a message is invidible in queue after a reader picks up that message
What happens if an SQS job processes a message before the invisibility time out expires?
The message should be deleted from the queue by the job worker.
What happens if an SQS job does not complete before the visibility time out expires?
The message becomes visible again for another reader to process
What is the difference between SQS short and long polling?
Short polling will return a response immediately even if the queue is empty.
Long polling doesn’t return a response until a message arrives in the queue.
What are the SQS queue types?
FIFO or standard
What is the max retention for SWF?
1 year
Which message service presents a task orientated API?
SWF
Which message service offers a message orientated API?
SQS
Which message service ensure that a task is assigned only once and is never duplicated?
SWF
Which message service keeps track of events?
SWF
Which service requires application level tracking?
SQS
What are the three SWF actors?
Workflow starter
Deciders
Activity worker
What are SNS subscribers?
Subscribers are clients interested in receiving notifications from topics of interest; they can subscribe to a topic or be subscribed by the topic owner. Subscribers specify the protocol and end-point (URL, email address, etc.) for notifications to be delivered.