SNS SNS SWF Flashcards
What is SQS?
Web service that gives access to a message queue to store messages while waiting for a computer to process them
SQS Message size
Up to 256Kb of text in any format
Downside of SQS
Not guaranteed first in first out
How does SQS pull task messages from the queue?
Asynchronously, receives named file, processes, completes and deletes
SQS timeout
12 hours visibility
SQS Billing size
at 64Kb chunks
Pricing for SQS
First million free per month
$.5 per 1 million each moth
SQS Default message visibility
30 seconds
To change visibility time
Use the ChangeMessageVisibility action to specify timeout time
Long polling
Way to retrieve messages, but doesn̥t until the poll times out.
For example ec2 sends a message to see if there are messages
Maximum long poll timeout
20 seconds
Polling in tight loops is burning CPU cycles and costing the company money, how would you fix this?
Long polling
Fanning out
Using SNS to pass along SQS messages to other SQS streams
SQS was the first service on the AWS platform?
TRUE
SQS What is the default visibility time out setting?
30 seconds
TF An SQS message can be delivered multiple times.
TRUE
You are designing a new application which involves processing payments and delivering promotional emails to customers. You plan to use SQS to help facilitate this. You need to ensure that the payment process takes priority over the creation and delivery of emails. What is the best way to achieve this.
Use 2 SQS queues first with a priority for payments
Your EC2 instances download jobs from the SQS queue, however they are taking too long to process them. What API call can you use to extend the length of time to process the jobs?
ChangeMessageVisibility
What is the maximum long poll timeout?
20 seconds
What amazon service can you use in conjunction with SQS to fan out” SQS messages to multiple queues.”
SNS
SNS SF
Simple Notification Services
SNS is
Mechanism for push notification system
Differences of SNS and SQS
SQS pull/polls
SNS pushes
SNS recipient grouping
Recipients are groups in topics