--- id: wiki-2026-0508-edge-computing title: Edge Computing category: 10_Wiki/Topics status: verified canonical_id: self aliases: [Edge AI, Fog Computing, Edge Inference, MEC] duplicate_of: none source_trust_level: A confidence_score: 0.92 verification_status: applied tags: [edge, iot, distributed-systems, latency, on-device] raw_sources: [] last_reinforced: 2026-05-10 github_commit: pending tech_stack: language: Rust/C++/Python framework: K3s / Cloudflare Workers / ONNX Runtime / WasmEdge --- # Edge Computing ## 매 한 줄 > **"매 edge computing 의 핵심: compute moves to data — latency + bandwidth + privacy"**. 매 2010s CDN edge → 매 2020s function-edge (Cloudflare Workers, Deno Deploy, AWS Lambda@Edge), 매 2022 edge AI inference, 매 2024 5G MEC. 매 2026 현재 phone (Apple Intelligence, Pixel Gemini Nano) → CDN edge (Workers AI) → micro-DC 의 3-tier edge stack 의 일반화. ## 매 핵심 ### 매 edge spectrum - **Device edge**: 매 phone, sensor, MCU, robot. - **Near edge / On-prem**: 매 factory floor, retail store K8s. - **Far edge / CDN**: 매 Cloudflare, Fastly, Akamai PoPs. - **MEC (Mobile Edge Computing)**: 매 5G base station co-located. ### 매 drivers - **Latency**: 매 <10ms — 매 cloud round-trip 의 불가능. - **Bandwidth**: 매 video / sensor stream의 cloud 전송 cost. - **Privacy / sovereignty**: 매 data 의 region / device 외 미반출. - **Resilience**: 매 offline operation. - **Cost**: 매 egress fee 회피. ### 매 응용 1. Real-time vision (autonomous driving, AR). 2. Voice assistants (Siri on-device wake-word). 3. Industrial control (PLC + edge AI). 4. Game streaming, low-latency RTC. 5. Edge AI inference (Llama 3.2 on phone, Whisper on Pi). ## 💻 패턴 ### Cloudflare Workers (function edge) ```ts export default { async fetch(req: Request, env: Env): Promise { const cache = caches.default; const cached = await cache.match(req); if (cached) return cached; const data = await env.DB.prepare("SELECT * FROM posts LIMIT 10").all(); const res = new Response(JSON.stringify(data), { headers: { "cache-control": "max-age=60" } }); await cache.put(req, res.clone()); return res; } }; ``` ### Workers AI (edge LLM inference) ```ts export default { async fetch(req, env) { const { prompt } = await req.json(); const out = await env.AI.run("@cf/meta/llama-3.2-3b-instruct", { prompt, max_tokens: 200 }); return Response.json(out); } }; ``` ### K3s (lightweight K8s for edge) ```bash # Install on edge node curl -sfL https://get.k3s.io | sh -s - --disable traefik --node-name edge-01 # Deploy edge inference service kubectl apply -f - <