Decoupling Workflows Flashcards
Possible options for frequent SQS message duplication?
- Check for a misconfigured visibility timeout
- Check if the developer is failing to make the delete API call
What’s the maximum persistence time for a message in SQS?
14 days
How to ensure ordering in SQS?
SQS FIFO
How to send proactive notifications?
SNS
How to get notifications from CloudWatch alarms?
SNS
API Gateway
Secure front door to external communication coming into your environment
What’s the maximum size of an SQS message?
256Kb
How much time does a message can be kept in a queue in SQS?
From 1 minute to 14 days (4 days by default)
What’s the visibility timeout in SQS?
Visibility timeout is the amount of time that the message is invisible in the SQS queue after a reader picks up that message. If the job is not processed within that time, the message will become visible again and another reader will process it. This could result in the same message being delivered twice.
What does the WaitTimeSeconds attribute mean in SQS?
WaitTimeSeconds = 0 => Short polling
When the consumer instance polls for new work, the SQS service will allow waiting a certain time for one or more messages to be available before closing the connection.
By default, Amazon SQS uses short polling. Short polling occurs when the WaitTimeSeconds parameter of a ReceiveMessage request is set to 0.
What is the maximum “VisibiltyTimeout” of an SQS message in a FIFO queue?
12 hours (do not confuse it with how the message can remain in the queue, which is 14 days)