Overcome complex cloud challenges and build cloud talent from within
uptimeã¯node.jsã§ä½ãããWebãµã¼ãæ»æ´»ãã§ãã«ã¼ã§ãã Webãµã¼ãããã¡ãã¨æ£å¸¸ã«åãç¶ãã¦ãããã©ããä¸çªç°¡åã«ãã§ãã¯ããã®ã¯å®æçã«ã¢ã¯ã»ã¹ãã¦ã¬ã¹ãã³ã¹ã¿ã¤ã ãè¦ããã¨ã§ãããããªWebãµã¼ãã¹ã®æ»æ´»ãã§ãã¯ã«ä½¿ããã®ãuptimeã§ãã ãµã¼ããç«ã¡ä¸ãã¾ãããæåã«ç£è¦ããWebãµã¼ããè¨å®ãã¾ãã URLã¨ç£è¦ããééãæå®ãããããã§ãã ç£è¦ãéå§ãã¾ãããã°ã©ãã¯èªåæ´æ°ãããªãã®ã§ã注æãã ããã ã¤ãã³ããããã°ãã¡ãã«åºåããã¾ãã ã°ã©ãã§ã¯ãªãä¸è¦§ã§çµæã確èªã§ãã¾ãã å¾ã ã«ã°ã©ããæ´æ°ããã¦ããã¾ãã uptimeã¯1000以ä¸ã®Webãµã¼ããä¸æ¬ã§ç£è¦ã§ããããã©ã¼ãã³ã¹ãæã£ã¦ãã¾ããã¾ããã¦ã³ãã¦ããéã«ã¯Webã¢ã©ã¼ãã表示ã§ãã¾ããã¨ã©ã¼ããã£ãéã«ã¯HTTPã¹ãã¼ã¿ã¹ããã®å 容ãè¨é²ãã¦ããã¾ãããµã¼ãã¯ã¿ã°ã使ã£ã¦ã°ã«ã¼ã管
解éãééã£ã¦ããç¹ãããå¯è½æ§ã御座ãã¾ãã®ã§ãäºæ¿ãã ããã¾ããè¨äºã®å 容ã¨ãã¦ã¯ãNode.js ãªãä»ã®ãµã¼ãããããããªã«ç°¡åã« WebSocket ãæ±ãã(ã©ã¤ãã©ãªããã)ãã¨ãããããªå 容ã¨ãªã£ã¦ãã¾ãã®ã§ããäºæ¿ããã ããã°ã¨æãã¾ãã Node.js ã£ã¦ä½ï¼ Node.js ã«ã¤ãã¦ããããããæåã¯ä»¥ä¸ã®ãã¼ã¸ãèªãã§ã¾ããã Node.jsã«é¢ããåºç¤ãéçºã»ãã¥ã¼ããªã¢ã«ã®ã¾ã¨ã:phpspotéçºæ¥èª ä¾ãã°ããã°ã¤ã³ä¸ã®2人ããã¦ã1人ããã£ããã®ãªã¯ã¨ã¹ããããã¨ãã¾ããã§ãã©ã°ã30ç§ã»ã©ãã£ã¦ãæ°ä»ããã«éãã¡ãããªãã¦ãã¨ããªããªãã¾ãã ã¡ã³ãã¼Aã®ãã©ã¦ã¶ãã¡ã³ãã¼Bã®ãã©ã¦ã¶ã«ç´æ¥ããã·ã¥ããã£ã¦ãã¨ãã¨æåã¯æã£ã¦ãã¾ãããéãã¾ããããã®ç¹ã«ã¤ãã¦æ·±ãèãã¦ãããã¨ã¨ãªãã¾ãã Node.js ã使ãã¨ä½ãã§ããã®ã node.js ã使
æ¯æ¥ããã°ãæ¸ãããã«ãããä½èª¿ãè¯ããªã£ã ããæ¥ãµã¨ããæè¿ã®èªåã¯ã¢ã¦ããããã«èç ã«ãªã£ã¦ãããªã¼ãã¨æããããããã¨ã³ããªãæ¸ããã daiksy.hatenablog.jp å 容ã¯ãéãªã¢ã¦ããããã§ãã ãããã¼ããèããæµ ããªãã¿ãããªãåãã®ç®ãå¥ãããããã¨ãæãã¦ããããèªåãéå°ã«æèããã»ã©â¦
ãã£ã± jQuery 便å©ã§ãã(*´ã»Ïã»)(ã»Ïã»ï½*)ï¾ï½° ã»ã¬ã¯ã¿ä½¿ã£ã¦ jQuery ã§ãã«ãã«ãã£ã¦ãã¨ãDOM ã¨ãæ£è¦è¡¨ç¾ã§ããããããã®ããã«ããããªã£ã¡ããã¾ãã ã¨æ¥é ããæã£ã¦ãããã¦ã¾ãã¦ããµã¼ããµã¤ã JavaScript ãã¡ã¤ã³ã¹ããªã¼ã ã«ãªã£ã¦ãjQuery ã§ã¦ã§ãã¢ããªãã³ã¼ãã£ã³ã°ã§ããã°è¶ ã©ã¯ã§ããããã¨æå¾ ãã¦ãã¾ãã ã§ãå æ¥ãµã¼ããµã¤ãJavaScriptã¨jQueryã§ã¹ã¯ã¬ã¤ãã³ã°ã¨ããè¨äºããpã£ãã¨ããããã£ã± Rhino ãããªã㦠node.js ããã¼ãã(´・Ïï½¥ï½)ã¨ããã³ã¡ã³ããé ãã¾ããã®ã§ãnode.js 㨠jQuery ã§ãµã¼ããµã¤ã JavaScript ã¹ã¯ã¬ã¤ãã³ã°ãã¦ã¿ããã¨ã«ãã¾ããã ä»å㯠node.js ã§ãã®ã§ãåã«ã¹ã¯ã¬ã¤ãã³ã°ããï¼ã³ãã³ãã©ã¤ã³ããå®è¡ããï¼ã¹ã¯ãªããã ããããªãã¦ãã¹ã¯ã¬ã¤
æãããã¦ä¹ ã ã®æ´æ°ã«ãªã£ã¦ãã¾ã£ããããã°ãæ¸ãæ°ããªããªã£ãã¨ãããããã®ã§ã¯ãªãã¦ãã åã«å¿ããã£ãã ãããã®éãã¾ãä»äºãäºæãã¬æ¹åããçä¸ãã¦ã¿ãããäºæ ãããã£ã¦æè»ãå ¨æãããï¼ããã³ãã¬ã©ã¹ãå ¨é¢ç±ç·å ¥ããªãã¦ããå¤ãªãªãã·ã§ã³ãªã©ã諸ã ä»ãã¦ãããããæ°ã«å ¥ãã ã£ãã®ã«ï¼ã¨æ±ºãã¦è¯ããã¨ã°ããã§å¿ããã£ãããã§ã¯ãªããã©ãï¼ ã§ãä»å㯠node.js ã®ã話ãç°æ§ãªçãä¸ãããè¦ãã¦ãããã®ã®ããããããã£ã¦ãã£ããä½ãã¨ããã¨ãJavaScriptãç¨ããNon-blocking I/Oç°å¢ãã¨ããé常ã«ã·ã³ãã«ãªãã®ã ã ãã®æ ¹åºã«ã¯ããã¾ãã¹ã±ã¼ã«ã§ãããã¨ãã¨ãåä½ãéããã¨ãã¨ããç念ãè¦åããããã ã¾ãããã¾ãã¹ã±ã¼ã«ã§ãããã¨ï¼å¤éã®ã¢ã¯ã»ã¹ãæãããã¨ï¼ãã解決ããã«ããããã¾ãã¯ã¹ã¬ããã¢ãã«ããã¤ãã³ãã«ã¼ããã¨ããåé¡ããã£ãããã㧠auth
ããã«ã¡ã¯ãä¸å·ã§ãã å æç¡äºã«çµå©ãããéçºè ãä¸åãããè¿å¹´ã¢ã·ã¢ã«ã§ã¯å¾ã ã«æ¢å©è ãå¢ãã¦ãã¦ããç¶æ³ã§ãã ã¨ãããã¨ã§ãçµå©ã¨ããã°å ±åä½æ¥ã§ãããã ä»ã¾ã§ã¯ãä¸äººã§ä½æ¥ãã¦ãã¦å¤§å¤ãªãã¨ãè²ã ãã£ãã¨æãã¾ããã äºäººï¼è¤æ°ï¼ã§ããã°ãä¹ãè¶ãããããã¨ããããã¨ã§ãããã Webã¢ããªã§ãæè¿ã¯ãããå ±åä½æ¥ãããããç°å¢ãã§ãã¤ã¤ããããã«æãã¾ãã ããã§ãä»åã¯WebSocketã使ã£ããªã¢ã«ã¿ã¤ã éä¿¡ã§ã®ããåããè¡ãã ä¸ç·ã«ãçµµæããã§ãããµã³ãã«ã¢ããªãä½ã£ã¦ã¿ã¾ããã â â â æ¦è¦â â â ã»ã¢ããªæ¦è¦ ã»ã»Canvas + WebSocket ã»å¯¾å¿ãã©ã¦ã¶ ã»ã»Chrome or Safari (ä»ãWebSocketã使ãããã©ã¦ã¶ï¼ ã»ãµã¼ãå´ããã°ã©ã ã»ã»node.js 0.2.0 ã»ã»[email protected] ã»ã»websocket-se
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}