{"id":200,"date":"2026-03-09T18:23:05","date_gmt":"2026-03-09T18:23:05","guid":{"rendered":"https:\/\/blog.rebalai.com\/ja\/2026\/03\/09\/deno-20-in-production-2026-migration-from-nodejs-a\/"},"modified":"2026-03-09T22:00:15","modified_gmt":"2026-03-09T22:00:15","slug":"deno-20-in-production-2026-migration-from-nodejs-a","status":"publish","type":"post","link":"https:\/\/blog.rebalai.com\/ja\/2026\/03\/09\/deno-20-in-production-2026-migration-from-nodejs-a\/","title":{"rendered":"Deno 2.0\u3092\u672c\u756a\u30672\u30f6\u6708\u52d5\u304b\u3057\u3066\u5206\u304b\u3063\u305f\u3053\u3068 \u2014 Node.js\u304b\u3089\u306e\u79fb\u884c\u306f\u601d\u3063\u305f\u3088\u308a\u7d20\u76f4\u3067\u3001\u601d\u3063\u305f\u3088\u308a\u9762\u5012\u3060\u3063\u305f"},"content":{"rendered":"<h2>\u79fb\u884c\u524d\u306eNode.js\u30b9\u30bf\u30c3\u30af\u3001\u305d\u3057\u3066\u6b63\u76f4\u3046\u3093\u3056\u308a\u3057\u3066\u3044\u305f\u7406\u7531<\/h2>\n<p>3\u4eba\u30c1\u30fc\u30e0\u3067\u7ba1\u7406\u3057\u3066\u308b\u793e\u5185API\u304c\u3042\u308b\u3002\u30c7\u30fc\u30bf\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u306e\u7ba1\u7406UI\u5411\u3051\u306e\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u3067\u3001Express + TypeScript\u3001\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u304c30\u3061\u3087\u3063\u3068\u3001Prisma\u3067PostgreSQL\u306b\u7e4b\u3044\u3067\u305f\u3002\u30b3\u30fc\u30c9\u30d9\u30fc\u30b9\u81ea\u4f53\u306f\u5927\u304d\u304f\u306a\u3044\u3002<\/p>\n<p>\u3067\u3082\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u304c\u591a\u304b\u3063\u305f\u3002<code>tsconfig.json<\/code>\u3001<code>.eslintrc<\/code>\u3001<code>.prettierrc<\/code>\u3001<code>nodemon.json<\/code>\u3001<code>jest.config.ts<\/code>\u3001<code>.env.example<\/code>&#8230; \u65b0\u4eba\u304c\u5165\u308b\u305f\u3073\u306b\u300c\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u4f55\u306e\u305f\u3081\uff1f\u300d\u3068\u3044\u3046\u8cea\u554f\u304c\u6765\u308b\u3002\u3042\u3068CI\/CD\u3067<code>ts-node<\/code>\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u5fae\u5999\u306b\u305a\u308c\u3066\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u304c\u843d\u3061\u308b\u3001\u307f\u305f\u3044\u306a\u3053\u3068\u304c\u6708\u306b\u4e00\u5ea6\u306f\u3042\u3063\u305f\u3002<\/p>\n<p>Deno 2.0\u306b\u79fb\u884c\u3057\u305f\u304b\u3063\u305f\u7406\u7531\u306f\u305d\u308c\u3060\u3051\u3002\u300c\u9762\u767d\u305d\u3046\u300d\u3067\u3082\u300c\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u4e0a\u304c\u308b\u306f\u305a\u300d\u3067\u3082\u306a\u304f\u3001\u305f\u3060\u75b2\u308c\u3066\u305f\u3002<\/p>\n<p>Deno 2.0\u306f2024\u5e7410\u6708\u306b\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u3066\u3001\u4ee5\u6765\u305a\u3063\u3068\u6c17\u306b\u306a\u3063\u3066\u305f\u3002Node.js\u4e92\u63db\u6027\u304c\u5927\u5e45\u306b\u6539\u5584\u3055\u308c\u305f\u3068\u3044\u3046\u306e\u3068\u3001<code>npm:<\/code>\u30d7\u30ec\u30d5\u30a3\u30c3\u30af\u30b9\u3067npm\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u305d\u306e\u307e\u307e\u4f7f\u3048\u308b\u3068\u3044\u3046\u306e\u304c\u6c7a\u3081\u624b\u3060\u3063\u305f\u30022026\u5e741\u6708\u4e2d\u65ec\u306b\u79fb\u884c\u3092\u6c7a\u65ad\u3002\u305f\u3060\u3057\u3053\u308c\u306f\u52e2\u3044\u3067\u6c7a\u3081\u305f\u8a71\u3067\u306f\u306a\u304f\u3001\u5e74\u672b\u5e74\u59cb\u306b\u4e00\u5ea6\u30d6\u30e9\u30f3\u30c1\u3067\u8a66\u3057\u3066\u300c\u3044\u3051\u308b\u300d\u3068\u5224\u65ad\u3057\u3066\u304b\u3089\u3060\u3002\u79fb\u884c\u306b\u304b\u304b\u3063\u305f\u5b9f\u6642\u9593\u306f\u7d042\u9031\u9593\u2014\u20141\u9031\u9593\u304c\u79fb\u884c\u4f5c\u696d\u30011\u9031\u9593\u304c\u30d0\u30b0\u6f70\u3057\u3002<\/p>\n<hr \/>\n<h2>npm\u30d1\u30c3\u30b1\u30fc\u30b8\u4e92\u63db\u6027\u306e\u73fe\u5b9f \u2014 \u300c\u52d5\u304f\u300d\u3068\u300c\u5feb\u9069\u306b\u52d5\u304f\u300d\u306f\u5225\u306e\u8a71<\/h2>\n<p>\u4e92\u63db\u6027\u306f\u60f3\u5b9a\u3088\u308a\u305a\u3063\u3068\u826f\u304b\u3063\u305f\u3002\u305f\u3060\u300c\u5168\u90e8\u305d\u306e\u307e\u307e\u52d5\u304f\u300d\u3068\u3044\u3046\u671f\u5f85\u306f\u7518\u304b\u3063\u305f\u3002<\/p>\n<p>\u307e\u305a\u826f\u3044\u65b9\u304b\u3089\u3002<code>npm:<\/code>\u30d7\u30ec\u30d5\u30a3\u30c3\u30af\u30b9\u3067\u5927\u534a\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u307b\u307c\u305d\u306e\u307e\u307e\u52d5\u304f\u3002\u79fb\u884c\u521d\u65e5\u306e\u30b3\u30fc\u30c9\u306f\u3053\u3093\u306a\u611f\u3058\u3060\u3063\u305f:<\/p>\n<pre><code class=\"language-json\">\/\/ deno.json\n{\n  &quot;imports&quot;: {\n    &quot;express&quot;: &quot;npm:express@4.21.0&quot;,\n    &quot;zod&quot;: &quot;npm:zod@3.23.0&quot;,\n    &quot;@prisma\/client&quot;: &quot;npm:@prisma\/client@5.22.0&quot;\n  },\n  &quot;tasks&quot;: {\n    &quot;dev&quot;: &quot;deno run --allow-all --watch src\/main.ts&quot;,\n    &quot;start&quot;: &quot;deno run --allow-all src\/main.ts&quot;,\n    &quot;check&quot;: &quot;deno check src\/main.ts&quot;\n  }\n}\n<\/code><\/pre>\n<pre><code class=\"language-typescript\">\/\/ src\/main.ts \u2014 \u307b\u307c\u79fb\u884c\u524d\u306e\u307e\u307e\u52d5\u3044\u305f\nimport express from &quot;express&quot;;\nimport { z } from &quot;zod&quot;;\n\nconst app = express();\napp.use(express.json());\n\nconst pipelineSchema = z.object({\n  name: z.string().min(1),\n  schedule: z.string(),\n  enabled: z.boolean().default(true),\n});\n\napp.post(&quot;\/pipelines&quot;, async (req, res) =&gt; {\n  const result = pipelineSchema.safeParse(req.body);\n  if (!result.success) {\n    return res.status(400).json({ error: result.error.flatten() });\n  }\n  \/\/ DB\u51e6\u7406...\n});\n\napp.listen(3000);\n<\/code><\/pre>\n<p>Express\u3001zod\u3001axios\u3001dotenv \u2014 \u3053\u308c\u3089\u306f\u307b\u307c\u30ce\u30fc\u30bf\u30c3\u30c1\u3067\u52d5\u3044\u305f\u3002<\/p>\n<p>\u554f\u984c\u304c\u8d77\u304d\u305f\u306e\u306fPrisma\u3060\u3063\u305f\u3002<code>prisma generate<\/code>\u304cDeno\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u5e72\u6e09\u3057\u3066\u3001\u6700\u521d\u306f\u8d77\u52d5\u6642\u306b\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u304f\u3063\u305f\u3002\u534a\u65e5\u6eb6\u304b\u3057\u305f\u6319\u53e5\u3001\u7d50\u5c40<code>PRISMA_QUERY_ENGINE_LIBRARY<\/code>\u3092\u74b0\u5883\u5909\u6570\u3067\u660e\u793a\u7684\u306b\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u89e3\u6c7a\u3057\u305f\u3051\u3069\u3001\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u8a18\u8f09\u306f\u307e\u3060\u8584\u3044\uff08GitHub\u306eissue #23814\u304c\u4e00\u756a\u53c2\u8003\u306b\u306a\u3063\u305f\u3002\u540c\u3058\u3067\u8a70\u307e\u3063\u3066\u308b\u4eba\u306f\u305d\u3063\u3061\u3092\u898b\u3066\u307b\u3057\u3044\uff09\u3002<\/p>\n<p>Node.js\u7d44\u307f\u8fbc\u307f\u30e2\u30b8\u30e5\u30fc\u30eb\u3092 <code>import fs from \"fs\"<\/code> \u3068\u66f8\u3044\u3066\u308b\u7b87\u6240\u3082\u5168\u90e8 <code>import fs from \"node:fs\"<\/code> \u306b\u66f8\u304d\u76f4\u3057\u304c\u5fc5\u8981\u3060\u3063\u305f\u300230\u30d5\u30a1\u30a4\u30eb\u304f\u3089\u3044\u3002\u624b\u4f5c\u696d\u3060\u3063\u305f\u3051\u3069\u3001<code>deno check<\/code>\u304c\u672a\u5bfe\u5fdc\u7b87\u6240\u3092\u5168\u90e8\u6d17\u3044\u51fa\u3057\u3066\u304f\u308c\u305f\u306e\u306f\u52a9\u304b\u3063\u305f\u3002<\/p>\n<p>\u4e00\u500b\u5b8c\u5168\u306b\u60f3\u5b9a\u5916\u3060\u3063\u305f\u306e\u304c <code>__dirname<\/code> \u3068 <code>__filename<\/code>\u3002Deno\u306b\u306f\u5b58\u5728\u3057\u306a\u3044\u3002\u3053\u308c\u3092\u4f7f\u3063\u3066\u305f\u30b3\u30fc\u30c9\uff08\u4e3b\u306b\u30d1\u30b9\u89e3\u6c7a\uff09\u304c\u8ed2\u4e26\u307f\u58ca\u308c\u305f\u3002<code>import.meta.dirname<\/code> \u3067\u4ee3\u66ff\u3067\u304d\u308b\u3093\u3060\u3051\u3069\u3001\u3053\u308c\u306b\u6c17\u3065\u304f\u307e\u3067\u306e30\u5206\u9593\u3001\u300c\u306a\u3093\u3067\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u30d1\u30b9\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u3093\u3060\u300d\u3068\u305a\u3063\u3068\u60a9\u3093\u3067\u305f\u3002Deno\u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306f <code>__dirname is not defined<\/code> \u3068\u3060\u3051\u8a00\u3046\u3002\u4ee3\u66ff\u65b9\u6cd5\u307e\u3067\u8fbf\u308a\u7740\u304f\u306e\u306b\u691c\u7d22\u304c\u5fc5\u8981\u3067\u3001\u79fb\u884c\u4e2d\u306e30\u5206\u306f\u5730\u5473\u306b\u75db\u304b\u3063\u305f\u3002<\/p>\n<hr \/>\n<h2>\u672c\u756a2\u9031\u9593\u76ee\u306b\u8d77\u304d\u305f\u3053\u3068<\/h2>\n<p>Right, so \u2014 \u79fb\u884c\u304c\u7d42\u308f\u3063\u3066\u3001\u30c6\u30b9\u30c8\u74b0\u5883\u30671\u9031\u9593\u554f\u984c\u306a\u304f\u52d5\u3044\u305f\u3002\u91d1\u66dc\u306e\u5348\u5f8c\u306b\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u304b\u3089\u672c\u756a\u306b\u5207\u308a\u66ff\u3048\u305f\u3002<\/p>\n<p>\u6700\u521d\u306e4\u6642\u9593\u306f\u9806\u8abf\u3060\u3063\u305f\u3002<\/p>\n<p>\u5915\u65b918\u6642\u3054\u308d\u3001\u300cWebSocket\u304c\u9014\u5207\u308c\u308b\u300d\u3068\u3044\u3046\u5831\u544a\u304c\u6765\u305f\u3002\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u306e\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30ed\u30b0\u3092WebSocket\u3067\u6d41\u3057\u3066\u305f\u3093\u3060\u3051\u3069\u30011\u6642\u9593\u306b\u6570\u56de\u3001\u63a5\u7d9a\u304c\u52dd\u624b\u306b\u9589\u3058\u3066\u305f\u3002\u30e6\u30fc\u30b6\u30fc\u304b\u3089\u3059\u308b\u3068\u753b\u9762\u4e0a\u306e\u30ed\u30b0\u304c\u7a81\u7136\u6b62\u307e\u308b\u3002<\/p>\n<p>\u8abf\u3079\u305f\u3068\u3053\u308d\u3001\u539f\u56e0\u306fDeno\u306e\u30cd\u30a4\u30c6\u30a3\u30d6WebSocket\u5b9f\u88c5\u304cNode.js\u306e<code>ws<\/code>\u30e9\u30a4\u30d6\u30e9\u30ea\u3068keep-alive\u306e\u6319\u52d5\u304c\u7570\u306a\u308b\u3053\u3068\u3002Node.js\u306e<code>ws<\/code>\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067ping\/pong\u3092\u81ea\u524d\u7ba1\u7406\u3057\u3066\u305f\u3051\u3069\u3001Deno\u306e\u30cd\u30a4\u30c6\u30a3\u30d6<code>WebSocket<\/code>\u306f\u305d\u3053\u3092\u81ea\u5206\u3067\u5b9f\u88c5\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u3002<\/p>\n<pre><code class=\"language-typescript\">\/\/ \u4fee\u6b63\u5f8c\uff1akeep-alive\u3092\u660e\u793a\u7684\u306b\u7ba1\u7406\u3059\u308b\nfunction setupWebSocketKeepAlive(socket: WebSocket) {\n  const interval = setInterval(() =&gt; {\n    if (socket.readyState === WebSocket.OPEN) {\n      socket.send(JSON.stringify({ type: &quot;ping&quot; }));\n    } else {\n      clearInterval(interval);\n    }\n  }, 30_000);\n\n  socket.addEventListener(&quot;close&quot;, () =&gt; clearInterval(interval));\n}\n<\/code><\/pre>\n<p>\u571f\u66dc\u306e\u671d\u306b\u4fee\u6b63\u3057\u3066\u3001\u4ee5\u964d\u306f\u554f\u984c\u306a\u304f\u52d5\u3044\u3066\u308b\u3002\u305f\u3060\u3001\u3053\u308c\u306f\u81ea\u696d\u81ea\u5f97\u306a\u9762\u3082\u3042\u308b\u3002<code>npm:ws<\/code>\u3092\u305d\u306e\u307e\u307e\u4f7f\u3044\u7d9a\u3051\u308c\u3070\u8d77\u304d\u306a\u304b\u3063\u305f\u554f\u984c\u3067\u3001\u300c\u305b\u3063\u304b\u304fDeno\u306b\u79fb\u884c\u3057\u305f\u3093\u3060\u304b\u3089\u30cd\u30a4\u30c6\u30a3\u30d6API\u3092\u4f7f\u3044\u305f\u3044\u300d\u3068\u3044\u3046\u610f\u5730\u304c\u4f59\u8a08\u306a\u4f5c\u696d\u3092\u751f\u3093\u3060\u3002\u30cd\u30a4\u30c6\u30a3\u30d6API\u306b\u5207\u308a\u66ff\u3048\u308b\u306a\u3089\u3001\u6319\u52d5\u306e\u5dee\u5206\u306f\u81ea\u5206\u3067\u78ba\u8a8d\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u3002\u5206\u304b\u3063\u3066\u305f\u306f\u305a\u306e\u3053\u3068\u3092\u3001\u79fb\u884c\u306e\u52e2\u3044\u3067\u6cb9\u65ad\u3057\u3066\u305f\u3002<\/p>\n<hr \/>\n<h2>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u6570\u5b57\u3068\u3001\u672c\u5f53\u306b\u610f\u5473\u304c\u3042\u3063\u305f\u5909\u66f4<\/h2>\n<p>2\u30f6\u6708\u904b\u7528\u3057\u305f\u7d50\u679c\u306e\u6570\u5b57\u3092\u66f8\u304f\u3002\u6bd4\u8f03\u5bfe\u8c61\u306fNode.js 22.x\uff08\u79fb\u884c\u524d\u306e\u6700\u7d42\u30d0\u30fc\u30b8\u30e7\u30f3\uff09\u3002<\/p>\n<p><strong>\u30b3\u30fc\u30eb\u30c9\u30b9\u30bf\u30fc\u30c8\u6642\u9593<\/strong>: Node.js + ts-node\u304c\u7d042.1\u79d2 \u2192 Deno 2.0\u304c\u7d040.8\u79d2\u30021.3\u79d2\u306e\u5dee\u304c\u30c7\u30d7\u30ed\u30a4\u983b\u5ea6\u306e\u9ad8\u3044\u74b0\u5883\u3067\u306f\u5730\u5473\u306b\u52b9\u304f\u3002\u30b3\u30f3\u30c6\u30ca\u3092\u518d\u8d77\u52d5\u3059\u308b\u305f\u3073\u306b0.8\u79d2\u901f\u304f\u306a\u308b\u3002<\/p>\n<p><strong>\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf<\/strong>: \u6b63\u76f4\u3001\u307b\u307c\u5909\u308f\u3089\u306a\u304b\u3063\u305f\u3002\u30a2\u30a4\u30c9\u30eb\u6642\u3067Node.js\u304c\u7d0495MB\u3001Deno\u304c\u7d0488MB\u3002\u8aa4\u5dee\u306e\u7bc4\u56f2\u3002\u300cDeno\u306f\u30e1\u30e2\u30ea\u52b9\u7387\u304c\u3044\u3044\u300d\u3068\u3044\u3046\u8a71\u3092\u805e\u3044\u3066\u305f\u3051\u3069\u3001\u3053\u306e\u30b5\u30a4\u30ba\u306e\u30a2\u30d7\u30ea\u3067\u306f\u5dee\u304c\u51fa\u306a\u304b\u3063\u305f\u3002<\/p>\n<p><strong>\u958b\u767a\u4f53\u9a13<\/strong>: \u3053\u308c\u304c\u4e00\u756a\u5909\u308f\u3063\u305f\u3002<code>deno fmt<\/code>\u3001<code>deno lint<\/code>\u3001<code>deno check<\/code>\u304c\u30d3\u30eb\u30c8\u30a4\u30f3\u306a\u306e\u3067\u3001\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u304c\u5927\u5e45\u306b\u6e1b\u3063\u305f\u3002<\/p>\n<p>\u79fb\u884c\u524d\u306edevDependencies\uff08\u629c\u7c8b\uff09:<\/p>\n<pre><code>typescript, ts-node, nodemon, eslint, @typescript-eslint\/parser,\n@typescript-eslint\/eslint-plugin, prettier, jest, @types\/jest, ts-jest...\n<\/code><\/pre>\n<p>\u79fb\u884c\u5f8c: <code>deno.json<\/code>\u306b\u672c\u756a\u4f9d\u5b58\u306e\u307f\u3002<code>package.json<\/code>\u304c\u6d88\u3048\u305f\u3002<\/p>\n<p>\u3053\u308c\u3060\u3051\u3067\u5341\u5206\u3084\u3063\u305f\u4fa1\u5024\u306f\u3042\u3063\u305f\u3068\u601d\u3063\u3066\u308b\u3001\u5c11\u306a\u304f\u3068\u3082\u50d5\u306e\u5834\u5408\u306f\u3002<\/p>\n<p>One thing I noticed: \u79fb\u884c\u5f8c\u306b\u4e00\u756a\u559c\u3093\u3067\u305f\u306e\u306f\u3001\u610f\u5916\u306b\u3082PR\u30ec\u30d3\u30e5\u30fc\u304c\u697d\u306b\u306a\u3063\u305f\u3053\u3068\u3002<code>deno fmt<\/code>\u304c\u5f37\u5236\u3055\u308c\u308b\u304b\u3089\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306e\u5dee\u5206\u304c\u51fa\u306a\u3044\u3002\u8ab0\u304c\u66f8\u3044\u3066\u3082\u30b3\u30fc\u30c9\u304c\u63c3\u3046\u3002\u300c\u30a4\u30f3\u30c7\u30f3\u30c84\u3064\u304b2\u3064\u304b\u300d\u307f\u305f\u3044\u306a\u4e0d\u6bdb\u306a\u8b70\u8ad6\u304c\u306a\u304f\u306a\u3063\u305f\u3002\u5730\u5473\u3060\u3051\u3069\u3001\u9031\u306b\u4f55\u5ea6\u3082PR\u3092\u898b\u3066\u308b\u3068\u304b\u306a\u308a\u52b9\u304f\u3002<\/p>\n<p>\u3042\u3068\u8a66\u9a13\u7684\u306b\u4f7f\u3063\u3066\u308b\u6a5f\u80fd\u3068\u3057\u3066\u3001<code>deno compile<\/code>\u3067\u30b7\u30f3\u30b0\u30eb\u30d0\u30a4\u30ca\u30ea\u3092\u51fa\u529b\u3067\u304d\u308b\u3002Docker\u30a4\u30e1\u30fc\u30b8\u304c230MB\u219218MB\u306b\u306a\u3063\u305f\uff08\u307e\u3060\u672c\u756a\u306b\u306f\u5165\u308c\u3066\u306a\u3044\u3051\u3069\u3001\u3044\u305a\u308c\u79fb\u884c\u3057\u305f\u3044\uff09\u3002<\/p>\n<hr \/>\n<h2>\u7d50\u5c40\u3001Deno 2.0\u306b\u79fb\u884c\u3059\u3079\u304d\u304b \u2014 \u6b63\u76f4\u306a\u7b54\u3048<\/h2>\n<p>\u300c\u3042\u306a\u305f\u306e\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9\u6b21\u7b2c\u3067\u3059\u300d\u3068\u306f\u8a00\u308f\u306a\u3044\u3002\u3082\u3046\u5c11\u3057\u5177\u4f53\u7684\u306b\u8a00\u3046\u3002<\/p>\n<p><strong>\u4eca\u3059\u3050\u79fb\u884c\u3059\u308b\u4fa1\u5024\u304c\u3042\u308b\u30b1\u30fc\u30b9:<\/strong> Node.js\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u5730\u7344\u306b\u75b2\u308c\u3066\u3066\u3001\u30c1\u30fc\u30e0\u304c\u5c0f\u3055\u304f\u3066\uff085\u4eba\u4ee5\u4e0b\u304f\u3089\u3044\uff09\u3001\u30b3\u30a2\u306a\u4f9d\u5b58\u304cExpress\u3084fastify + zod\u307f\u305f\u3044\u306a\u30e1\u30b8\u30e3\u30fc\u3069\u3053\u308d\u3060\u3051\u306a\u3089\u3001\u79fb\u884c\u30b3\u30b9\u30c8\u306f\u4f4e\u3044\u3002\u50d5\u306e\u30b1\u30fc\u30b9\u304c\u307e\u3055\u306b\u3053\u308c\u3060\u3063\u305f\u3002\u79fb\u884c\u3057\u3066\u5f8c\u6094\u3057\u3066\u306a\u3044\u3002<\/p>\n<p><strong>\u614e\u91cd\u306b\u3059\u3079\u304d\u30b1\u30fc\u30b9:<\/strong> Prisma\u3084Sequelize\u304c\u4e2d\u5fc3\u306e\u30b3\u30fc\u30c9\u30d9\u30fc\u30b9\u3067\u3001\u304b\u3064Deno\u7d4c\u9a13\u8005\u304c\u30bc\u30ed\u306a\u3089\u3001\u4eca\u3059\u3050\u79fb\u884c\u3059\u308b\u306e\u306f\u5272\u308a\u306b\u5408\u308f\u306a\u3044\u304b\u3082\u3057\u308c\u306a\u3044\u3002Prisma\u306f\u52d5\u304f\u3051\u3069\u3001\u8ffd\u52a0\u306e\u624b\u9593\u304c\u304b\u304b\u308b\u3002\u30cd\u30a4\u30c6\u30a3\u30d6\u30a2\u30c9\u30aa\u30f3\uff08<code>.node<\/code>\u30d5\u30a1\u30a4\u30eb\uff09\u3092\u4f7f\u3063\u3066\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u5165\u3063\u3066\u308b\u306a\u3089\u3001\u307e\u3060\u6642\u671f\u5c1a\u65e9\u3002<\/p>\n<p>\u5927\u304d\u3081\u306e\u30c1\u30fc\u30e0\uff0810\u4eba\u4ee5\u4e0a\uff09\u3067Deno\u7d4c\u9a13\u8005\u304c\u3044\u306a\u3044\u5834\u5408\u306f\u3001\u5b66\u7fd2\u30b3\u30b9\u30c8\u3092\u7518\u304f\u898b\u306a\u3044\u65b9\u304c\u3044\u3044\u3002\u57fa\u672c\u7684\u306a\u3053\u3068\u306f\u4f3c\u3066\u308b\u3051\u3069\u3001\u6a29\u9650\u30e2\u30c7\u30eb\uff08<code>--allow-net<\/code>\u3068\u304b\uff09\u3084<code>import.meta<\/code>\u306e\u6271\u3044\u3001\u305d\u308c\u306bNode.js\u3068\u306eAPI\u306e\u5fae\u5999\u306a\u5dee\u5206\u306f\u3001\u3042\u308b\u7a0b\u5ea6\u6163\u308c\u304c\u5fc5\u8981\u3002<\/p>\n<p>\u50d5\u304c\u4e00\u756a\u91cd\u8996\u3057\u3066\u308b\u306e\u306f\u300c\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u304c\u6e1b\u308b\u304b\u3069\u3046\u304b\u300d\u3068\u3044\u3046\u57fa\u6e96\u3002\u305d\u308c\u304c\u4eca\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u75db\u70b9\u306a\u3089\u3001Deno 2.0\u306f\u307b\u307c\u78ba\u5b9f\u306b\u6539\u5584\u3092\u3082\u305f\u3089\u3059\u3002\u9006\u306b\u3001\u73fe\u72b6\u306eNode.js\u30b9\u30bf\u30c3\u30af\u3067\u958b\u767a\u4f53\u9a13\u306b\u4e0d\u6e80\u304c\u306a\u3044\u306a\u3089\u3001\u79fb\u884c\u30b3\u30b9\u30c8\u3092\u6255\u3046\u30e1\u30ea\u30c3\u30c8\u306f\u8584\u3044\u3002Node.js 22\u4ee5\u964d\u306e\u958b\u767a\u4f53\u9a13\u3082\u5b9f\u969b\u304b\u306a\u308a\u826f\u304f\u306a\u3063\u3066\u308b\u306e\u3067\u3002<\/p>\n<p>\u4e00\u500b\u3060\u3051\u5f37\u304f\u3059\u3059\u3081\u308b: \u79fb\u884c\u524d\u306b\u3001\u81ea\u5206\u306e\u30b3\u30fc\u30c9\u30d9\u30fc\u30b9\u3067\u4e00\u756a\u30af\u30ea\u30c6\u30a3\u30ab\u30eb\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\uff08ORM\u3068\u304bWebSocket\u3068\u304b\uff09\u3092\u5148\u306b\u5358\u4f53\u691c\u8a3c\u3059\u308b\u3053\u3068\u3002\u9031\u672b\u306e\u672c\u756a\u969c\u5bb3\u3067\u8abf\u3079\u308b\u3088\u308a\u3001\u5e73\u65e5\u306e\u663c\u9593\u306b\u843d\u3061\u7740\u3044\u3066\u8abf\u3079\u308b\u65b9\u304c\u3044\u3044\u2014\u2014\u3053\u308c\u306f\u7d4c\u9a13\u304b\u3089\u8a00\u3063\u3066\u308b\u3002<\/p>\n<p><!-- Reviewed: 2026-03-10 | Status: ready_to_publish | Changes: tightened opening backstory, added context for migration decision timing, punched up Prisma pain paragraph, trimmed generic phrasing in conclusion, sharpened final recommendation to first-person experience, extended meta_description --><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u79fb\u884c\u524d\u306eNode.js\u30b9\u30bf\u30c3\u30af\u3001\u305d\u3057\u3066\u6b63\u76f4\u3046\u3093\u3056\u308a\u3057\u3066\u3044\u305f\u7406\u7531 3\u4eba\u30c1\u30fc\u30e0\u3067\u7ba1\u7406\u3057\u3066\u308b\u793e\u5185API\u304c\u3042\u308b\u3002\u30c7\u30fc\u30bf\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u306e\u7ba1\u7406UI\u5411\u3051\u306e\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u3067\u3001Express + TypeScript\u3001\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u304c30\u3061\u3087\u3063\u3068\u3001Prisma\u3067PostgreSQL\u306b\u7e4b\u3044\u3067\u305f\u3002\u30b3\u30fc\u30c9\u30d9\u30fc\u30b9\u81ea\u4f53\u306f\u5927\u304d\u304f\u306a\u3044\u3002 \u3067\u3082\u8a2d<\/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-200","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/posts\/200","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=200"}],"version-history":[{"count":1,"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/posts\/200\/revisions"}],"predecessor-version":[{"id":213,"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/posts\/200\/revisions\/213"}],"wp:attachment":[{"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/media?parent=200"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/categories?post=200"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/tags?post=200"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}