AWS Lambdaはサーバーレスコンピューティングサービスです。サーバーを管理することなくコード(関数)を実行できます。AWSがインフラストラクチャの構築、スケーリング、管理を自動的に行い、ユーザーはコードを提供するだけです。コードはイベントに応答して実行され、使用したコンピューティング時間分だけの課金となります。
サーバーレス:管理するサーバーがない
SERVERLESS doesn't mean "no servers" — it means YOU don't manage them:
→ you provide CODE (a function); AWS runs it on demand
→ AWS handles provisioning, SCALING (automatically, to any load), patching, availability
→ pay ONLY for actual execution time (not idle servers) — no cost when not running
→ Focus purely on code, not infrastructure.
Lambdaの仕組み
→ You write a FUNCTION (in Node.js, Python, Java, Go, etc.)
→ It runs in response to EVENTS (triggers):
- HTTP requests (via API Gateway) → build APIs/backends
- file uploaded to S3 → process it
- message in a queue (SQS) → handle it
- scheduled (cron) → run periodically
- database changes, and many more
→ AWS runs the function, scales automatically (1 to thousands of concurrent executions)
