Long Polling とは?
Long polling は、client がリクエストを送り、server が新しいデータが利用可能になるか timeout が経過するまでそれを開いたままにしてから応答する手法です。client はすぐに別のリクエストを発行して再び待機します。常時のストリームを開いたままにせずに、素の HTTP 上で push の振る舞いを近似します。
なぜ重要か
Long polling は通常の HTTP インフラとの互換性を保ちながら、高速な short polling の無駄なリクエストとレイテンシを削減します。SQS のような queue は、consumer が新しいメッセージを効率的に待てるようにこれを使います。
関連ガイド
What Is Short Polling?Short polling repeatedly sends quick requests at a fixed interval, returning immediately whether or not new d…
What Are Server-Sent Events?Server-sent events let a server push a one-way stream of updates to a browser over a single long-lived HTTP c…
What Is a Visibility Timeout?A visibility timeout is the period after a message is received during which it is hidden from other consumers…