SQS Flashcards
How do you handle duplicate messages that are already IN an SQS queue?
Use a unique message identifier to deduplicate messages in the queue
How do you prevent duplicate messages being sent to the queue?
Content deduplication
Most cost effective solution for 3 instances running 9 scripts that take less than 5 mins?
- Convert scripts to Lambda Functions
- Schedule them with Event Bridge
What is Event Bridge
Event Bridge was previously know as Cloudwatch Events
How do you decouple appe using using SQS
- Send messages directly to SQS queue
- Retrieve and process messages as they become available
What 2 things does SQS do for apps?
- Decouples components
- Improves scalability
What affe a layer of timeout-and-retry logic to your lambda functions to help with managing failures with zero code?
Step Functions
Where do all events land once they have been triggered in the Event Bridge
event bus
Name the 8 states your machine can be in at anytime?
The Task State …..
What should you use to synchronize user data across mobile devices and the web?
App Sync and Cognito Sync
What is long polling?
if message responds immediately, if no message waits for a specified duration time out before sending an empty response
What is short polling
if no messages in the queue, responds immediately with an empty response