Web2.0ã¨C10Kã«é¢ããæ°ã ã®èª¤è§£
Web2.0 = Ajax/Cometãªã®ï¼ã¨ãããã»ã¹IDã¯ä»ã§ã16ããããªã®ï¼ã¨ãã¯ãµããªãã
åã ã®ã¯ã©ã¤ã¢ã³ãããµã¼ãã«è¦æ±ããå¦çéã¯å°ããªãã®ã§ãã¼ãã¦ã§ã¢ã®æ§è½ä¸ã¯åé¡ããªãã¦ãããã¾ãã«ãã¯ã©ã¤ã¢ã³ãã®æ°ãå¤ããªãã¨ãµã¼ãããã³ã¯ããââããããæè¿Webéçºè ã®éã§è©±é¡ã¨ãªã£ã¦ãããC10Kåé¡ãï¼ã¯ã©ã¤ã¢ã³ã1ä¸å°åé¡ï¼ã ã
AjaxãCometãªã©ã®ã¯ã©ã¤ã¢ã³ãå´æè¡ã«ä¼´ããµã¼ãå´ã®åé¡ã«é¢ãã¦ãããã誤解ããããããªã®ã§,æ¸ãã¦ãããã.ãã£ã¨lingrã®ä¸ã®äººã¯ãã®è¨äºèªãã§ãã¤ãã¤ãã¦ãã¯ã.
以ä¸ãè¨äºã«ãªããã¨ãæ¸ãã¦ããã®ã§ãã®ã¤ããã§.
誤解ãã®1 Ajaxã«ããWebã¢ããªã®å°é ã§ãµã¼ãå´ã®è² è·ãå¢å¤§ãã
Ajaxã®å
¸åçãªä½¿ãæ¹ã¯ãµã¼ãã«åãåããã¦ãã¼ã¸ã®ä¸é¨åã ãã
å¤åãããã¨ããã¢ãã .ããã¯ãã¼ã¸å
¨ä½ãæ¸ãæããå¾æ¥ã®æ¹æ³ã¨éã,
ãã§ã«ã¬ã³ããªã³ã°ããã¦ããç»åã®å¼ã³åºããªã©ããªããªãã®ã§,ããã£ã¦
ãµã¼ãã¸ã®è² è·ãä¸ããã±ã¼ã¹ããã.
ã¤ã¾ãããWebã¢ããªãæä½ããã®ã«å¿ è¦ãªã¯ãªãã¯æ°ãä¸å®ã ã¨ããã¨,Ajaxã«ãã£ã¦ãµã¼ãå´ã®è² è·ã¯ããããä¸ãã.
ãã¡ãããã¦ã¹ãªã¼ããªã©ã§ãµã¼ãã«åãåããããããªãµã¼ãã¹ã«é¢ãã¦ã¯ãã®éãã§ã¯ãªã.
誤解ãã®2 1ã³ãã¯ã·ã§ã³ã®ç¶æã«1ã¹ã¬ãããããã¯1ããã»ã¹å¿ è¦
ãµã¼ãå´ããè¦ãå ´å,ã¯ã©ã¤ã¢ã³ãããopenãããã½ã±ããã¨ããã®ã¯
åãªããªã¼ãã³ããããã¡ã¤ã«ãã£ã¹ã¯ãªãã¿ã«ãªã.ãã£ã¦ããã
ç¶æããã®ã«1ããã»ã¹ãããã¯1ã¹ã¬ãããå¿
è¦ã¨ãããã¨ã¯ãªã.
ãããã¯ã¼ã¯ããã°ã©ã ã§forkãã¹ã¬ãããå¿
è¦ãªã®ã¯,ã½ã±ããããã®
è¦æ±ã«å¯¾ãã¦åæ並è¡çã«å¦çãè¡ãå¿
è¦ãããããã§,cometã®ããã«
ã¯ã©ã¤ã¢ã³ãããã®æ¸ãè¾¼ã¿è¦æ±ã¯å¥Port,ãã¨ã¯å¤§å¤æ°ã®
ç¶æã³ãã¯ã·ã§ã³ã¸ã®å¦çãè¡ãã±ã¼ã¹ã«é¢ãã¦ã¯å½ã¦ã¯ã¾ããªã.
ã¾ãã½ã±ããããã®è¦æ±ã®watchã«é¢ãã¦ã
http://d.hatena.ne.jp/yamaz/20061106
ã§æ¸ããããã«selectã®ãããªãã¸ã¼ã«ã¼ãæ¹å¼ã§ã¯ãªã,
kqueueãepollãªã©ã®ã¤ãã³ãããªãã³æ¹å¼ã®å¦çãè¡ããã¨ã§
ååã«ã¹ã±ã¼ã«ã§ãã.
ã¨ããã§TCPã®ã³ãã¯ã·ã§ã³ã¨ã¯ãã£ããä½ã ããã?
å®æ
ã¨ãã¦ã¯TCB(Transmission Controll Block)ã¨å¼ã°ããæ§é ä½ã§,
FreeBSDã ã¨tcpcbã¨ããååã§/usr/include/netinet/tcp_var.hã«
å®ç¾©ããã¦ãã,1ã³ãã¯ã·ã§ã³ãã¨ã«çæããã«ã¼ãã«ã¡ã¢ãªå
ã«æ ¼ç´ããã.
ããã¯TCPã®ã³ãã¯ã·ã§ã³ã«é¢ãããã¼ã¿ãä¿åããã¦ãã,
TCBãã«ã¼ãã«ã«åå¨ãããã¨ããã£ã¦,TCPã®ä»®æ³ãã£ãã«ãå®ç¾ããã¦ãã.
誤解ãã®3 ã³ãã¯ã·ã§ã³ãå¢ããã¨ã½ã±ããã®æ°ãä¸è¶³ãã
ã½ã±ããã¯ç¢ºãã«ä¸è¶³ããã,ã«ã¼ãã«ãã©ã¡ã¼ã¿ã§å¢ãããã¨ãå¯è½ã .
ã¾ãã«ã¼ãã«ãã½ã±ãã1åãä¿æããã®ã«å¿
è¦ãªã¡ã¢ãªããããç¥ãã¦ã
ã®ã§åé¡ã«ã¯ãªããªã.
誤解ãã®4 ã³ãã¯ã·ã§ã³ãå¢ããã¨ãã¼ãã®æ°ãä¸è¶³ãã
ããã¯ããããããªãã®ã ã,ãããæã ååããèãã.æ°ãã
ãTCPãããã®Portç¨ã®ãã£ã¼ã«ãã¯16ãããã ãã65536
ã³ãã¯ã·ã§ã³ã¾ã§ããæ±ããªãã
ã¨ãããã¨ããã.ãããã«Portç¨ã®ãã£ã¼ã«ãé·ã¯å¤æ´ã§ããªãã®ã§,
ãã³ãã ã£ãã大å¤ã .ãããTCPã¯ã³ãã¯ã·ã§ã³ã
(ã¯ã©ã¤ã¢ã³ãå´IP,ã¯ã©ã¤ã¢ã³ãå´Port,ãµã¼ãå´IP,ãµã¼ãå´Port)
ã®çµã§ç®¡çãã¦ããã®ã§,åä¸IPãã65536ã®ã³ãã¯ã·ã§ã³ãå¼µãããªãéãåé¡ã¯èµ·ããªã.
NATè¶ãã®ã¢ã¯ã»ã¹ã§6ä¸5000ãã®ã³ãã¯ã·ã§ã³ãå¼µãããã±ã¼ã¹ã ã¨åé¡ã¯èµ·ããããç¥ããªãã,
ãããã«ãã¦ãã¯ã©ã¤ã¢ã³ãå´ã®åé¡ã§ãµã¼ãå´ã«ã¯é¢ä¿ãªã.
çµè«
ã¨ããããã§OSããããã³ã«ã®å¶éãC10Kã®ããã¯ã«ãªããã¨ã¯ãªã,
cometã®ãããªå°ããªå¦çã®1ä¸2ä¸ç¨åº¦ã®åæã³ãã¯ã·ã§ã³ãªãã°
æ£ãã対å¦ãè¡ããã¨ã«ãã£ã¦ä»ã®PCãã·ã³ã§ä½è£ã§å¯¾å¦ã§ãã.
ãã£ã¦å¼ãç¶ãããã¯ã«ãªãã®ã¯ãã·ã³ãã¯ã¼ã§ããã¨ããã®ãyamazçè¦è§£ã .
ãã¦ã¹ããã¼ãã¼ãã®æåãã¹ã¦ããµã¼ãå´ã«éãããæªæ¥ã¯ãã¾ã
æ³åããããªãã,ä»®ã«ãããªã£ãã¨ãã¦ããã³ãã¼ã«ã ã¾ããããã¨
ãªã,ããã¦ãé¨ãã対å¦ãã¦ãããã.
(ããã¾ã)
1/18追è¨
ã©ããåéããããæç« ã ã£ããããªã®ã§,フォローアップしました.ãããã¦èªãã§ããã ããã¨å¹¸ãã§ã.
ãããã¦èªã¿ãã
C10K problem
http://www.kegel.com/c10k.html
C10K problemã®å¤§æ¬ã«ãªã£ããã¼ã¸.ããã«æ¸ãã¦ãããã¨ããã£ã¡ãå®ãã°
C10Kãæããªã.
Technologies for UI by ma.la
http://blog.livedoor.jp/techblog/paper/ldtech2006/
æéã¤ã³ã¿ã¼ãã§ã¼ã¹ç ç©¶ä¼ malaããã«ããWebUIã«é¢ããçºè¡¨è³æ.
malaããã¯livedoor readerã®éçºè
ã§ãããã®ã§,å®ã«èª¬å¾åããã.
ãªãæ¬Blogã®ã¿ã¤ãã«ã§ãããæéé
ä¿¡ç 究ä¼ãã¯malaããã®100ï¼
ãã¯ãªãªã®ã§å¾ãããåºãããªãããã«æ°ãã¤ããã.
TCPã®ããã¿ã¨å®è£ âRFCã®è©³ç´°ããå®è£ ç³»ã®è§£æã¾ã§ (TCPIPåºç¤ã·ãªã¼ãº)
- ä½è : 奥山徹
- åºç社/ã¡ã¼ã«ã¼: CQåºç
- çºå£²æ¥: 2004/09
- ã¡ãã£ã¢: åè¡æ¬
- è³¼å ¥: 2人 ã¯ãªãã¯: 61å
- ãã®ååãå«ãããã° (11件) ãè¦ã
TCP/IPã®IPã«é¢ãã¦ã¯è©³ããæ¸ãã¦ãã£ã¦ã,TCPã«é¢ãã¦ã¯ããã¾ã詳ãã
æ¸ãã¦ãªãæ¬ãå¤ãä¸,話é¡ãTCPã®ã¿ã«çµã£ããã¤ã¹ãªä¸å.ãã¼ã¸æ°ã
200ãã¼ã¸ããããããªãã®ã§,TCP/IPã«é¢ããååãæ¬ã«ã¡ã²ã人ã«ããªã¹ã¹ã¡.
ãHTTPã£ã¦80portä¸ã¤ãããªãã®ã«ã©ããã¦è¤æ°ã¢ã¯ã»ã¹ãåãä»ããããã®?ã
ã¨ãããããªçåã«ãã°ãçãã¦ããã.
yamazçæ¥å¸¸
ãã¼ãçæ´»ã«çªå
¥ãã¦ããããã10ã¶æããã£ã¦ãã¾ã£ã.
ä»è¾¼ã¿ã大åçµãã£ãã®ã§,ããããæ¬æ ¼çã«æ´»åãå§ãããã¨æã.
ãã®Blogãèªãã§ãã¿ãªããã®æã«ä¼ºããã¨ã¯ååèããããã®ã§,
ãã®ã¨ãã«ã¯ãããããé¡ããã¾ã(_o_)