"매 서버 관리 없이 매 코드 실행 — 매 event-driven, 매 auto-scale, 매 pay-per-use". AWS Lambda (2014)로 매 popularize. 2026년에는 매 Lambda + EventBridge + Step Functions, Cloudflare Workers, Vercel Functions, Deno Deploy가 매 생태계 정점. 매 cold-start 문제는 매 SnapStart, Workers V8 isolate로 매 거의 해소.
매 핵심
매 특성
매 No server mgmt: 매 OS/patching 없음.
매 Event-driven: HTTP, queue, stream, schedule.
매 Auto-scale: 매 0 → 1000s, 매 즉시.
매 Pay-per-use: 매 idle cost 거의 0.
매 Stateless: 매 ephemeral execution.
매 trade-off
매 Cold start: 매 ms ~ 수 sec (매 Workers isolate ~ 5ms).
매 Vendor lock-in: 매 AWS-specific event shape.
매 Long-running 부적합: 매 limit (Lambda 15min, Workers 30s CPU).
// 매 outside handler — 매 init reused across invocations
importpostgresfrom"postgres";constsql=postgres(process.env.DB_URL!,{max: 1});exportconsthandler=async()=>{constrows=awaitsql`SELECT NOW()`;returnrows;};