{"id":194,"date":"2026-03-09T13:24:18","date_gmt":"2026-03-09T13:24:18","guid":{"rendered":"https:\/\/blog.rebalai.com\/ja\/2026\/03\/09\/cloudflare-workers-vs-aws-lambda-which-edge-runtim\/"},"modified":"2026-03-18T22:00:14","modified_gmt":"2026-03-18T22:00:14","slug":"cloudflare-workers-vs-aws-lambda-which-edge-runtim","status":"publish","type":"post","link":"https:\/\/blog.rebalai.com\/ja\/2026\/03\/09\/cloudflare-workers-vs-aws-lambda-which-edge-runtim\/","title":{"rendered":"Cloudflare Workers vs AWS Lambda: \u30d7\u30ed\u30c0\u30af\u30b7\u30e7\u30f3\u3067\u672c\u5f53\u306b\u4f7f\u3048\u308b\u30a8\u30c3\u30b8\u30e9\u30f3\u30bf\u30a4\u30e0\u306f\u3069\u3061\u3089\u304b"},"content":{"rendered":"<p>\u53bb\u5e74\u306e\u79cb\u3001\u30c1\u30fc\u30e0\u306e\u65b0\u3057\u3044API\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u30a8\u30c3\u30b8\u30e9\u30f3\u30bf\u30a4\u30e0\u306e\u9078\u5b9a\u3092\u3059\u308b\u3053\u3068\u306b\u306a\u3063\u305f\u3002\u30e1\u30f3\u30d0\u30fc\u306f5\u4eba\u3001\u30e6\u30fc\u30b6\u30fc\u306f\u65e5\u672c\u3068\u6771\u5357\u30a2\u30b8\u30a2\u306b\u5206\u6563\u3057\u3066\u3044\u308b\u3002\u300c\u3068\u308a\u3042\u3048\u305aLambda\u3067\u3044\u3044\u3093\u3058\u3083\u306a\u3044\uff1f\u300d\u3068\u3044\u3046\u58f0\u3082\u3042\u3063\u305f\u3051\u3069\u3001\u524d\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u30b3\u30fc\u30eb\u30c9\u30b9\u30bf\u30fc\u30c8\u306b\u4f55\u5ea6\u3082\u6ce3\u304b\u3055\u308c\u3066\u3044\u305f\u306e\u3067\u3001\u4eca\u56de\u306fCloudflare Workers\u3082\u771f\u9762\u76ee\u306b\u8a55\u4fa1\u3059\u308b\u3053\u3068\u306b\u3057\u305f\u3002<\/p>\n<p>2\u9031\u9593\u3001\u4e21\u65b9\u3092\u672c\u756a\u306b\u8fd1\u3044\u74b0\u5883\u3067\u52d5\u304b\u3057\u305f\u3002\u52a0\u3048\u3066\u305d\u306e\u5f8c\u6570\u30f6\u6708\u306e\u5b9f\u904b\u7528\u304c\u3042\u308b\u3002\u305d\u306e\u7d4c\u9a13\u3092\u6b63\u76f4\u306b\u66f8\u304f\u3002<\/p>\n<h2>\u30b3\u30fc\u30eb\u30c9\u30b9\u30bf\u30fc\u30c8\uff1a\u8a08\u6e2c\u3057\u3066\u307f\u308b\u3068\u5370\u8c61\u304c\u5909\u308f\u308b<\/h2>\n<p>Lambda\u306e\u30b3\u30fc\u30eb\u30c9\u30b9\u30bf\u30fc\u30c8\u306f\u305a\u3063\u3068\u958b\u767a\u8005\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u306e\u4e0d\u6e80\u306e\u7a2e\u3060\u3002\u81ea\u5206\u306e\u8a08\u6e2c\u3067\u306f\u3001Node.js 20\u30e9\u30f3\u30bf\u30a4\u30e0\u3001\u30e1\u30e2\u30ea512MB\u3001\u6771\u4eac\u30ea\u30fc\u30b8\u30e7\u30f3\u3068\u3044\u3046\u69cb\u6210\u3067\u3001\u30b3\u30fc\u30eb\u30c9\u30b9\u30bf\u30fc\u30c8\u306f\u5e73\u5747800ms\u301c1.2\u79d2\u7a0b\u5ea6\u304b\u304b\u3063\u305f\u3002\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u304c\u9014\u5207\u308c\u308b\u3068\u95a2\u6570\u304c\u30d5\u30ea\u30fc\u30ba\u3057\u3066\u3001\u6b21\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u6765\u305f\u3068\u304d\u306b\u8d77\u3053\u3055\u308c\u308b\u3002\u305d\u306e\u305f\u3073\u306b\u30e6\u30fc\u30b6\u30fc\u304c1\u79d2\u5f85\u305f\u3055\u308c\u308b\u3002<\/p>\n<p>Cloudflare Workers\u306f\u6839\u672c\u7684\u306b\u7570\u306a\u308b\u4ed5\u7d44\u307f\u3092\u4f7f\u3063\u3066\u3044\u308b\u3002V8\u30a2\u30a4\u30bd\u30ec\u30fc\u30c8\u3068\u547c\u3070\u308c\u308b\u3001Node\u306e\u30d7\u30ed\u30bb\u30b9\u30e2\u30c7\u30eb\u3067\u306f\u306a\u304fChrome\u306eJavaScript\u30a8\u30f3\u30b8\u30f3\u3092\u76f4\u63a5\u6d41\u7528\u3057\u305f\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u3060\u3002\u30b3\u30fc\u30eb\u30c9\u30b9\u30bf\u30fc\u30c8\u306e\u8a08\u6e2c\u5024\u306f5ms\u4ee5\u4e0b\u306e\u3053\u3068\u304c\u307b\u3068\u3093\u3069\u3067\u3001\u81ea\u5206\u306e\u30c6\u30b9\u30c8\u3067\u3082\u540c\u3058\u6570\u5b57\u304c\u51fa\u305f\u3002<\/p>\n<p>\u3053\u3053\u3067\u300c\u3058\u3083\u3042Workers\u4e00\u629e\u3060\u306a\u300d\u3068\u601d\u3063\u305f\u3002\u304c\u3001\u5b9f\u969b\u306f\u3082\u3046\u5c11\u3057\u8a71\u304c\u8907\u96d1\u3060\u3063\u305f\u3002<\/p>\n<p>Lambda\u306b\u306fProvisioned Concurrency\u3068\u3044\u3046\u6a5f\u80fd\u304c\u3042\u308b\u3002\u8ffd\u52a0\u30b3\u30b9\u30c8\u306f\u304b\u304b\u308b\u304c\u3001\u3053\u308c\u3092\u6709\u52b9\u306b\u3059\u308b\u3068\u30b3\u30fc\u30eb\u30c9\u30b9\u30bf\u30fc\u30c8\u304c\u307b\u307c\u30bc\u30ed\u306b\u306a\u308b\u3002\u69cb\u6210\u306b\u3088\u308b\u304c\u670820\u301c40\u30c9\u30eb\u306e\u8ffd\u52a0\u3068\u3044\u3046\u611f\u899a\u3067\u3001\u5e38\u306b\u30db\u30c3\u30c8\u306a\u72b6\u614b\u3092\u7dad\u6301\u3067\u304d\u308b\u3002\u672c\u756a\u306e\u91cd\u8981\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3067\u300c\u7d76\u5bfe\u306b\u30b3\u30fc\u30eb\u30c9\u30b9\u30bf\u30fc\u30c8\u3092\u51fa\u3057\u305f\u304f\u306a\u3044\u300d\u3068\u3044\u3046\u8981\u4ef6\u304c\u3042\u308b\u306a\u3089\u3001\u3053\u308c\u3067\u89e3\u6c7a\u3067\u304d\u308b\u3002<\/p>\n<p>\u3064\u307e\u308a\u300c\u30b3\u30fc\u30eb\u30c9\u30b9\u30bf\u30fc\u30c8\u306b\u56f0\u3063\u3066\u3044\u308b\u306a\u3089Workers\u300d\u306f\u6b63\u3057\u3044\u3002\u3067\u3082\u300cLambda\u3067\u306f\u30b3\u30fc\u30eb\u30c9\u30b9\u30bf\u30fc\u30c8\u3092\u89e3\u6c7a\u3067\u304d\u306a\u3044\u300d\u3068\u3044\u3046\u306e\u306f\u6b63\u78ba\u3067\u306f\u306a\u3044\u3002\u30b3\u30b9\u30c8\u7684\u306b\u8a31\u5bb9\u3067\u304d\u308b\u304b\u3069\u3046\u304b\u306e\u8a71\u306b\u306a\u308b\u3002<\/p>\n<h2>\u30c7\u30d7\u30ed\u30a4\u4f53\u9a13\u306e\u5dee\u304c\u60f3\u50cf\u3088\u308a\u5927\u304d\u304b\u3063\u305f<\/h2>\n<p>\u6b63\u76f4\u3001\u3053\u3053\u304c\u4e00\u756a\u9a5a\u3044\u305f\u30dd\u30a4\u30f3\u30c8\u304b\u3082\u3057\u308c\u306a\u3044\u3002\u6280\u8853\u7684\u306a\u30b9\u30da\u30c3\u30af\u3088\u308a\u3082\u3001\u65e5\u5e38\u306e\u958b\u767a\u30b5\u30a4\u30af\u30eb\u306b\u76f4\u7d50\u3059\u308b\u90e8\u5206\u304c\u5168\u7136\u9055\u3046\u3002<\/p>\n<p>Cloudflare Workers\u306e\u30c7\u30d7\u30ed\u30a4\u306f\u901f\u3044\u3002<code>wrangler deploy<\/code>\u3092\u53e9\u3044\u3066\u304b\u3089\u672c\u756a\u306b\u53cd\u6620\u3055\u308c\u308b\u307e\u306710\u301c15\u79d2\u3002\u3057\u304b\u3082\u305d\u306e\u5909\u66f4\u304c300\u4ee5\u4e0a\u306e\u30b0\u30ed\u30fc\u30d0\u30eb\u30a8\u30c3\u30b8\u30ed\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u4e00\u77ac\u3067\u5e83\u304c\u308b\u3002<\/p>\n<pre><code class=\"language-toml\"># wrangler.toml\nname = &quot;user-api&quot;\nmain = &quot;src\/index.ts&quot;\ncompatibility_date = &quot;2025-09-01&quot;\n\n[[kv_namespaces]]\nbinding = &quot;SESSION_STORE&quot;\nid = &quot;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&quot;\n<\/code><\/pre>\n<pre><code class=\"language-typescript\">\/\/ src\/index.ts \u2014 \u30b7\u30f3\u30d7\u30eb\u306a\u8a8d\u8a3c\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u306e\u4f8b\nexport default {\n  async fetch(request: Request, env: Env, ctx: ExecutionContext): Promise&lt;Response&gt; {\n    const token = request.headers.get(&quot;Authorization&quot;)?.split(&quot; &quot;)[1];\n    if (!token) {\n      return new Response(&quot;Unauthorized&quot;, { status: 401 });\n    }\n\n    \/\/ \u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u30a8\u30c3\u30b8\u306eKV\u304b\u3089\u5f15\u304f\uff08\u30ec\u30a4\u30c6\u30f3\u30b7: ~1ms\uff09\n    const session = await env.SESSION_STORE.get(`session:${token}`, &quot;json&quot;);\n    if (!session) {\n      return new Response(&quot;Invalid token&quot;, { status: 403 });\n    }\n\n    \/\/ \u30ea\u30af\u30a8\u30b9\u30c8\u306b\u30e6\u30fc\u30b6\u30fc\u60c5\u5831\u3092\u4ed8\u3051\u3066\u30aa\u30ea\u30b8\u30f3\u306b\u8ee2\u9001\n    const upstreamRequest = new Request(request, {\n      headers: { ...Object.fromEntries(request.headers), &quot;X-User-Id&quot;: session.userId }\n    });\n    return fetch(upstreamRequest);\n  }\n};\n<\/code><\/pre>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u3092\u30c7\u30d7\u30ed\u30a4\u3057\u3066\u5168\u4e16\u754c\u306b\u53cd\u6620\u3055\u305b\u308b\u306e\u306b15\u79d2\u3002\u4f53\u9a13\u3068\u3057\u3066\u306fgit push\u306b\u8fd1\u3044\u611f\u899a\u3060\u3002<\/p>\n<p>\u4e00\u65b9\u306eLambda\u306f\u3068\u3044\u3046\u3068\u3002SAM\u3084Serverless Framework\u3092\u4f7f\u3048\u3070<code>sam deploy<\/code>\u3067\u81ea\u52d5\u5316\u3067\u304d\u308b\u304c\u3001IAM\u30ed\u30fc\u30eb\u3001VPC\u306e\u8a2d\u5b9a\u3001CloudWatch\u306e\u30ed\u30b0\u30b0\u30eb\u30fc\u30d7\u3001\u30a8\u30e9\u30fc\u901a\u77e5\u306eSNS\u8a2d\u5b9a\u2026\u2026\u521d\u56de\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u306e\u8907\u96d1\u3055\u304c\u6841\u9055\u3044\u3060\u3002\u6163\u308c\u308c\u3070\u554f\u984c\u306a\u3044\u304c\u3001\u65b0\u30e1\u30f3\u30d0\u30fc\u304c\u30aa\u30f3\u30dc\u30fc\u30c9\u3059\u308b\u305f\u3073\u306b\u300cCloudFormation\u306e\u30b9\u30bf\u30c3\u30af\u304c\u306a\u305c\u304bROLLBACK_COMPLETE\u306b\u306a\u3063\u3066\u3066\u300d\u3068\u3044\u3046\u4e8b\u614b\u304c\u666e\u901a\u306b\u8d77\u304d\u308b\u3002<\/p>\n<p>\u30c7\u30d7\u30ed\u30a4\u6642\u9593\u3082\u9055\u3046\u3002\u5c0f\u3055\u306a\u5909\u66f4\u3067\u3082Lambda\u306f1\u301c2\u5206\u304b\u304b\u308b\u3053\u3068\u304c\u3042\u308b\u3002\u6bce\u65e550\u56de\u4ee5\u4e0a\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u958b\u767a\u30b5\u30a4\u30af\u30eb\u3067\u306f\u3001\u3053\u306e\u5dee\u304c\u3058\u308f\u3058\u308f\u52b9\u3044\u3066\u304f\u308b\u3002\u30c7\u30d7\u30ed\u30a4\u4f53\u9a13\u306e\u5dee\u306f\u6280\u8853\u30b9\u30da\u30c3\u30af\u306e\u8a71\u3067\u306f\u306a\u304f\u3001\u4e00\u65e5\u306e\u4f5c\u696d\u30ea\u30ba\u30e0\u306e\u8a71\u3060\u3002Workers\u304c\u4e0a\u2014\u2014\u3053\u308c\u306f\u4f53\u611f\u3068\u3057\u3066\u63fa\u308b\u304c\u306a\u3044\u3002<\/p>\n<h2>V8\u30a2\u30a4\u30bd\u30ec\u30fc\u30c8\u304c\u6301\u3064\u5236\u7d04\u3068\u3001\u305d\u308c\u304c\u4f55\u3092\u610f\u5473\u3059\u308b\u304b<\/h2>\n<p>Workers\u306e\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u304c\u901f\u3044\u7406\u7531\u3068\u3001\u305d\u306e\u4ee3\u511f\u306f\u540c\u3058\u30b3\u30a4\u30f3\u306e\u8868\u88cf\u3060\u3002<\/p>\n<p>V8\u30a2\u30a4\u30bd\u30ec\u30fc\u30c8\u306fNode\u306e\u30d7\u30ed\u30bb\u30b9\u3067\u306f\u306a\u3044\u305f\u3081\u3001Node.js\u56fa\u6709\u306eAPI\u304c\u4f7f\u3048\u306a\u3044\u3002<code>fs<\/code>\u3001<code>net<\/code>\u3001<code>child_process<\/code>\u3001<code>crypto<\/code>\uff08Node\u7248\uff09\u2014\u2014\u3053\u308c\u3089\u304c\u5168\u90e8\u52d5\u304b\u306a\u3044\u3002\u4ee3\u308f\u308a\u306bWeb\u6a19\u6e96API\uff08<code>fetch<\/code>\u3001<code>Request<\/code>\u3001<code>Response<\/code>\u3001<code>crypto.subtle<\/code>\u306a\u3069\uff09\u304c\u4f7f\u3048\u308b\u3002\u6700\u8fd1\u306f\u4e92\u63db\u6027\u30d5\u30e9\u30b0\u3067\u4e00\u90e8\u306eNode API\u304cpolyfill\u3055\u308c\u3066\u3044\u308b\u304c\u3001\u307e\u3060\u5b8c\u5168\u3067\u306f\u306a\u3044\u3002<\/p>\n<p>\u3053\u308c\u304c\u672c\u756a\u3067\u6700\u521d\u306b\u554f\u984c\u306b\u306a\u3063\u305f\u306e\u306fnpm\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f7f\u304a\u3046\u3068\u3057\u305f\u3068\u304d\u3060\u3063\u305f\u3002<code>pg<\/code>\uff08PostgreSQL\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\uff09\u306f\u52d5\u304b\u306a\u3044\u3002<code>mysql2<\/code>\u3082\u52d5\u304b\u306a\u3044\u3002Workers\u304b\u3089RDBMS\u306b\u76f4\u63a5\u63a5\u7d9a\u3059\u308b\u306b\u306f\u3001Cloudflare Hyperdrive\u7d4c\u7531\u304b\u3001HTTP API\u3092\u6301\u3064\u30de\u30cd\u30fc\u30b8\u30c9\u30b5\u30fc\u30d3\u30b9\uff08Supabase\u3001Neon\u3001PlanetScale\u306a\u3069\uff09\u3092\u4f7f\u3046\u5fc5\u8981\u304c\u3042\u308b\u3002\u3053\u308c\u306f\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306e\u9078\u629e\u3092\u5f37\u5236\u3057\u3066\u304f\u308b\u3002<\/p>\n<p>\u5b9f\u884c\u6642\u9593\u306e\u4e0a\u9650\u3082\u9055\u3046\u3002Workers\u306eFree tier\u306fCPU\u30bf\u30a4\u30e010ms\u3001Paid plan\u3067\u3082\u6700\u592730\u79d2\uff08Workers\u306ecron jobs\u306f\u3082\u3046\u5c11\u3057\u9577\u3044\uff09\u3002Lambda\u306f\u6700\u592715\u5206\u3002\u30d0\u30c3\u30c1\u51e6\u7406\u3001\u91cd\u3044\u5909\u63db\u51e6\u7406\u3001\u9577\u6642\u9593\u306e\u30aa\u30fc\u30b1\u30b9\u30c8\u30ec\u30fc\u30b7\u30e7\u30f3\u306b\u306f\u69cb\u9020\u4e0aWorkers\u306f\u5411\u3044\u3066\u3044\u306a\u3044\u3002\u3053\u308c\u306f\u30d0\u30b0\u3067\u306f\u306a\u304f\u8a2d\u8a08\u601d\u60f3\u3060\u304c\u3001\u6700\u521d\u304b\u3089\u77e5\u3063\u3066\u3044\u306a\u3044\u3068\u5f8c\u3067\u75db\u3044\u76ee\u3092\u898b\u308b\u3002\u30e1\u30e2\u30ea\u5236\u9650\u306fWorkers\u304c128MB\u56fa\u5b9a\u306b\u5bfe\u3057\u3066\u3001Lambda\u306f\u6700\u592710GB\u307e\u3067\u30b9\u30b1\u30fc\u30eb\u3067\u304d\u308b\u3002\u6a5f\u68b0\u5b66\u7fd2\u306e\u63a8\u8ad6\u3001\u5927\u304d\u306a\u30d5\u30a1\u30a4\u30eb\u5909\u63db\u3001\u30e1\u30e2\u30ea\u3092\u98df\u3046\u51e6\u7406\u2014\u2014\u3053\u3046\u3044\u3063\u305f\u7528\u9014\u3067Workers\u3092\u4f7f\u304a\u3046\u3068\u3059\u308b\u306e\u306f\u6839\u672c\u7684\u306b\u9593\u9055\u3063\u3066\u3044\u308b\u3002<\/p>\n<p>\u4e00\u3064\u8aa4\u89e3\u3057\u3066\u3044\u305f\u3053\u3068\u3092\u767d\u72b6\u3059\u308b\u3068\u2014\u2014\u6700\u521d\u3001Workers\u306eV8\u5236\u7d04\u306f\u300c\u53e4\u3044\u30b3\u30fc\u30c9\u3092\u52d5\u304b\u3059\u306e\u304c\u96e3\u3057\u3044\u300d\u7a0b\u5ea6\u306e\u8a71\u3060\u3068\u601d\u3063\u3066\u3044\u305f\u3002\u5b9f\u969b\u306b\u306f\u300c\u4f55\u3092\u4f7f\u3063\u3066\u4f55\u3092\u69cb\u7bc9\u3059\u308b\u304b\u300d\u3068\u3044\u3046\u30b9\u30bf\u30c3\u30af\u5168\u4f53\u306e\u9078\u629e\u306b\u5f71\u97ff\u3059\u308b\u3002\u65e2\u5b58\u306eNode.js\u30a8\u30b3\u30b7\u30b9\u30c6\u30e0\u306b\u6df1\u304f\u4f9d\u5b58\u3057\u305f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067Workers\u3078\u79fb\u884c\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u3001\u60f3\u5b9a\u3088\u308a\u5927\u304d\u306a\u30ea\u30e9\u30a4\u30c8\u304c\u5fc5\u8981\u306b\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u3002<\/p>\n<h2>\u672c\u756a\u3067\u5b9f\u969b\u306b\u8e0f\u3093\u3060\u7f60<\/h2>\n<p>\u91d1\u66dc\u306e\u5915\u65b9\u306bWorkers\u3078\u306e\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092push\u3057\u3066\u3001\u7fcc\u671dSlack\u3092\u898b\u305f\u3089\u300c\u672c\u756a\u306eAPI\u304c\u65ad\u7d9a\u7684\u306b500\u3092\u8fd4\u3057\u3066\u3044\u308b\u300d\u3068\u3044\u3046\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u6765\u3066\u3044\u305f\u3002\u6700\u521d\u306f\u30c7\u30d7\u30ed\u30a4\u304c\u539f\u56e0\u3060\u3068\u601d\u308f\u306a\u304b\u3063\u305f\u3002\u30a4\u30f3\u30d5\u30e9\u306e\u554f\u984c\u304b\u3068\u7591\u3063\u306630\u5206\u7121\u99c4\u306b\u3057\u305f\u3002<\/p>\n<p>\u539f\u56e0\u306fCrypto API\u306e\u6319\u52d5\u306e\u9055\u3044\u3060\u3063\u305f\u3002Lambda\u3067\u52d5\u3044\u3066\u3044\u305f\u30b3\u30fc\u30c9\u306fNode.js\u306e<code>crypto<\/code>\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u3063\u3066\u3044\u3066\u3001Workers\u306eWeb Crypto API\u3068\u306fAPI\u304c\u9055\u3046\u3002\u5177\u4f53\u7684\u306b\u306f\uff1a<\/p>\n<pre><code class=\"language-typescript\">\/\/ Node.js (Lambda) \u2014 \u540c\u671f\u3001\u3053\u308c\u304cWorkers\u4e0a\u3067\u306f\u52d5\u304b\u306a\u3044\nconst hash = crypto.createHash('sha256').update(data).digest('hex');\n\n\/\/ Web Crypto API (Workers) \u2014 \u975e\u540c\u671f\u306b\u306a\u308b\nconst encoder = new TextEncoder();\nconst hashBuffer = await crypto.subtle.digest('SHA-256', encoder.encode(data));\nconst hash = Array.from(new Uint8Array(hashBuffer))\n  .map(b =&gt; b.toString(16).padStart(2, '0')).join('');\n<\/code><\/pre>\n<p>\u30c6\u30b9\u30c8\u74b0\u5883\u3067\u306f\u52d5\u3044\u3066\u3044\u305f\u306e\u306b\u672c\u756a\u3067\u843d\u3061\u305f\u306e\u306f\u3001\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u304c\u5358\u7d14\u3059\u304e\u3066\u554f\u984c\u306e\u30b3\u30fc\u30c9\u30d1\u30b9\u3092\u8e0f\u3093\u3067\u3044\u306a\u304b\u3063\u305f\u305b\u3044\u3060\u3002\u6065\u305a\u304b\u3057\u3044\u3002<\/p>\n<p>Lambda\u3067\u7d4c\u9a13\u3057\u305f\u554f\u984c\u306f\u6027\u8cea\u304c\u9055\u3046\u30022025\u5e74\u306e2\u6708\u3001\u672c\u756a\u306eLambda\u95a2\u6570\u304cVPC\u306eENI\uff08Elastic Network Interface\uff09\u67af\u6e07\u3067\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u3092\u9023\u767a\u3059\u308b\u30a4\u30f3\u30b7\u30c7\u30f3\u30c8\u304c\u3042\u3063\u305f\u3002\u30b3\u30fc\u30c9\u306e\u554f\u984c\u304b\u30a4\u30f3\u30d5\u30e9\u306e\u554f\u984c\u304b\u306e\u5207\u308a\u5206\u3051\u306b2\u6642\u9593\u304b\u304b\u3063\u3066\u3001\u6700\u7d42\u7684\u306b\u306fAWS\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u8aad\u307f\u8fbc\u3093\u3067VPC\u8a2d\u5b9a\u3092\u5909\u66f4\u3057\u3066\u89e3\u6c7a\u3057\u305f\u3002\u3053\u3046\u3044\u3046\u30a4\u30f3\u30d5\u30e9\u30ec\u30a4\u30e4\u30fc\u306e\u554f\u984c\u304cLambda\u3067\u306f\u8d77\u304d\u3084\u3059\u3044\u2014\u2014Workers\u306f\u30a4\u30f3\u30d5\u30e9\u7ba1\u7406\u3092Cloudflare\u306b\u5b8c\u5168\u306b\u59d4\u8b72\u3059\u308b\u5206\u3001\u3053\u306e\u30ab\u30c6\u30b4\u30ea\u306e\u554f\u984c\u306f\u7d4c\u9a13\u3057\u3066\u3044\u306a\u3044\u3002<\/p>\n<p>\u30c7\u30d0\u30c3\u30b0\u306e\u3057\u3084\u3059\u3055\u3082\u9055\u3046\u3002Lambda\u306fCloudWatch Logs\u304c\u5145\u5b9f\u3057\u3066\u3044\u3066\u3001X-Ray\u3067\u5206\u6563\u30c8\u30ec\u30fc\u30b7\u30f3\u30b0\u3082\u53d6\u308c\u308b\u3002Workers\u3082<code>wrangler tail<\/code>\u3067\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306b\u30ed\u30b0\u3092\u898b\u3089\u308c\u308b\u304c\u3001\u8907\u96d1\u306a\u30de\u30a4\u30af\u30ed\u30b5\u30fc\u30d3\u30b9\u9593\u306e\u30c8\u30ec\u30fc\u30b7\u30f3\u30b0\u306e\u30a8\u30b3\u30b7\u30b9\u30c6\u30e0\u306f\u307e\u3060Lambda\u306b\u6bd4\u3079\u308b\u3068\u8584\u3044\u3002\u672c\u756a\u306e\u30d0\u30b0\u3092\u6df1\u304f\u8ffd\u3044\u304b\u3051\u308b\u3068\u304d\u306fLambda\u306e\u307b\u3046\u304c\u60c5\u5831\u304c\u53d6\u308a\u3084\u3059\u3044\u2014\u2014Workers\u304c\u30c0\u30e1\u3068\u3044\u3046\u3088\u308aAWS\u306e\u89b3\u6e2c\u6027\u30a8\u30b3\u30b7\u30b9\u30c6\u30e0\u304c\u5358\u7d14\u306b\u6210\u719f\u3057\u3066\u3044\u308b\u3001\u3068\u3044\u3046\u3053\u3068\u3060\u3002<\/p>\n<h2>\u3069\u3061\u3089\u3092\u3044\u3064\u4f7f\u3046\u304b\uff1a\u6570\u30f6\u6708\u52d5\u304b\u3057\u3066\u51fa\u305f\u7d50\u8ad6<\/h2>\n<p>\u4ffa\u306e\u7b54\u3048\u306f\u30b7\u30f3\u30d7\u30eb\u3060\u3002<\/p>\n<p>Cloudflare Workers\u304c\u5411\u3044\u3066\u3044\u308b\u306e\u306f\u3001\u30ec\u30a4\u30c6\u30f3\u30b7\u304c\u6700\u91cd\u8981\u3067\u3001\u51e6\u7406\u304c\u30b7\u30f3\u30d7\u30eb\u306aHTTP\u30ea\u30af\u30a8\u30b9\u30c8\u4e2d\u5fc3\u306e\u5834\u5408\u3002\u8a8d\u8a3c\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u3001API\u30b2\u30fc\u30c8\u30a6\u30a7\u30a4\u3001\u30a8\u30c3\u30b8\u30ad\u30e3\u30c3\u30b7\u30e5\u30ed\u30b8\u30c3\u30af\u3001\u5730\u7406\u7684\u306a\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3001A\/B\u30c6\u30b9\u30c8\u306e\u30d5\u30e9\u30b0\u51e6\u7406\u2014\u2014\u3053\u308c\u3089\u306fWorkers\u304c\u672c\u5f53\u306b\u901f\u304f\u3066\u30c7\u30d7\u30ed\u30a4\u3082\u697d\u3067\u30b3\u30b9\u30c8\u3082\u5b89\u3044\u3002\u30ea\u30af\u30a8\u30b9\u30c8100\u4e07\u4ef6\u3042\u305f\u308a$0.50\u3067\u3001Lambda\u3088\u308a\u5b89\u304f\u306a\u308b\u30b1\u30fc\u30b9\u304c\u591a\u3044\u3002\u65b0\u898f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067AWS\u306e\u4ed6\u30b5\u30fc\u30d3\u30b9\u3068\u306e\u6df1\u3044\u9023\u643a\u304c\u4e0d\u8981\u306a\u3089\u3001Workers\u3092\u6700\u521d\u306e\u9078\u629e\u80a2\u306b\u3059\u308b\u306e\u304c\u4eca\u306f\u6b63\u3057\u3044\u3068\u601d\u3046\u3002<\/p>\n<p>\u9006\u306bLambda\u3092\u9078\u3076\u3079\u304d\u306a\u306e\u306f\u3001\u65e2\u5b58\u306eNode.js\u30e9\u30a4\u30d6\u30e9\u30ea\u3078\u306e\u4f9d\u5b58\u304c\u5927\u304d\u3044\u5834\u5408\u3001\u5b9f\u884c\u6642\u9593\u304c\u9577\u3044\u51e6\u7406\u3001\u30e1\u30e2\u30ea\u3092\u5927\u91cf\u306b\u4f7f\u3046\u51e6\u7406\u3001AWS\u306e\u4ed6\u30b5\u30fc\u30d3\u30b9\uff08RDS\u3001SQS\u3001S3\u30a4\u30d9\u30f3\u30c8\u3001Step Functions\uff09\u3068\u306e\u9023\u643a\u304c\u4e2d\u5fc3\u306e\u5834\u5408\u3060\u3002\u3042\u3068\u30c1\u30fc\u30e0\u304cAWS\u306b\u6163\u308c\u3066\u3044\u3066IAM\u3084CloudWatch\u3092\u65e5\u5e38\u7684\u306b\u6271\u3048\u308b\u306a\u3089\u3001Lambda\u306e\u8907\u96d1\u3055\u306f\u305d\u3053\u307e\u3067\u969c\u58c1\u306b\u306a\u3089\u306a\u3044\u2014\u2014\u6163\u308c\u306e\u554f\u984c\u304c\u5927\u304d\u3044\u90e8\u5206\u3082\u3042\u308b\u3002<\/p>\n<p>\u4eca\u306e\u3046\u3061\u306e\u30c1\u30fc\u30e0\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u5411\u3051API\u30ec\u30a4\u30e4\u30fc\u3068Web\u30a2\u30d7\u30ea\u306eSSR\u3092Workers\u3067\u52d5\u304b\u3057\u3066\u3001\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306e\u91cd\u3044\u51e6\u7406\u3068AWS\u30b5\u30fc\u30d3\u30b9\u9023\u643a\u90e8\u5206\u306fLambda\u3092\u4f7f\u3044\u7d9a\u3051\u3066\u3044\u308b\u3002\u3053\u306e\u5f79\u5272\u5206\u62c5\u304c\u4eca\u4e00\u756a\u3057\u3063\u304f\u308a\u304d\u3066\u3044\u308b\u3002<\/p>\n<p>\u300c\u65b0\u898f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u3069\u3061\u3089\u304b\u4e00\u65b9\u3092\u9078\u3079\u300d\u3068\u8a00\u308f\u308c\u305f\u3089\u2014\u2014RDBMS\u3078\u306e\u76f4\u63a5\u63a5\u7d9a\u304c\u4e0d\u8981\u3067\u3001\u30c1\u30fc\u30e0\u304cWeb\u6a19\u6e96API\u306b\u6163\u308c\u3066\u3044\u308b\u304b\u6163\u308c\u308b\u610f\u6b32\u304c\u3042\u308b\u306a\u3089\u3001Cloudflare Workers\u3092\u85a6\u3081\u308b\u3002\u30b3\u30fc\u30eb\u30c9\u30b9\u30bf\u30fc\u30c8\u3092\u6c17\u306b\u3057\u306a\u304f\u3066\u3044\u3044\u3001\u30c7\u30d7\u30ed\u30a4\u304c\u901f\u3044\u3001\u30b0\u30ed\u30fc\u30d0\u30eb\u914d\u4fe1\u304c\u8a2d\u5b9a\u4e0d\u8981\u2014\u2014\u3053\u306e\u5feb\u9069\u3055\u306f\u5b9f\u969b\u306b\u4f53\u9a13\u3059\u308b\u3068\u601d\u3063\u3066\u3044\u305f\u4ee5\u4e0a\u306b\u5927\u304d\u304b\u3063\u305f\u3002<\/p>\n<p>Lambda\u306f\u300c\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u9078\u3070\u308c\u308b\u3082\u306e\u300d\u304b\u3089\u300c\u660e\u78ba\u306a\u7406\u7531\u304c\u3042\u308b\u3068\u304d\u306b\u9078\u3076\u3082\u306e\u300d\u306b\u5909\u308f\u308a\u3064\u3064\u3042\u308b\u3068\u611f\u3058\u3066\u3044\u308b\u3002\u7279\u306bAWS\u30a8\u30b3\u30b7\u30b9\u30c6\u30e0\u306e\u5916\u306b\u8ef8\u8db3\u304c\u3042\u308b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306f\u306a\u304a\u3055\u3089\u3002<\/p>\n<p><!-- Reviewed: 2026-03-09 | Status: ready_to_publish | Changes: removed English \"Right, so\" mid-article; restructured conclusion from parallel bold-header format to flowing prose; varied paragraph length in V8 section; tightened observability sentence; minor voice adjustments throughout --><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u53bb\u5e74\u306e\u79cb\u3001\u30c1\u30fc\u30e0\u306e\u65b0\u3057\u3044API\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u30a8\u30c3\u30b8\u30e9\u30f3\u30bf\u30a4\u30e0\u306e\u9078\u5b9a\u3092\u3059\u308b\u3053\u3068\u306b\u306a\u3063\u305f\u3002\u30e1\u30f3\u30d0\u30fc\u306f5\u4eba\u3001\u30e6\u30fc\u30b6\u30fc\u306f\u65e5\u672c\u3068\u6771\u5357\u30a2\u30b8\u30a2\u306b\u5206\u6563\u3057\u3066\u3044\u308b\u3002\u300c\u3068\u308a\u3042\u3048\u305aLambda\u3067\u3044\u3044\u3093\u3058\u3083\u306a\u3044\uff1f\u300d\u3068\u3044\u3046\u58f0\u3082\u3042\u3063\u305f\u3051\u3069\u3001\u524d\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u30b3\u30fc\u30eb\u30c9\u30b9\u30bf\u30fc\u30c8\u306b\u4f55\u5ea6\u3082\u6ce3\u304b\u3055\u308c\u3066\u3044\u305f\u306e\u3067\u3001\u4eca\u56de\u306fCloudflare Worke<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[1],"tags":[],"class_list":["post-194","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/posts\/194","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/comments?post=194"}],"version-history":[{"count":1,"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/posts\/194\/revisions"}],"predecessor-version":[{"id":219,"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/posts\/194\/revisions\/219"}],"wp:attachment":[{"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/media?parent=194"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/categories?post=194"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/tags?post=194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}