Fastify éãã§ãã Express ã hapi ããé ãã®ã¯æå¤ã§ãã Koa ã¯æ¬ä½ã ãã 㨠Express 以ä¸ã«ä½ãããªãã®ã§ ãã®åéãã§ã ããã¿ãã¨é©ããªã®ã http.Server ãã Fastify ãéãã¨ããã¨ãã http.Server ã¯ãã¬ã¼ã ã¯ã¼ã¯ã使ããªã Node.js èªä½ã® API ã§ã Koa ã hapi ã¯ãããä¸ã§ä½¿ã£ã¦ãã¾ã ããããéãã¨ãããã¨ã¯ Fastify 㯠http.Server ã¯ä½¿ããã« net ãªã©ã使ã£ã¦ ã½ã±ããéä¿¡é¨åãç´æ¥æä½ãã¦ããã®ã§ããããï¼ http.Server ã使ã£ã¦ãªãï¼Fastify ã®ã½ã¼ã¹ã³ã¼ããè¦ãéãã§ã¯ ç¹ã«è¨å®ãããªããã° http.createServer ã§ãµã¼ããä½æãã¦ãã¾ã ã¤ã¾ã http.Server ã使ã£ã¦ãã¾ã https://github.com/fas
ããã³ãã¨ã³ãã®ããã©ã¼ãã³ã¹è¨æ¸¬ã¯å¾æãªã®ã ãããµã¼ãã¼ãµã¤ã node.js ã®ã¡ããªã¯ã¹ã®åãæ¹ã¯ãã¾ãç¥ããªãã¦ããã¤ãåã§ãããã¡ã ã£ããæè¿ã¯æ¥åã§ãã®å¨è¾ºã§å°ããã¨ãå¢ããã®ã§ãåå¼·ããªãããã ã¾ããæè¿ä½¿ã£ã¦ã¿ããã£ã cloudflare workers ã®å¶éã§ãã¡ã¢ãª 128MBãCPU æé 50ms ã¨ããå¶ç´ãããããã®ããã«ã Node.js ã® CPU ã®ã¡ããªã¯ã¹ãè¨æ¸¬ã§ããããã«ãªã£ã¦ããå¿ è¦ããã£ãã ã¨ããç®çãè¸ã¾ãã¦ãä»å㯠OS ããã¼ã¿ãã¼ã¹ã®æé©åã¯æ±ããããããã¯ã¼ã¯ã¨ã¢ããªã±ã¼ã·ã§ã³å±¤ã ãã«çµã£ã¦å¦ç¿ããããã¨ä»äºã® Docker ã¤ã¡ã¼ã¸ã®ãµã¤ãºã«ãæ©ãã§ãã®ã§ããããã (ã㨠ISUCON åå è ã楽ãããã ã£ãã®ãããã ISUCON ã®ãã¥ã¼ãã³ã°å¯¾è±¡ã«ããã³ãã¨ã³ãã¯å«ã¾ããªãã®ã§â¦) è¨æ¸¬å¯¾è±¡ ä»åå®é¨ãããªãã¸ããªã¯ã
è¿å¹´ã® Node.js 㯠API ã®ãµã¼ãã¨ãã¦ã¯ãã¡ãããNuxt.js ã Next.js ã¨ãã£ã SSR ã BFF ãªã©ããã³ãã¨ã³ãã®ããã®ããã¯ã¨ã³ãè¨èªã¨ãã¦ã®äººæ°ãé«ã¾ã£ã¦ãã¾ãã ããã³ãã¨ã³ãã¨ã³ã¸ãã¢ãã³ã³ããã¹ãã¹ã¤ããå°ãªãããã¯ã¨ã³ãã®æ´åãã§ãããã¨ã¯é常ã«å¤§ããªå©ç¹ã§ãã ã§ãããããã³ãã¨ã³ãï¼ãã©ã¦ã¶å´ï¼ã¨ããã¯ã¨ã³ãï¼ãµã¼ãå´ï¼ã§ã¯ããã©ã¼ãã³ã¹ãã¥ã¼ãã³ã°ã§è¦ãã¹ãç¹ã大ããéãã¾ãã ããã Node.js ã¢ããªã±ã¼ã·ã§ã³ã®ããã©ã¼ãã³ã¹ã¤ã·ã¥ã¼ã®è¦ã¤ãæ¹ãªã©ãã¾ã¨ã¾ã£ã¦ããè³æã¯å°ãªãã§ãã ããã§ãæ¬è¨äºã§ã¯ããã³ãã¨ã³ãã¨ã³ã¸ãã¢ã Node.js ã§ããã©ã¼ãã³ã¹ã¤ã·ã¥ã¼ãè¦ã¤ããæ¹åããããèªåãæ®æ®µããã©ã¼ãã³ã¹ãã¥ã¼ãã³ã°ãä¾é ¼ããã¦ããã¨ãã«ã¿ã¦ããåºç¤çãªãã¤ããã¾ã¨ãã¦ããã¾ãã 1. è¨æ¸¬ã¹ãããlink Node.js
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}