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.
More on DNS, CDN and Messaging
What are the Route 53 record types and why use Alias instead of CNAME?BeginnerDescribe Route 53 routing policies.IntermediateHow do Route 53 health checks and DNS failover work?AdvancedWhat is a Route 53 private hosted zone?IntermediateHow does DNS TTL relate to failover and migrations?BeginnerWhat are Route 53 Resolver endpoints and rules?Advanced