Edge Function とは?
Edge function は、中央サーバーではなく CDN edge のロケーションで実行される軽量なコードです。リクエストの書き換え、レスポンスのパーソナライズ、認証の処理、またはユーザーのいる場所でのコンテンツの組み立てができます。edge で実行することでレイテンシを削減し、origin の負荷を減らします。
なぜ重要か
Edge function は近くの cache の速さを犠牲にせずに動的なロジックを追加できます。かつて origin への往復を必要とした作業を、ネットワーク内の最も近いポイントに移動させます。
関連ガイド
What Is a CDN Edge?A CDN edge is a geographically distributed cache server that serves content from close to the user, cutting l…
What Is an Origin Server?An origin server is the authoritative source of content that a CDN pulls from and caches, handling requests t…
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…