Skip to content

SQS Long Polling

AWS SQS - Long PollingΒΆ

  • When a consumer requests message from the queue, it can optionally wait for messages to arrive if there are none in the queue.
  • This is called [[long polling]]
  • LongPolling decreases the number of [[API]] calls made to AWS SQS while increasing the efficiency and latency of your application.
  • The wait time can be between 1 to 20 sec (20 sec preferable)
  • Long Polling is preferable to short polling
  • Long polling can be enabled at the queue level or at the API level using WaitTimeSeconds