Interview Prep/AWS/DNS, CDN and Messaging

What is SQS long polling?

IntermediateConceptDNS, CDN and Messaging
Answer

With long polling (WaitTimeSeconds 1–20), ReceiveMessage waits until a message arrives instead of returning immediately empty. It cuts empty responses, API cost and CPU, and reduces false-empty responses from sampling a subset of servers in short polling.

aws sqs receive-message --queue-url $Q --wait-time-seconds 20 --max-number-of-messages 10

It can also be set queue-wide with ReceiveMessageWaitTimeSeconds.

aws All AWS questions Roadmap: AWS core services

More on DNS, CDN and Messaging