Decoupling Flashcards
What is the advantage of loosely coupled system?
If any one instance fails, the application will still work or be able to recover
Should you tightly couple systems?
No you should never tightly couple systems e.g. instances should not talk directly to another
At what level of your app should it be loosely coupled?
At every level should be loosely coupled
What processing type does SQS allow?
Allows asynchrous processing
What is the SQS max message size?
256KB per message
What is encrypted by default for SQS? What is not?
Encrypted default for in transit but not default for at-rest
Between short polling and long polling, what should you focus on in the exam? Which is default?
Focus on long polling. Short polling is default
What is the min and max message retention period? Default?
Min Retention is 1 minute
Max Retention is 14 days
Default 4 days
What is Queue Depth and what is used for?
Queue Depth is the amount of messages backed up in the queue and used for kicking off auto scaling consumers
What is delivery delay? The default? The max?
The amount of time new messages remain invisible to consumers of the queue. Default is 0 minutes. Max is 15 minutes
What is visibility timeout? The default? The max/min?
Visibility timeout is the time period where a message is not visible to consumers for processing/consumption. A consumer has this amount of time to process the message before it goes back onto the queue.
Default is 30 seconds
Max is 12 hours
Min is 0 seconds
What should you setup along with Dead Letter Queues?
Cloud Watch Alarms on queue depth to let you know things are backed up
What 2 things should you consider if there is a question about problems with a SQS queue?
- Dead Letter Queue
2. Visibility Timeout
What other service can you use ideally with DLQ?
You can send failed SNS messages to a DLQ
What are Dead Letter Queues?
SQS Queues where failed/rejected messages go after a certain amount of retries in the main SQS queue