Habrã®èªè ã®èŠæã«ãã ãçŸåšã¯ãããã¯åœ¢åŒã®å®å šçã
ã¹ã±ãŒã©ãã«ãªWebã¢ãŒããã¯ãã£ãšåæ£ã·ã¹ãã
ã±ã€ãã»ãããã€ã©
ç¿»èš³ïŒ jedi-to-be ã
èšæ£ïŒ Anastasiaf15 ã sunshine_lass ã Amaliya ã fireball ã Goudron ã
ãªãŒãã³ãœãŒã¹ãœãããŠã§ã¢ã¯ãæ倧èŠæš¡ã®Webãµã€ãã®äž»èŠãªæ§æèŠçŽ ã«ãªããŸããã ãããã®Webãµã€ãã®æé·ã«äŒŽããã¢ãŒããã¯ãã£ã®ãã¹ããã©ã¯ãã£ã¹ãšã¬ã€ãã©ã€ã³ãç»å ŽããŸããã ãã®ç« ã§ã¯ã倧èŠæš¡ãªWebãµã€ããèšèšããéã«èæ ®ãã¹ãéèŠãªåé¡ã®ããã€ããšããããã®ç®æšãéæããããã«äœ¿çšãããåºæ¬çãªã³ã³ããŒãã³ãã®ããã€ããåãäžããŸãã
ãã®ç« ã§ã¯Webã·ã¹ãã ã®åæã«çŠç¹ãåœãŠãŠããŸãããäžéšã®è³æã¯ä»ã®åæ£ã·ã¹ãã ã«å€æ¿ããããšãã§ããŸãã
1.1åæ£Webã·ã¹ãã æ§ç¯ã®åå
ã¹ã±ãŒã©ãã«ãªWebãµã€ããŸãã¯ã¢ããªã±ãŒã·ã§ã³ã®äœæãšç®¡çãšã¯ã©ãããæå³ã§ããïŒ åå§çãªã¬ãã«ã§ã¯ãããã¯åã«ãŠãŒã¶ãŒãã€ã³ã¿ãŒãããçµç±ã§ãªã¢ãŒããªãœãŒã¹ã«æ¥ç¶ããããšã§ãã ãŸãããªãœãŒã¹ãŸãã¯ãããã®ãªãœãŒã¹ãžã®ã¢ã¯ã»ã¹ã¯ãå€ãã®ãµãŒããŒã«åæ£ãããŠãããWebãµã€ãã®ã¹ã±ãŒã©ããªãã£ãä¿èšŒãããªã³ã¯ã§ãã
人çã®ã»ãšãã©ã®ããšãšåæ§ã«ãäºåã«WebãµãŒãã¹ãèšç»ããã®ã«è²»ãããæéã¯ãå°æ¥çã«åœ¹ç«ã¡ãŸãã 倧èŠæš¡ãªWebãµã€ãã®èåŸã«ããèæ ®äºé ãšãã¬ãŒããªãã®äžéšãç解ãããšãå°èŠæš¡ãªWebãµã€ããäœæããéã«ãããè³¢æãªæ±ºå®ãäžãããšãã§ããŸãã 以äžã¯ã倧èŠæš¡ãªWebã·ã¹ãã ã®èšèšã«åœ±é¿ããããã€ãã®éèŠãªååã§ãã
- ã¢ã¯ã»ã·ããªãã£ïŒãŠã§ããµã€ãã®çšŒåæéã¯ãå€ãã®äŒæ¥ã®è©å€ãšæ©èœã«ãšã£ãŠéåžžã«éèŠã§ãã äžéšã®å€§èŠæš¡ãªãªã³ã©ã€ã³å°å£²åºã§ã¯ãæ°åéã§ãã¢ã¯ã»ã¹ã§ããªãå Žåãæ°åãŸãã¯æ°çŸäžãã«ã®åçã倱ãããå¯èœæ§ããããŸãã ãããã£ãŠãåžžã«ã¢ã¯ã»ã¹å¯èœã§ãã§ãŒã«ã»ãŒããªã·ã¹ãã ã®éçºã¯ãããžãã¹ãšæè¡ã®äž¡æ¹ã®åºæ¬çãªèŠä»¶ã§ãã åæ£ã·ã¹ãã ã®é«å¯çšæ§ã«ã¯ãäž»èŠã³ã³ããŒãã³ãã®åé·æ§ã®æ éãªæ€èšãéšåçãªã·ã¹ãã é害ããã®è¿ éãªå埩ãããã³åé¡ãçºçããå Žåã®æ©èœã®ã¹ã ãŒãºãªåæžãå¿ èŠã§ãã
- ããã©ãŒãã³ã¹ïŒ Webãµã€ãã®ããã©ãŒãã³ã¹ã¯ãã»ãšãã©ã®ãµã€ãã«ãšã£ãŠéèŠãªææšã«ãªã£ãŠããŸãã ãŠã§ããµã€ãã®é床ã¯ããŠãŒã¶ãŒã®ããã©ãŒãã³ã¹ãšãŠãŒã¶ãŒã®æºè¶³åºŠãæ€çŽ¢ãšã³ãžã³ã®ã©ã³ãã³ã°ã«åœ±é¿ããŸããããã¯ãèŠèŽè ç¶æçãšåçã«çŽæ¥åœ±é¿ããèŠå ã§ãã ãã®çµæãéèŠãªããšã¯ãé«éå¿çãšäœé 延ã«æé©åãããã·ã¹ãã ãäœæããããšã§ãã
- ä¿¡é Œæ§ïŒã·ã¹ãã ã¯ä¿¡é Œæ§ãé«ããããŒã¿ã«å¯Ÿããç¹å®ã®èŠæ±ãç¹å®ã®ããŒã¿ãåäžã«è¿ãå¿ èŠããããŸãã ããŒã¿ãå€æŽãŸãã¯æŽæ°ãããå Žåãåããªã¯ãšã¹ãã§æ°ããããŒã¿ãè¿ãããŸãã ãŠãŒã¶ãŒã¯ãäœããã·ã¹ãã ã«æžã蟌ãŸããŠããããã·ã¹ãã ã«ä¿åãããŠããããç¥ãå¿ èŠããããŸããããããã°ãåŸã§ããŒã¿ãååŸã§ããããã«ããã®å Žæã«ç¢ºå®ã«æ®ãããšãã§ããŸãã
- ã¹ã±ãŒã©ããªãã£ïŒå€§èŠæš¡ãªåæ£ã·ã¹ãã ã®å Žåããµã€ãºã¯ããªã¹ãããèæ ®ãã¹ã1ã€ã®é ç®ã«ãããŸããã åæ§ã«éèŠãªã®ã¯ã倧éã®è² è·ãåŠçããããã®ã¹ã«ãŒããããåäžãããåãçµã¿ã§ããããã¯éåžžãã·ã¹ãã ã®ã¹ã±ãŒã©ããªãã£ãšåŒã°ããŸãã ã¹ã±ãŒã©ããªãã£ã¯ãã·ã¹ãã ã®ããŸããŸãªãã©ã¡ãŒã¿ãŒã«é¢é£ããå¯èœæ§ããããŸããåŠçå¯èœãªè¿œå ãã©ãã£ãã¯ã®éãã¹ãã¬ãŒãžããã€ã¹ã®å®¹éã®å¢å ã®å®¹æãããŸãã¯ä»ã®ãã©ã³ã¶ã¯ã·ã§ã³ãããã«åŠçã§ããéã§ãã
- 管çæ§ïŒæäœããããã·ã¹ãã ãèšèšããããšãéèŠãªèŠçŽ ã§ãã ã·ã¹ãã ã®å¶åŸ¡å¯èœæ§ã¯ãæäœã®ãä¿å®ãããã³ãæŽæ°ãã®æ¡åŒµæ§ãšåçã§ããå¶åŸ¡å¯èœæ§ã確ä¿ããã«ã¯ã蚺æã®ç°¡çŽ åãšæ°ããªåé¡ã®ç解ãæŽæ°ãŸãã¯å€æŽã®å®¹æããããã³çšŒåäžã®ã·ã¹ãã ã®æ°ãŸããã®åé¡ãèæ ®ããå¿ èŠããããŸããäŸå€ïŒïŒ
- ã³ã¹ãïŒã³ã¹ãã¯éèŠãªèŠçŽ ã§ãã æããã«ããŒããŠã§ã¢ãšãœãããŠã§ã¢ã®ã³ã¹ããå«ãŸããå ŽåããããŸãããã·ã¹ãã ã®å±éãšä¿å®ã«å¿ èŠãªä»ã®åŽé¢ãèæ ®ããããšãéèŠã§ãã éçºè ãã·ã¹ãã ãæ§ç¯ããã®ã«å¿ èŠãªæéãã·ã¹ãã ãèµ·åããã®ã«å¿ èŠãªæäœã®åŽåãããã«ã¯ååãªã¬ãã«ã®ãã¬ãŒãã³ã°ãããã¹ãŠæäŸãããªããã°ãªããŸããã ã³ã¹ãã¯ç·ææã³ã¹ãã§ãã
ãããã®ååã¯ãããããåæ£åWebã¢ãŒããã¯ãã£ã®èšèšã«ãããææ決å®ã®åºç€ãšãªããŸãã ãã ããäžæ¹ã®ç®æšã®éæã¯ãä»æ¹ã®æ æ ¢ã«ãããã®ã§ããããããããã¯äºãã«å¯Ÿç«ããå¯èœæ§ããããŸãã ç°¡åãªäŸïŒããã©ãŒãã³ã¹ãœãªã¥ãŒã·ã§ã³ïŒã¹ã±ãŒã©ããªãã£ïŒãšããŠè€æ°ã®ãµãŒããŒãåçŽã«è¿œå ããããšãéžæãããšã管çã³ã¹ãïŒè¿œå ã®ãµãŒããŒãå®è¡ããå¿ èŠããããŸãïŒãå¢ããããµãŒããŒãè³Œå ¥ã§ããŸãã
ããããçš®é¡ã®Webã¢ããªã±ãŒã·ã§ã³ãéçºããå Žåããããžã§ã¯ãããããã®1ã€ä»¥äžãå¯ä»ã§ããããšã確èªããããšã§ãã£ãŠãããããã®éèŠãªååãèæ ®ããããšãéèŠã§ãã
1.2åºæ¬
ã·ã¹ãã ã®ã¢ãŒããã¯ãã£ãæ€èšããéã«ã¯ãããšãã°ãã©ã®ã³ã³ããŒãã³ãã䜿çšããããã©ã®ããã«çµã¿åãããããã©ã®ãããªãã¬ãŒããªããè¡ãããªã©ã察åŠããå¿ èŠãããããã€ãã®åé¡ããããŸãã ã¹ã±ãŒã©ããªãã£ãæããã«å¿ èŠãšããã«ã¹ã±ãŒã©ããªãã£ã«æè³ããããšã¯ãåççãªããžãã¹äžã®æ±ºå®ãšã¯èŠãªãããŸããã ãã ããèšç»ã®éã«äºåã«èæ ®ããŠãããšãå°æ¥å€ãã®æéãšãªãœãŒã¹ãç¯çŽã§ããŸãã
ãã®ã»ã¯ã·ã§ã³ã§ã¯ãã»ãšãã©ãã¹ãŠã®å€§èŠæš¡ãªWebã¢ããªã±ãŒã·ã§ã³ã«äžå¯æ¬ ãªããã€ãã®åºæ¬çãªèŠçŽ ã ãµãŒãã¹ ã
åé·æ§ ã ã»ã°ã¡ã³ããŒã·ã§ã³ ãããã³ãã§ãŒã«ãªãŒã㌠ã ãããã®åèŠå ã«ã¯ãç¹ã«åã®ã»ã¯ã·ã§ã³ã§èª¬æããååã®æèã«ãããŠãéžæãšåŠ¥åã䌎ããŸãã æ確ã«ããããã«ãäŸã瀺ããŸãã
äŸïŒç»åãã¹ãã£ã³ã°ã¢ããªã±ãŒã·ã§ã³
ãããããã§ã«ç»åããªã³ã©ã€ã³ã§æçš¿ããŠããã§ãããã è€æ°ã®ç»åã®ä¿åãšé ä¿¡ãæäŸãã倧èŠæš¡ãªãµã€ãã®å Žåãäœå¿çé 延ïŒè¿ éãªååŸïŒãç¹åŸŽãšããè²»çšå¯Ÿå¹æã®é«ãä¿¡é Œæ§ã®é«ãã¢ãŒããã¯ãã£ãäœæããéã«åé¡ããããŸãã
ãŠãŒã¶ãŒãäžå€®ãµãŒããŒã«ç»åãã¢ããããŒãããFlickrãPicasaã®ãããªãµã€ããŸãã¯APIãžã®ãªã³ã¯ãä»ããŠç»åãèŠæ±ã§ããã·ã¹ãã ãæ³åããŠãã ããã 説æãç°¡åã«ããããã«ããã®ã¢ããªã±ãŒã·ã§ã³ã«ã¯2ã€ã®äž»ãªã¿ã¹ã¯ããããšä»®å®ããŸãããµãŒããŒã«ç»åãã¢ããããŒãïŒæžã蟌ã¿ïŒããç»åãèŠæ±ããæ©èœã§ãã ãã¡ãããå¹æçãªããŠã³ããŒãã¯éèŠãªåºæºã§ãããåªå 床ã¯ãŠãŒã¶ãŒã®ãªã¯ãšã¹ãã«å¿ããŠè¿ éã«é ä¿¡ããããšã§ãïŒããšãã°ãWebããŒãžãŸãã¯ä»ã®ã¢ããªã±ãŒã·ã§ã³ã§è¡šç€ºããç»åããªã¯ãšã¹ãã§ããŸãïŒã ãã®æ©èœã¯ãã³ã³ãã³ãé ä¿¡ãããã¯ãŒã¯ïŒCDNïŒã®WebãµãŒããŒãŸãã¯ãšããžãµãŒããŒã«ãã£ãŠæäŸãããæ©èœã«äŒŒãŠããŸãã éåžžãCDNãµãŒããŒã¯å€ãã®å Žæã«ããŒã¿ãªããžã§ã¯ããæ ŒçŽãããããå°çç/ç©ççãªå ŽæããŠãŒã¶ãŒã«è¿ããªããããã©ãŒãã³ã¹ãåäžããŸãã
ã·ã¹ãã ã®ä»ã®éèŠãªåŽé¢ïŒ
- æ ŒçŽãããã€ã¡ãŒãžã®æ°ã¯ç¡å¶éã«ããããšãã§ãããããã¹ãã¬ãŒãžã®ã¹ã±ãŒã©ããªãã£ã¯ãã®èŠ³ç¹ããèæ
®ããå¿
èŠããããŸãã
- ç»åã®ããŠã³ããŒã/ãªã¯ãšã¹ãã®åŸ
ã¡æéã¯çãããå¿
èŠããããŸãã
- ãŠãŒã¶ãŒããµãŒããŒã«ç»åãã¢ããããŒãããå ŽåããŠãŒã¶ãŒã®ããŒã¿ã¯åžžã«äžè²«æ§ãšã¢ã¯ã»ã¹å¯èœæ§ãç¶æããå¿
èŠããããŸãã
- ã·ã¹ãã ã¯ä¿å®ã容æã§ãªããã°ãªããŸããïŒç®¡çæ§ïŒã
- ç»åãã¹ãã£ã³ã°ã¯ããŸãå©çããããããªããããã·ã¹ãã ã¯è²»çšå¯Ÿå¹æãé«ãã¯ãã§ãã
å³1.1ã¯ãæ©èœã®ç°¡ç¥å³ã§ãã
å³1.1ïŒç»åãã¹ãã£ã³ã°ã¢ããªã±ãŒã·ã§ã³ã®ç°¡ç¥åãããã¢ãŒããã¯ãã£å³
ãã®ç»åãã¹ãã£ã³ã°ã®äŸã§ã¯ãã·ã¹ãã ã¯éåžžã«é«éã§ããããã®ããŒã¿ã¯å®å šã«ä¿åããããããã®å±æ§ã¯ãã¹ãŠã¹ã±ãŒã©ãã«ã§ãã ãã®ã¢ããªã±ãŒã·ã§ã³ã®å°ããªããŒãžã§ã³ãäœæããããšã¯æšæºçãªã¿ã¹ã¯ã§ãããåäžã®ãµãŒããŒã§ãã¹ãã§ããŸãã ãã ãããã®ãããªç¶æ³ã¯ãã®ç« ã§ã¯éèŠã§ã¯ãããŸããã Flickrãšåãããã倧ããªãã®ãäœæããå¿ èŠããããšããŸãããã
ãµãŒãã¹
ã¹ã±ãŒã©ãã«ãªã·ã¹ãã ã®èšèšãæ€èšããå Žåãæ©èœãåé¢ããã·ã¹ãã ã®åéšåãæ確ã«å®çŸ©ãããã€ã³ã¿ãŒãã§ã€ã¹ãæã€åå¥ã®ãµãŒãã¹ãšèãããšäŸ¿å©ã§ãã å®éã«ã¯ããã®æ¹æ³ã§èšèšãããã·ã¹ãã ã«ã¯ãµãŒãã¹æåã¢ãŒããã¯ãã£ïŒSOAïŒããããšèããããŠããŸãã ãããã®ã¿ã€ãã®ã·ã¹ãã ã®å ŽåãåãµãŒãã¹ã«ã¯ç¬èªã®æ©èœã³ã³ããã¹ããããããã®ã³ã³ããã¹ãå€ã®äœããšã®çžäºäœçšã¯ãéåžžã¯å¥ã®ãµãŒãã¹ã®ãããªãã¯APIã§ããæœè±¡ã€ã³ã¿ãŒãã§ãŒã¹ãä»ããŠè¡ãããŸãã
ã·ã¹ãã ãããã€ãã®è£å®çãªãµãŒãã¹ã«å解ãããšãäžéšã®éšåã®åäœãä»ã®éšåããåé¢ãããŸãã ãã®æœè±¡åã«ããããµãŒãã¹ããã®åºç€ãšãªãç°å¢ãããã³ãµãŒãã¹ã³ã³ã·ã¥ãŒããŒéã®æ確ãªé¢ä¿ã確ç«ã§ããŸãã æ確ãªã¢ãŠãã©ã€ã³ãäœæãããšãåé¡ã®å Žæãç¹å®ããã®ã«åœ¹ç«ã¡ãŸãããåããŒããåå¥ã«ã¹ã±ãŒãªã³ã°ããããšãã§ããŸãã åºç¯å²ã®èŠæ±ã«å¯Ÿå¿ããããã®ãã®ã¿ã€ãã®ãµãŒãã¹æåã·ã¹ãã ã®èšèšã¯ãããã°ã©ãã³ã°ã«ããããªããžã§ã¯ãæåã¢ãããŒãã«äŒŒãŠããŸãã
ãã®äŸã§ã¯ããã¹ãŠã®ããŠã³ããŒãããã³ç»åååŸãªã¯ãšã¹ãã¯åããµãŒããŒã§åŠçãããŸãã ãã ããã·ã¹ãã ã¯æ¡åŒµããå¿ èŠããããããããã2ã€ã®æ©èœãç¬èªã®ãµãŒãã¹ã«åé¢ããããšããå§ãããŸãã
ãã®ãµãŒãã¹ã¯å°æ¥é »ç¹ã«äœ¿çšããããšä»®å®ããŸãã ãã®ã·ããªãªã¯ã2ã€ã®æ©èœãå
±æãªãœãŒã¹ã奪ãåããããé²ç»ãç»åã®èªã¿åãã«ãããæéã«ã©ã®çšåºŠåœ±é¿ãããã远跡ããã®ã«åœ¹ç«ã¡ãŸãã ã¢ãŒããã¯ãã£ã«ãã£ãŠã¯ããã®å¹æã¯å€§ãããªãå ŽåããããŸãã éåä¿¡é床ãåãã§ãã£ãŠãïŒå°ãªããšã3ïŒ1ã®åä¿¡/åºåé床æ¯ãæã€ããã«èšèšãããŠãããããã»ãšãã©ã®IPãããã¯ãŒã¯ã§ã¯äžè¬çã§ã¯ãããŸããïŒãèªã¿åããã¡ã€ã«ã¯éåžžãã£ãã·ã¥ããæœåºãããã¬ã³ãŒãã¯æçµçã«ã¯ãã£ã¹ã¯ã«ã¢ã¯ã»ã¹ããŸãïŒåæ§ã®ç¶æ³ã§è€æ°åæžãæããããå¯èœæ§ããããŸãïŒã ãã¹ãŠã®ããŒã¿ãã¡ã¢ãªå
ã«ããå ŽåããŸãã¯ãã£ã¹ã¯ïŒSSDãœãªããã¹ããŒããã©ã€ããªã©ïŒããèªã¿åãããå Žåã§ããããŒã¿ããŒã¹ãžã®æžã蟌ã¿ã¯ã»ãšãã©ã®å ŽåããŒã¿ããŒã¹ããã®èªã¿åããããé
ããªããŸãã ïŒPole Positionããã³ãããŒã¯ããŒã¿ããŒã¹çšã®ãªãŒãã³ãœãŒã¹ããŒã«ã httpïŒ//polepos.org/ããã³http://polepos.sourceforge.net/results/PolePositionClientServer.pdfã®çµæãïŒã
ãã®èšèšã®ãã1ã€ã®æœåšçãªåé¡ã¯ãApacheãlighttpdãªã©ã®WebãµãŒããŒã§ã¯ãéåžžãåŠçã§ããåææ¥ç¶ã®æ°ã«äžéãããããšã§ãïŒããã©ã«ãå€ã¯çŽ500ã§ããããã以äžã®å ŽåããããŸãïŒãã©ãã£ãã¯ãå€ãå Žåãã¬ã³ãŒãã¯ãã®å¶éãããã«äœ¿ãæããå¯èœæ§ããããŸãã èªã¿åãã¯éåæã§ããããgzipå§çž®ãããã転éãªã©ã®ä»ã®ããã©ãŒãã³ã¹æé©åãå©çšã§ãããããWebãµãŒããŒã¯ãã£ãŒãã®èªã¿åããããéãåãæ¿ããŠã¯ã©ã€ã¢ã³ããåãæ¿ããããšãã§ããæ倧æ¥ç¶æ°ïŒApacheã䜿çšïŒæ¥ç¶ã®æ倧æ°ã500ã«èšå®ãããšã1ç§ãããæ°åã®èªã¿åãèŠæ±ãåŠçããããšãã§ããŸãïŒã äžæ¹ãã¬ã³ãŒãã¯ãããŠã³ããŒãæéäžã¯éããæ¥ç¶ãç¶æããåŸåããããŸãã ãã®ãããã»ãšãã©ã®ããŒã ãããã¯ãŒã¯ã§ã¯ã1 MBã®ãã¡ã€ã«ããµãŒããŒã«è»¢éããã®ã«1ç§ä»¥äžãããå¯èœæ§ããããŸãããã®çµæãWebãµãŒããŒã¯500件ã®ãã®ãããªåæã¬ã³ãŒãããåŠçã§ããŸããã
å³1.2ïŒèªã¿åããšæžã蟌ã¿ã®åé¢
ãã®ãããªæœåšçãªåé¡ãäºæž¬ããããšã¯ã å³1.2ã«ç€ºãããã«ãç»åã®èªã¿åããšæžã蟌ã¿ãç¬ç«ãããµãŒãã¹ã«åé¢ããå¿ èŠãããããšã瀺ããŠããŸã ã ããã«ãããåã¬ã³ãŒããåå¥ã«ã¹ã±ãŒãªã³ã°ã§ããã ãã§ãªãïŒåžžã«ã¬ã³ãŒããããå€ãã®èªã¿åããè¡ãå¯èœæ§ãé«ãããïŒãåãµãŒãã¹ã§äœãèµ·ãã£ãŠããããèªèã§ããããã«ãªããŸãã æåŸã«ãããã«ãããå°æ¥çºçããå¯èœæ§ã®ããåé¡ãåºå¥ãããèªã¿åãã¢ã¯ã»ã¹ãé ãåé¡ã®èšºæãšè©äŸ¡ãç°¡çŽ åãããŸãã
ãã®ã¢ãããŒãã®å©ç¹ã¯ãäºãã«ç¬ç«ããŠåé¡ã解決ã§ããããšã§ãããã®å Žåã1ã€ã®ã³ã³ããã¹ãã§æ°ããç»åãèšé²ããã³åä¿¡ããå¿ èŠã«ã€ããŠèããå¿ èŠã¯ãããŸããã ãããã®ãµãŒãã¹ã¯ã©ã¡ããåŒãç¶ãã°ããŒãã«ã€ã¡ãŒãžã³ãŒãã¹ã䜿çšããŸãããç¹å®ã®ãµãŒãã¹ã«é©ããã¡ãœããã䜿çšããå Žåãç¬èªã®ããã©ãŒãã³ã¹ãæé©åã§ããŸãïŒããšãã°ããªã¯ãšã¹ãããã¥ãŒã«å ¥ãããã人æ°ã®ããã€ã¡ãŒãžããã£ãã·ã¥ãããããããšã§-詳现ã¯åŸè¿°ïŒ ãµãŒãã¹ãšã³ã¹ãã®äž¡æ¹ã®èŠ³ç¹ãããå¿ èŠã«å¿ããŠåãµãŒãã¹ãåå¥ã«ã¹ã±ãŒãªã³ã°ã§ããŸãã äžèšã®ã·ããªãªã®ããã«ããããã®çµã¿åãããšæ··åãããã©ãŒãã³ã¹ã«äžæ³šæã«åœ±é¿ãäžããå¯èœæ§ããããããããã¯ãã©ã¹ã®èŠå ã§ãã
ãã¡ããã2ã€ã®ç°ãªããšã³ããã€ã³ããããå Žåãäžèšã®ã¢ãã«ã®äœæ¥ã¯æé©ã§ãïŒå®éãããã¯ã¯ã©ãŠãã¹ãã¬ãŒãžãããã€ããŒãšã³ã³ãã³ãé ä¿¡ãããã¯ãŒã¯ã®ããã€ãã®å®è£ ã«éåžžã«äŒŒãŠããŸãïŒã ãã®ãããªåé¡ã解決ããã«ã¯å€ãã®æ¹æ³ããããããããã®ã±ãŒã¹ã§åŠ¥åç¹ãèŠã€ããããšãã§ããŸãã
ããšãã°ãFlickrã¯ç°ãªãã¢ãžã¥ãŒã«éã§ãŠãŒã¶ãŒãåæ£ããããšã§ãã®èªã¿åã/æžã蟌ã¿ã®åé¡ã解決ããŸããããã«ãããåã¢ãžã¥ãŒã«ã¯éãããæ°ã®ç¹å®ã®ãŠãŒã¶ãŒã®ã¿ã«ãµãŒãã¹ãæäŸã§ãããŠãŒã¶ãŒæ°ãå¢å ãããšãããå€ãã®ã¢ãžã¥ãŒã«ãã¯ã©ã¹ã¿ãŒã«è¿œå ãããŸã
http://mysqldba.blogspot.com/2008/04/mysql-uc-2007-presentation-file.html ïŒã æåã®äŸã§ã¯ãå®éã®è² è·ïŒã·ã¹ãã å
šäœã®èªã¿åããšæžã蟌ã¿ã®æ°ïŒã«åºã¥ããŠããŒããŠã§ã¢ãã¹ã±ãŒãªã³ã°ããã®ãç°¡åã§ãããFlickrã®ã¹ã±ãŒãªã³ã°ã¯ãŠãŒã¶ãŒããŒã¹ã«åºã¥ããŠããŸãïŒãã ããããã§ã¯ç°ãªããŠãŒã¶ãŒéã§åäžã«äœ¿çšãããšããä»®å®ã䜿çšãããããã容éãèšç»ããå¿
èŠããããŸãåšåº«ïŒã éå»ã«ã¯ãã¢ã¯ã»ã¹äžèœãŸãã¯ãµãŒãã¹ã®1ã€ã«åé¡ããããšã·ã¹ãã å
šäœã®æ©èœãç¡å¹ã«ãªãïŒããšãã°ã誰ããã¡ã€ã«ãæžã蟌ããªãïŒãFlickrã¢ãžã¥ãŒã«ã®1ã€ã«ã¢ã¯ã»ã¹ã§ããªããšãããã«é¢é£ãããŠãŒã¶ãŒã®ã¿ã圱é¿ãåããŸãã æåã®äŸã§ã¯ãFlickrã¢ãŒããã¯ãã£ã§ã¯åã¢ãžã¥ãŒã«ãæŽæ°ãŸãã¯æ€çŽ¢ããå¿
èŠããããŸãïŒãŸãã¯ãæ€çŽ¢ãµãŒãã¹ãæŽæ°ããå¿
èŠããããŸãããæ°ããã¡ã¿ããŒã¿ãå«ããããã«èšé²ãµãŒãã¹ãæŽæ°ãããç»åã®ãã¹ãŠã®ã¡ã¿ããŒã¿ãæ€çŽ¢ãããªã©ãããŒã¿ã»ããå
šäœã«å¯ŸããŠæäœãå®è¡ããæ¹ãç°¡åã§ãå®éã«ãããç®çãšããã¡ã¿ããŒã¿ããœãŒãããããã«äœæãããŸãïŒã
ãããã®ã·ã¹ãã ã«é¢ããŠã¯ãäžèœè¬ã¯ãããŸãããããã®ç« ã®åé ã§èª¬æããååããåžžã«é²ããå¿ èŠããããŸãïŒã·ã¹ãã ã®ããŒãºã決å®ããŸãïŒãèªã¿åãããŸãã¯ãæžã蟌ã¿ãã®ããŒãæäœãŸãã¯ãã¹ãŠãäžåºŠã«ã䞊ååŠçã®ã¬ãã«ãããŒã¿ã»ããã®ã¯ãšãªãç¯å²ããœãŒããªã©ïŒãããŸããŸãªéžæè¢ã®æ¯èŒãã³ãããŒã¯ãã¹ããå®æœããæœåšçãªã·ã¹ãã é害ã®ç¶æ ãç解ããé害ãçºçããå Žåã®å æ¬çãªèšç»ãäœæããŸãã
åé·æ§
é害ã«ãšã¬ã¬ã³ãã«å¯ŸåŠããã«ã¯ãWebã¢ãŒããã¯ãã£ã®ãµãŒãã¹ãšããŒã¿ã«åé·æ§ãå¿ èŠã§ãã ããšãã°ãåäžã®ãµãŒããŒã«ãã¡ã€ã«ã®ã³ããŒã1ã€ããä¿åãããŠããªãå Žåããã®ãµãŒããŒã®æ倱ã¯ãã¡ã€ã«ã®æ倱ãæå³ããŸãã ãã®ç¶æ³ãæ確ã«ç¹åŸŽã¥ããããå¯èœæ§ã¯äœããéåžžãè€æ°ã®ã³ããŒãŸãã¯ããã¯ã¢ããã³ããŒãäœæããããšã§åé¿ã§ããŸãã
ãããšåãååããµãŒãã¹ã«ãåœãŠã¯ãŸããŸãã è€æ°ã®ã³ããŒãŸãã¯ããŒãžã§ã³ã®åææäœãä¿èšŒããã¢ããªã±ãŒã·ã§ã³ã®æ©èœã®äžå¯æ¬ ãªéšåãæäŸããå ŽåãåäžããŒãã®é害ãã身ãå®ãããšãã§ããŸãã
ã·ã¹ãã ã«åé·æ§ãäœæãããšãè匱æ§ãåãé€ããç·æ¥æã«ããã¯ã¢ãããŸãã¯åé·æ©èœãæäŸã§ããŸãã ããšãã°ãæ¬çªç°å¢ã§åããµãŒãã¹ã®ã³ããŒã2ã€ããããã®ãã¡ã®1ã€ãå®å
šã«ãŸãã¯éšåçã«å€±æããå Žåãã·ã¹ãã ã¯äœæ¥ã³ããŒã«åãæ¿ããããšã§å€±æãå
æã§ããŸã ã
åãæ¿ãã¯èªåçã«è¡ãããããæåã®ä»å
¥ãå¿
èŠã«ãªãå ŽåããããŸãã
ã
ãµãŒãã¹ã®åé·æ§ã®ãã1ã€ã®éèŠãªåœ¹å²ã¯ããªãœãŒã¹å ±æã䌎ããªãã¢ãŒããã¯ãã£ã®äœæã§ãã ãã®ã¢ãŒããã¯ãã£ã«ãããåããŒãã¯ç¬ç«ããŠåäœããããšãã§ããããã«ãä»ã®ããŒãã®ç¶æ ãŸãã¯èª¿æŽã¢ã¯ã·ã§ã³ãå¶åŸ¡ããäžå€®ã®ãé è³ãããªããŠãåäœã§ããŸãã æ°ããããŒãã®è¿œå ã¯ç¹å¥ãªæ¡ä»¶ãç¥èãå¿ èŠãšããªããããã¹ã±ãŒã©ããªãã£ã«è²¢ç®ããŸãã ãããŠãæãéèŠãªããšã¯ããããã®ã·ã¹ãã ã«ã¯èŽåœçãªè匱ç¹ããªããé害ã«å¯Ÿããå埩åãã¯ããã«é«ãããšã§ãã
ã
ããšãã°ãç»åãµãŒããŒã¢ããªã±ãŒã·ã§ã³ã§ã¯ããã¹ãŠã®ç»åã«å¥ã®ããŒããŠã§ã¢ã®ã©ããã«åé·ã³ããŒãããïŒçæ³çã«ã¯ãããŒã¿ã»ã³ã¿ãŒã§ã®å°éãç«çœãªã©ã®çœå®³æã«å°ççã«ç°ãªãå Žæã«ãããŸãïŒãç»åã¢ã¯ã»ã¹ãµãŒãã¹ãããã¯ãã¹ãŠæœåšçã«ãªã¯ãšã¹ããåŠçããŸãããåé·ã«ãªããŸãã ïŒ å³1.3ãåç
§ããŠãã ãããïŒ
å°æ¥çã«ã¯ãããŒããã©ã³ãµãŒã¯ãããå¯èœã«ããåªããæ¹æ³ã§ããã以äžã§ããã«è©³ãã説æããŸãã
å³1.3ïŒåé·ã€ã¡ãŒãžãã¹ãã£ã³ã°ã¢ããªã±ãŒã·ã§ã³
ã»ã°ã¡ã³ããŒã·ã§ã³
ããŒã¿ã»ããã¯éåžžã«å€§ãããããåäžã®ãµãŒããŒã§ãã¹ãããããšã¯ã§ããŸããã ãŸããã³ã³ãã¥ãŒãã£ã³ã°æäœã«å¿ èŠãªã³ã³ãã¥ãŒã¿ãŒãªãœãŒã¹ãå€ãããŠãããã©ãŒãã³ã¹ãäœäžããé»åã®å¢å ãå¿ èŠã«ãªãå ŽåããããŸãã ãããã®å Žåã§ãã2ã€ã®ãªãã·ã§ã³ããããŸãïŒåçŽãŸãã¯æ°Žå¹³ã¹ã±ãŒãªã³ã°ã
ã¹ã±ãŒã«ã¢ããã«ã¯ãåäžã®ãµãŒããŒã«ãªãœãŒã¹ãè¿œå ããããšãå«ãŸããŸãã ãããã£ãŠãéåžžã«å€§ããªããŒã¿ã»ããã®å Žåãããã¯ããå€ãã®ïŒãŸãã¯ããå€ãã®ïŒããŒããã£ã¹ã¯ãè¿œå ããããšãæå³ãããããããŒã¿ã»ããå šäœãåäžã®ãµãŒããŒã§ãã¹ãã§ããŸãã èšç®æäœã®å Žåãããã¯ãããé«éãªCPUãŸãã¯ããå€ãã®ã¡ã¢ãªãåãããã倧ããªãµãŒããŒã«èšç®ã移åããããšãæå³ããŸãã ãããã«ããŠããè¿œå ã®ããŒã¿åŠçãå¯èœãªã³ã³ãã¥ãŒãã£ã³ã°ã·ã¹ãã ã®åå¥ã®ãªãœãŒã¹ãäœæããããã«ãåçŽã¹ã±ãŒãªã³ã°ãå®è¡ãããŸãã
äžæ¹ãæ°Žå¹³ã¹ã±ãŒãªã³ã°ã«ã¯ãããŒãã®è¿œå ãå«ãŸããŸãã 倧èŠæš¡ãªããŒã¿ã»ããã®å Žåãããã¯åèšããŒã¿éã®äžéšãæ ŒçŽããããã«2çªç®ã®ãµãŒããŒãè¿œå ããããšãæå³ããã³ã³ãã¥ãŒãã£ã³ã°ãªãœãŒã¹ã®å Žåãããã¯ããã€ãã®è¿œå ããŒããéããŠäœæ¥ãŸãã¯è² è·ãå ±æããããšãæå³ããŸãã æ°Žå¹³ã¹ã±ãŒãªã³ã°ã®å¯èœæ§ãæ倧éã«æŽ»çšããã«ã¯ãã·ã¹ãã ã¢ãŒããã¯ãã£éçºã®å éšååãšããŠå®è£ ããå¿ èŠããããŸãã ããã§ãªãå Žåãæ°Žå¹³ã¹ã±ãŒãªã³ã°ã«å¿ èŠãªã³ã³ããã¹ãã®å€æŽãšåŒ·èª¿è¡šç€ºã«åé¡ãçããå¯èœæ§ããããŸãã
æ°Žå¹³ã¹ã±ãŒãªã³ã°ã®æãäžè¬çãªæ¹æ³ã¯ããµãŒãã¹ãã»ã°ã¡ã³ããŸãã¯ã¢ãžã¥ãŒã«ã«åé¢ããããšã§ãã æ©èœã®åè«çã»ãããåå¥ã«æ©èœãããããªæ¹æ³ã§é åžã§ããŸãã ããã¯ãå°ççãªå¢çããŸãã¯ææãŠãŒã¶ãŒãšç¡æãŠãŒã¶ãŒãªã©ã®ä»ã®åºæºã«åŸã£ãŠè¡ãããšãã§ããŸãã ãããã®ã¹ããŒã ã®å©ç¹ã¯ãæ©èœã匷åããããµãŒãã¹ãŸãã¯ããŒã¿ãŠã§ã¢ããŠã¹ãæäŸããããšã§ãã
ãã®äŸã®ã€ã¡ãŒãžãµãŒããŒã§ã¯ãã€ã¡ãŒãžã®ä¿åã«äœ¿çšãããå¯äžã®ãã¡ã€ã«ãµãŒããŒãå€ãã®ãã¡ã€ã«ãµãŒããŒã«çœ®ãæããããšãã§ããåãã¡ã€ã«ãµãŒããŒã«ã¯ç¬èªã®ã€ã¡ãŒãžã»ãããå«ãŸããŸãã ïŒ å³1.4ãåç §ããŠãã ãããïŒãã®ã¢ãŒããã¯ãã£ã«ãããã·ã¹ãã ã¯åãã¡ã€ã«ãµãŒããŒãã€ã¡ãŒãžã§æºããããã£ã¹ã¯ã¹ããŒã¹ããã£ã±ãã«ãªããšãµãŒããŒãè¿œå ã§ããŸãã ãã¶ã€ã³ã«ã¯ãã€ã¡ãŒãžãã¡ã€ã«åãšãããå«ããµãŒããŒãé¢é£ä»ããåœåã¹ããŒã ãå¿ èŠã§ãã ã€ã¡ãŒãžåã¯ããµãŒããŒã«é¢é£ä»ããããäžè²«ããããã·ã¥ã¹ããŒã ããäœæã§ããŸãã ãŸãã¯ãåç»åã«å¢åèå¥åãä»ããããšãã§ããŸããããã«ãããé ä¿¡ãµãŒãã¹ã¯ãç»åãèŠæ±ãããšãã«åãµãŒããŒã«é¢é£ä»ããããèå¥åã®ç¯å²ã®ã¿ãïŒã€ã³ããã¯ã¹ãšããŠïŒåŠçã§ããŸãã
å³1.4ïŒåé·æ§ãšã»ã°ã¡ã³ããŒã·ã§ã³ãåããã€ã¡ãŒãžãã¹ãã£ã³ã°ã¢ããªã±ãŒã·ã§ã³
ãã¡ãããããŒã¿ãæ©èœãè€æ°ã®ãµãŒããŒã«é åžããã®ã¯å°é£ã§ãã éèŠãªåé¡ã®1ã€ã¯ããŒã¿ã®å Žæã§ãã åæ£ã·ã¹ãã ã§ã¯ãããŒã¿ãæäœã®å ŽæãŸãã¯èšç®ã®ãã€ã³ãã«è¿ãã»ã©ãã·ã¹ãã ã®ããã©ãŒãã³ã¹ãåäžããŸãã ãããã£ãŠãããŒã¿ãè€æ°ã®ãµãŒããŒã«é åžããããšã«ã¯åé¡ãçºçããå¯èœæ§ããããŸãããã®ããŒã¿ãå¿ èŠã«ãªãå Žåã¯ãã€ã§ããããŒã¿ãéèŠã®å Žæã«ãªãå¯èœæ§ãããããããµãŒããŒã¯ãããã¯ãŒã¯äžã§å¿ èŠãªæ å ±ã®é«äŸ¡ãªãµã³ããªã³ã°ãå®è¡ããå¿ èŠãããããã§ãã
å¥ã®æœåšçãªåé¡ããã©ãŒã ã§çºçããŸã
äžæŽåïŒäžæŽåïŒããŸããŸãªãµãŒãã¹ãå
±æãªãœãŒã¹ãæœåšçã«å¥ã®ãµãŒãã¹ãŸãã¯ããŒã¿ã¹ãã¢ã«å¯ŸããŠèªã¿åãããã³æžã蟌ã¿ãè¡ããšãã競åãç¶æ
ã®å¯èœæ§ããããŸãã -ãã®å ŽåãããŒã¿ã«ã¯äžè²«æ§ããããŸããã ããšãã°ãç»åãã¹ãã£ã³ã°ã¹ã¯ãªããã§ã¯ãäžæ¹ã®ã¯ã©ã€ã¢ã³ããç¬ã®ç»åãæŽæ°ããèŠæ±ãéä¿¡ãããç¬ãã®èŠåºãããã®ãºã¢ãã«å€æŽããŠãä»ã®ã¯ã©ã€ã¢ã³ããç»åãèªãã§ããå Žåã«ç«¶åç¶æ
ãçºçããå¯èœæ§ããããŸãã ãã®ãããªç¶æ³ã§ã¯ããDogããšãGizmoãã®ã©ã¡ãã®èŠåºãã2çªç®ã®ã¯ã©ã€ã¢ã³ãã«ãã£ãŠåä¿¡ããããã¯æ確ã§ã¯ãããŸããã
ã
ãã¡ãããããŒã¿ã®ã»ã°ã¡ã³ããŒã·ã§ã³ã«é¢é£ããããã€ãã®é害ããããŸãããã»ã°ã¡ã³ããŒã·ã§ã³ã䜿çšãããšãããŒã¿ãããŒãã䜿çšãã¿ãŒã³ãªã©ã«å¿ããŠãååé¡ãä»ã®åé¡ãšåºå¥ã§ããŸãã ãããŒãžããããã¯ã«ã ã¹ã±ãŒã©ããªãã£ãšç®¡çæ§ã®åäžã«åœ¹ç«ã¡ãŸããããªã¹ã¯ã¯ãŸã æ®ã£ãŠããŸãã ãªã¹ã¯ã軜æžããé害ãåŠçããã«ã¯å€ãã®æ¹æ³ããããŸãã ãã ããç°¡æœã«ããããããã®ç« ã§ã¯èª¬æããŸããããã®ãããã¯ã«é¢ãã詳现æ å ±ãå¿ èŠãªå Žåã¯ããã©ãŒã«ããã¬ã©ã³ã¹ãšç£èŠã«é¢ããããã°æçš¿ãã芧ãã ããã
1.3ã é«éã§ã¹ã±ãŒã©ãã«ãªããŒã¿ã¢ã¯ã»ã¹ã®æ§é ã³ã³ããŒãã³ã
åæ£ã·ã¹ãã ã®éçºã«ãããããã€ãã®åºæ¬ååãæ€èšããã®ã§ãä»åºŠã¯ããå°é£ãªãã€ã³ãã§ããããŒã¿ã¢ã¯ã»ã¹ã®ã¹ã±ãŒãªã³ã°ã«ç§»ããŸãããã
LAMPã¹ã¿ãã¯ã¢ããªã±ãŒã·ã§ã³ãªã©ã®æãåçŽãªWebã¢ããªã±ãŒã·ã§ã³ã¯ãå³1.5ã®ç»åã«äŒŒãŠããŸãã
å³1.5ïŒåçŽãªWebã¢ããªã±ãŒã·ã§ã³
: . - , . . ; .
.
å³1.6ïŒç°¡ç¥åãããWebã¢ããªã±ãŒã·ã§ã³
ã»ãšãã©ã®ã·ã¹ãã ã¯ãå
ã®åè·¯ã«ç°¡ç¥åããããšãã§ããå³1.6ã
ã¬ãã¥ãŒã®ããã®è¯ãåºçºç¹ã§ãã倧éã®ããŒã¿ãããå Žåã¯ãããŒãã«ã®äžéšã®åŒãåºãã«ãããã£ã³ãã£ãŒä»ãã®ããã¯ã¹ãšåããããç°¡åã«ã¢ã¯ã»ã¹ã§ããããã«ããããšãã§ããŸãããã®æ¯èŒã¯éåžžã«åçŽåãããŠããŸãããããŒã¿ãŠã§ã¢ããŠã¹ã®ã¹ã±ãŒã©ããªãã£ãšããŒã¿ãžã®è¿
éãªã¢ã¯ã»ã¹ãšãã2ã€ã®è€éãªåé¡ãææããŠããŸãã
ãã®ã»ã¯ã·ã§ã³ã確èªããããã«ãå€ãã®ãã©ãã€ãïŒTBïŒã®ããŒã¿ãããããŠãŒã¶ãŒããã®ããŒã¿ã®å°ããªéšåã«ã©ã³ãã ãªé åºã§ã¢ã¯ã»ã¹ã§ããããã«ãããšä»®å®ããŸããïŒå³1.7ãåç
§ãïŒ
åæ§ã®ã¿ã¹ã¯ã¯ãç»åãã¹ãã£ã³ã°ã¢ããªã±ãŒã·ã§ã³ã®äŸã§ããã¡ã€ã«ãµãŒããŒäžã®ã©ããã«ç»åãã¡ã€ã«ãé
眮ããããšã§ãã
å³1.7ïŒç¹å®ã®ããŒã¿ãžã®ã¢ã¯ã»ã¹
, -. â , , , . ; 6 , , 100,000 â (. « », http://queue.acm.org/detail.cfm?id=1563874). ïŒ , , , .
, , â , , . , , .
: . : , , -, - . : , , , , . , , , .
ãµã³ãã«APIã®äžéšãšããŠããã£ãã·ã¥ã䜿çšããŠããŒã¿ãžã®ã¢ã¯ã»ã¹ãé«éåããã«ã¯ã©ãããã°ããã§ããïŒãã®å Žåããã£ãã·ã¥ããã¹ãããã®ã«é©ããå Žæãããã€ããããŸããå¯èœãªé
眮ãªãã·ã§ã³ã®1ã€ãšããŠã
å³1.8ã«ç€ºãããã«ããªã¯ãšã¹ãã¬ãã«ã§ããŒããéžæã§ããŸãã
å³1.8ïŒèŠæ±ã¬ãã«ã®ãã¹ãã§ãã£ãã·ã¥ããã¹ããã
èŠæ±ã¬ãã«ã®ããŒãã«ãã£ãã·ã¥ãçŽæ¥é 眮ãããšãå¿çããŒã¿ã®ããŒã«ã«ã¹ãã¬ãŒãžãå¯èœã«ãªããŸãããµãŒãã¹ãªã¯ãšã¹ããå®è¡ããããã³ã«ãããŒãã¯ããŒã«ã«ã®ãã£ãã·ã¥ãããããŒã¿ãããã°ããã«è¿ããŸãããã£ãã·ã¥ã«ãªãå ŽåãèŠæ±ããŒãã¯ãã£ã¹ã¯ããããŒã¿ãèŠæ±ããŸããèŠæ±ã¬ãã«ã®1ã€ã®ããŒãã®ãã£ãã·ã¥ã¯ãã¡ã¢ãªïŒéåžžã«é«éïŒãšããŒãã®ããŒã«ã«ãã£ã¹ã¯ïŒãããã¯ãŒã¯ã¹ãã¬ãŒãžãžã®ã¢ã¯ã»ã¹ãããé«éïŒã®äž¡æ¹ã«é 眮ããããšãã§ããŸãã
å³1.9ïŒãã£ãã·ã¥ã·ã¹ãã
ãã£ãã·ã¥ãè€æ°ã®ããŒãã«åæ£ãããšã©ããªããŸããïŒå³1.9ã§ãããããã«ãèŠæ±ã¬ãã«ã«å€ãã®ããŒããå«ãŸããå ŽåãåããŒãã«ç¬èªã®ãã£ãã·ã¥ãããå¯èœæ§ããããŸãããã ããããŒããã©ã³ãµãŒãããŒãéã§ãªã¯ãšã¹ããã©ã³ãã ã«åæ£ãããšãåããªã¯ãšã¹ããç°ãªãããŒãã«éä¿¡ãããããããã£ãã·ã¥ãšã©ãŒãå¢å ããŸãããã®ããŒãã«ãå æãã2ã€ã®æ¹æ³ã¯ãã°ããŒãã«ãã£ãã·ã¥ãšåæ£ãã£ãã·ã¥ã§ãã
ã°ããŒãã«ãã£ãã·ã¥
: . , , , . , . , , . ( , , , ).
å³ã«æãããŠããã°ããŒãã«ãã£ãã·ã¥ã«ã¯2ã€ã®æšæºåœ¢åŒããããŸããäžã®å³1.10ã¯ããã£ãã·ã¥ãããå¿çããã£ãã·ã¥å ã§èŠã€ãããªãã£ãå Žåã®ç¶æ³ã瀺ãããã£ãã·ã¥èªäœã¯ããŒã¿ã»ããŒã¹ã»ã¹ãã¬ãŒãžã®äžè¶³ããŠããéšåãååŸãã責任ãšãªããŸããäžã®å³1.11ãã£ãã·ã¥ã§çºèŠãããŠããªãä»»æã®ããŒã¿ãåä¿¡ããããŒããèŠæ±ãã矩åã瀺ããŸãã
å³1.10ïŒãã£ãã·ã¥ãååŸãæ åœãã
ã°ããŒãã«ãã£ãã·ã¥å³1.11ïŒèŠæ±ããŒããååŸãæ åœããã°ããŒãã«ãã£ãã·ã¥
, , , , . , , . , , ; ( ) . â , , , . ( - â , â , .)
( 1.12 ), , , â , , . -. , , , , . , . , â , .
åæ£ãã£ãã·ã³ã°ã®æ¬ ç¹ã¯ãããŒããæ¬ èœããŠããç¶æ³ã§æ©èœããããšã§ããäžéšã®åæ£ãã£ãã·ã¥ã¯ãããŒã¿ã®åé·ã³ããŒãè€æ°ã®ããŒãã«ä¿åããããšã«ããããã®åé¡ãåé¿ããŸãããã ããç¹ã«ã¯ãšãªã¬ãã«ã§ããŒããè¿œå ãŸãã¯åé€ããæ¡ä»¶ã§ã¯ããã®ãããªãã£ãã·ã¥ã®è«çæ§é ãã©ãã»ã©è¿ éã«è€éã«ãªããæ³åã§ããŸããããŒããæ¶ããŠãã£ãã·ã¥ã®äžéšã倱ããããšããŠããçµæã¯å¿ ãããå£æ» çã§ã¯ãããŸãã-èŠæ±ã¯ãœãŒã¹ããçŽæ¥ããŒã¿ãåä¿¡ããã ãã§ãïŒ
å³1.12ïŒåæ£ãã£ãã·ã¥ã
(, !) . , . , , .
Memcached (), , ); , ( ).
Memcached -, , , - , (O(1)) .
Facebookã¯ãããŸããŸãªçš®é¡ã®ãã£ãã·ã¥ã䜿çšããŠããµã€ãã§é«ãããã©ãŒãã³ã¹ãå®çŸããŠããŸãïŒ ãFacebookïŒãã£ãã·ã¥ãšããã©ãŒãã³ã¹ããåç
§ïŒã ãããã¯ã $GLOBALS
ããã³APCãèšèªã¬ãã«ã®ãã£ãã·ã³ã°ïŒé¢æ°ãåŒã³åºãããšã§PHPã§è¡šãããïŒã䜿çšããŸããããã¯ãäžéé¢æ°åŒã³åºããé«éåããçµæãååŸããã®ã«åœ¹ç«ã¡ãŸãã ïŒã»ãšãã©ã®èšèªã«ã¯ãWebããŒãžã®ããã©ãŒãã³ã¹ãåäžãããããã«ãããã®ã¿ã€ãã®ã©ã€ãã©ãªãè£
åãããŠãããã»ãŒåžžã«äœ¿çšããå¿
èŠããããŸããïŒããã«ãFacebookã¯è€æ°ã®ãµãŒããŒã«åæ£ããã°ããŒãã«ãã£ãã·ã¥ã䜿çšããŸãïŒã Facebookã§ã®memcachedã®ã¹ã±ãŒãªã³ã° ããåç
§ïŒãã£ãã·ã¥ã«ã¢ã¯ã»ã¹ããé¢æ°åŒã³åºãã¯ãç°ãªãMemcachedãµãŒããŒã«ä¿åãããããŒã¿ã«å¯Ÿããå€ãã®ãªã¯ãšã¹ããåæã«å®è¡ã§ããŸãã ãã®ã¢ãããŒãã«ããããŠãŒã¶ãŒãããã¡ã€ã«ããŒã¿ã®ããã©ãŒãã³ã¹ãšã¹ã«ãŒãããã倧å¹
ã«åäžãããããŒã¿ãæŽæ°ããããã®éäžåã¢ãŒããã¯ãã£ãäœæã§ããŸãã ããã¯éèŠã§ããäœåãã®ãµãŒããŒã§ã¯ããã£ãã·ã¥ã®äžè²«æ§ãç¡å¹ã«ããŠç¶æããããšãå°é£ãªå Žåãããããã§ãã
ããã«ããã£ãã·ã¥ã«ããŒã¿ããªãå Žåã®ã¢ã¯ã·ã§ã³ã®ã¢ã«ãŽãªãºã ã«ã€ããŠèª¬æããŸãã
ãããã·
åºæ¬ã¬ãã«ã§ã¯ããããã·ãµãŒããŒã¯ã¯ã©ã€ã¢ã³ãããã®ãªã¯ãšã¹ããåä¿¡ããããããããã¯ãšã³ããœãŒã¹ãµãŒããŒã«éä¿¡ããããŒããŠã§ã¢/ãœãããŠã§ã¢ã®äžééšåã§ãã éåžžããããã·ã¯ããªã¯ãšã¹ãã®ãã£ã«ã¿ãªã³ã°ããªã¯ãšã¹ãã®ãã°èšé²ããŸãã¯ãªã¯ãšã¹ãã®å€æïŒããããŒã®è¿œå /åé€ãæå·å/埩å·åãŸãã¯å§çž®ïŒã«äœ¿çšãããŸãã
å³1.13ãããã·ãµãŒããŒ
ãããã·ã¯ãå€æ°ã®ãµãŒããŒããã®èŠæ±ã調æŽããéã«ãéåžžã«åœ¹ç«ã¡ãŸããããã«ãããã·ã¹ãã å šäœã®èŠæ±ãã©ãã£ãã¯ãæé©åã§ããŸãã ãããã·ã䜿çšããŠããŒã¿ãžã®ã¢ã¯ã»ã¹ãé«éåããæ¹æ³ã®1ã€ã¯ãåããŸãã¯åæ§ã®èŠæ±ãçµåããåäžã®å¿çãèŠæ±ã¯ã©ã€ã¢ã³ãã«éä¿¡ããããšã§ãã ãã®çšèªã¯ãæãããã¿è»¢éãšåŒã°ããŸãã
ããã€ãã®ããŒããåãããŒã¿ã«å¯Ÿãããªã¯ãšã¹ããåä¿¡ãããšããŸãïŒlittleBãšåŒã³ãŸãããïŒãããã®ããŒã¿ã®äžéšã¯ãã£ãã·ã¥ã«ãããŸããã ãã®èŠæ±ããããã·ãä»ããŠéä¿¡ãããå Žåããã¹ãŠã®èŠæ±ã1ã€ã«ãŸãšããããšãã§ãããã®æé©åã®çµæãlittleBã¯ãã£ã¹ã¯ãã1åã ãèªã¿åãããŸãã ïŒ å³1.14ãåç §ïŒãã®å ŽåãèŠæ±ãåŠçããŠããããçµåããããã»ã¹ã¯ãããã«é·ãé 延ã«ã€ãªãããããå°ãé床ãç ç²ã«ããå¿ èŠããããŸãã ãã ããéã«è² è·ãé«ããšãç¹ã«åãããŒã¿ã«å¯ŸããèŠæ±ãç¹°ãè¿ãããå Žåã«ãããã©ãŒãã³ã¹ãåäžããŸãã ãããã·ã®æ©èœæŠç¥ã¯ãã£ãã·ã¥ã«äŒŒãŠããŸãããããŒã¿ãä¿åãã代ããã«ãããã¥ã¡ã³ããžã®ãªã¯ãšã¹ããŸãã¯åŒã³åºããæé©åããŸãã
ããšãã°ãLANãããã·ã§ã¯ãã¯ã©ã€ã¢ã³ãã¯ã€ã³ã¿ãŒãããã«æ¥ç¶ããããã«ç¬èªã®IPã¢ãã¬ã¹ãå¿ èŠãšããŸããã ãããã·ã¯ãåãã³ã³ãã³ãã«å¯Ÿããã¯ã©ã€ã¢ã³ãããã®èŠæ±ãçµåããŸãã ãã ããå€ãã®ãããã·ããã£ãã·ã¥ã§ããããïŒãã£ãã·ã¥ãé 眮ããè«ççãªå Žæã§ããããïŒãããã«ãããããŸãããçããŸããããã¹ãŠã®ãã£ãã·ã¥ããããã·ãšããŠæ©èœããããã§ã¯ãããŸããã
å³1.14ïŒãããã·ãµãŒããŒã䜿çšããŠèŠæ±ãçµåãã
ãããã·ã䜿çšãããã1ã€ã®åªããæ¹æ³ã¯ãåãããŒã¿ã«å¯ŸããèŠæ±ãçµåããã ãã§ãªãããœãŒã¹ãªããžããªïŒãã£ã¹ã¯äžïŒã§äºãã«ç©ºéçã«è¿ãããŒã¿ã®éšåãçµåããããšã§ãã ãã®æŠç¥ã䜿çšãããšãã¯ãšãªã®ããŒã¿ã®å±ææ§ãæ倧åãããã¯ãšãªã®åŸ æ©æéãççž®ãããŸãã ããšãã°ãããŒãã®ã»ãããããŒãBããªã¯ãšã¹ãããå ŽåïŒããŒãB1ãããŒãB2ãªã©ãåã ã®ãªã¯ãšã¹ãã®ç©ºéäœçœ®ãèªèããããã«ãããã·ãæ§æããããããåäžã®ãªã¯ãšã¹ãã«çµåããŠbigBã®ã¿ãè¿ããèªã¿åããå€§å¹ ã«æå°åã§ããŸãããŒã¿ãœãŒã¹ããã ïŒ å³1.15ãåç §ïŒä»»æã®é åºã§ãã©ãã€ãã®ããŒã¿å šäœã«ã¢ã¯ã»ã¹ããå Žåãã¯ãšãªã®å®è£ æéã¯éåžžã«ç°ãªãå¯èœæ§ããããŸãã ãããã·ã¯åºæ¬çã«è€æ°ã®èŠæ±ã1ã€ã«ã°ã«ãŒãåã§ãããããè² è·ãé«ãç¶æ³ããã£ãã·ã³ã°æ©èœãå¶éãããŠããç¶æ³ã§ç¹ã«åœ¹ç«ã¡ãŸãã
å³1.15ïŒãããã·ã䜿çšããŠã空éçã«è¿ãããŒã¿ã®èŠæ±ãçµåãã
ãããã·ãšãã£ãã·ã¥ãäžç·ã«äœ¿çšã§ããããšã¯æ³šç®ã«å€ããŸãããå€ãã®åå è ãšã®ãã©ãœã³ã§ããéãã©ã³ããŒãã¹ã¿ãŒãã§ããããã«ããæ¹ãããã®ãšåãçç±ã§ãéåžžã¯ãããã·ã®åã«ãã£ãã·ã¥ã眮ãæ¹ãè¯ãã§ãã ããã¯ããã£ãã·ã¥ãã¡ã¢ãªããã®ããŒã¿ã䜿çšããããã§ããããã¯éåžžã«é«éã§ãããåãçµæã«å¯Ÿããè€æ°ã®èŠæ±ãšççŸããŸããã ãã ãããã£ãã·ã¥ããããã·ãµãŒããŒã®å察åŽã«ããå Žåããã£ãã·ã¥ã®åã«åãªã¯ãšã¹ãã«è¿œå ã®é 延ãçºçããããã©ãŒãã³ã¹ãäœäžããå¯èœæ§ããããŸãã
ãããã·ãã·ã¹ãã ã«è¿œå ããããšãæ€èšããŠããå Žåã¯ãå€ãã®éžæè¢ããããŸãã
ã€ã«ãš
ã¯ãã¹ã¯æã®è©Šç·Žã«èã ãå€ãã®çç£çãªãŠã§ããµã€ãã§åºã䜿çšãããŠããŸãã ãããã®ãããã·ãœãªã¥ãŒã·ã§ã³ã¯ãã¯ã©ã€ã¢ã³ããšãµãŒããŒéã®éä¿¡ãæ倧éã«æŽ»çšããããã®å€ãã®æé©åãªãã·ã§ã³ãæäŸããŸãã ãããã®1ã€ãWebãµãŒããŒã¬ãã«ã§ãªããŒã¹ãããã·ã¢ãŒãïŒè² è·åæ£ã®ã»ã¯ã·ã§ã³ã§åŸè¿°ïŒã«èšå®ãããšãWebãµãŒããŒã®ããã©ãŒãã³ã¹ã倧å¹
ã«åäžããçä¿¡ã¯ã©ã€ã¢ã³ãèŠæ±ãåŠçããããã®äœæ¥éãåæžãããŸãã
ææ°
ã€ã³ããã¯ã¹ã䜿çšããŠããŒã¿ã«ãã°ããã¢ã¯ã»ã¹ããããšã¯ãããŒã¿ãžã®ã¢ã¯ã»ã¹ãå¹æçã«æé©åããããã®ããç¥ãããæŠç¥ã§ãã ã€ã³ããã¯ã¹ã¯ãããŒã¿ããŒã¹ã§æãåºã䜿çšãããŠããŸãã ã€ã³ããã¯ã¹ã¯çžäºã«è²æ©ããããŒã¿ã¹ãã¬ãŒãžããªã¥ãŒã ã®ãªãŒããŒãããã䜿çšãããæžã蟌ã¿ãæäœã®é床ãäœäžãããŸãïŒããŒã¿ã®æžã蟌ã¿ãšã€ã³ããã¯ã¹ã®æŽæ°ãåæã«è¡ãå¿ èŠãããããïŒãããé«éãªãèªã¿åããæäœã®åœ¢ã§åã€ããšãã§ããŸãã
ãªã¬ãŒã·ã§ãã«ããŒã¿ã»ããã®ããã«ããã®æŠå¿µããã倧ããªããŒã¿ã¹ãã¢ã«é©çšããããšãã§ããŸãã ã€ã³ããã¯ã¹ã®ã³ãã¯ããŠãŒã¶ãŒãããŒã¿ã«ã¢ã¯ã»ã¹ããæ¹æ³ãæ確ã«ç解ããããšã§ãã ããŒã¿ã»ããã®ããªã¥ãŒã ããã©ãã€ãåäœã§æž¬å®ãããæçšãªæ å ±ãã»ãšãã©ãªãå ŽåïŒããšãã°1 KBïŒãããŒã¿ãžã®ã¢ã¯ã»ã¹ãæé©åããããã«ã€ã³ããã¯ã¹ã䜿çšããå¿ èŠããããŸãã ãã®ãããªå€§èŠæš¡ãªããŒã¿ã»ããã§å°ããªæçšãªæ å ±ãèŠã€ããããšã¯ã劥åœãªæéå ã«ãã®ãããªå€§éã®ããŒã¿ãé çªã«äžŠã¹æ¿ããããšãã§ããªããããå®éã®åé¡ã«ãªãå¯èœæ§ããããŸãã ããã«ããã®ãããªå€§ããªããŒã¿ã»ãããè€æ°ã®ïŒãŸãã¯å€æ°ã®ïŒç©çããã€ã¹ã«åæ£ããŠããå¯èœæ§ãéåžžã«é«ããããå¿ èŠãªããŒã¿ã®æ£ããç©ççãªå Žæãäœããã®æ¹æ³ã§èŠã€ããå¿ èŠããããŸãã ãããè¡ãã«ã¯ãã€ã³ããã¯ã¹ãæé©ãªæ¹æ³ã§ãã
å³1.16ïŒã€ã³ããã¯ã¹
ã€ã³ããã¯ã¹ã¯ãããŒã¿ã®å Žæã瀺ãç®æ¬¡ãšããŠäœ¿çšã§ããŸãã ããšãã°ãã»ã¯ã·ã§ã³ãBãã®ããŒã2ã®ããŒã¿ãæ¢ããŠãããšããŸããããã©ãã§ãããèŠã€ããããšãã§ããŸããã ããŒã¿ã¿ã€ãå¥ã«ãœãŒããããã€ã³ããã¯ã¹ãããå Žå-ããŒã¿ããAãããBãããCããšåŒã³ãŸããã-ãœãŒã¹å ã®ããŒã¿ãBãã®å Žæã瀺ããŸãã 次ã«ããã®å ŽæãèŠã€ããŠãå¿ èŠãªéšåãBããæ°ããã ãã§ãã ïŒ å³1.16ãåç §ïŒ
ãããã®ã€ã³ããã¯ã¹ã¯ãå€ãã®å Žåãã¡ã¢ãªã«æ ŒçŽãããããçä¿¡ã¯ã©ã€ã¢ã³ãèŠæ±ã«å¯ŸããŠéåžžã«ããŒã«ã«ãªå Žæã«æ ŒçŽãããŸãã Berkeley DBïŒBDBïŒããã³ããªãŒç¶ã®ããŒã¿æ§é ã¯ãé åºä»ããªã¹ãã«ããŒã¿ãæ ŒçŽããããã«äžè¬çã«äœ¿çšãããã€ã³ããã¯ã¹ã¢ã¯ã»ã¹ã«æé©ã§ãã
å€ãã®å Žåãå¿ èŠãªããŒã¿ã®äžéšãååŸãããŸã§ãããããšããŠæ©èœããå€ãã®ã¬ãã«ã®ã€ã³ããã¯ã¹ããããããå Žæããå¥ã®å Žæã«ç§»åããŸãã ïŒ å³1.17ãåç §ïŒ
å³1.17ïŒãã«ãã¬ãã«ã€ã³ããã¯ã¹
ã€ã³ããã¯ã¹ã䜿çšããŠãåãããŒã¿ã®ä»ã®ããã€ãã®è¡šçŸãäœæããããšãã§ããŸãã 倧èŠæš¡ãªããŒã¿ã»ããã®å Žåãããã¯ãããŒã¿ã®å€ãã®è¿œå ã³ããŒãäœæããããšãªããããŸããŸãªãã£ã«ã¿ãŒãšãã¥ãŒãå®çŸ©ããåªããæ¹æ³ã§ãã
ããšãã°ãäžèšã®ç»åãã¹ãã£ã³ã°ã·ã¹ãã ãå®éã«æ¬ã®ããŒãžã«ç»åãé 眮ãããµãŒãã¹ããããã®ç»åã§ã¯ã©ã€ã¢ã³ãåŽã®ããã¹ãã¯ãšãªãæå¹ã«ããæ€çŽ¢ãšã³ãžã³ãHTMLã§æ€çŽ¢ã§ããããã«ãç¹å®ã®ãããã¯ã®ãã¹ãŠã®ããã¹ãã³ã³ãã³ããæ€çŽ¢ãããšããŸãã³ã³ãã³ãã ãã®å Žåããããã®ãã¹ãŠã®æ¬ã®ç»åã¯å€ãã®ãµãŒããŒã䜿çšããŠãã¡ã€ã«ãä¿åããããããŠãŒã¶ãŒã«è¡šç€ºãã1ã€ã®ããŒãžãèŠã€ããã®ã¯éåžžã«å°é£ã§ãã æåã¯ãä»»æã®åèªãåèªã»ãããç §äŒããããã®éã€ã³ããã¯ã¹ã«ç°¡åã«ã¢ã¯ã»ã¹ã§ããå¿ èŠããããŸãã 次ã«ãæ£ç¢ºãªããŒãžã«ç§»åããŠãã®æ¬ã«é 眮ããæ€çŽ¢çµæã®æ£ããç»åãæœåºããã¿ã¹ã¯ããããŸãã ãããã£ãŠããã®å Žåã転眮ãããã€ã³ããã¯ã¹ã¯å ŽæïŒããã¯Bãªã©ïŒã«è¡šç€ºãããBã«ã¯ãã¹ãŠã®åèªãå Žæãåéšåã®åºçŸåæ°ãå«ãã€ã³ããã¯ã¹ãå«ããããšãã§ããŸãã
äžèšã®å³ã§Index1ã衚瀺ã§ããé玢åŒã¯æ¬¡ã®ããã«ãªããŸããååèªãŸãã¯åèªã®ã»ããã¯ãããããå«ãæ¬ã®çŽ¢åŒãšããŠæ©èœããŸãã
åèªïŒsïŒ | æ¬ïŒsïŒ |
---|---|
çŽ æŽããã | ããã¯Bãããã¯Cãããã¯D |
ãã€ã | Book CãBook F |
ä¿¡ãã | ããã¯B |
äžéã€ã³ããã¯ã¹ãåæ§ã«èŠããŸãããããã¯Bã®åèªãå Žæãæ å ±ã®ã¿ãå«ãŸããŸããè€æ°ã®ã¬ãã«ãå«ããã®ãããªã¢ãŒããã¯ãã£ã§ã¯ããã¹ãŠã®æ å ±ã1ã€ã®å€§ããªéã€ã³ããã¯ã¹ã«æ ŒçŽãããå Žåãããåã€ã³ããã¯ã¹ã®ã¹ããŒã¹ãç¯çŽã§ããŸãã
ãããŠãããã¯å€§èŠæš¡ã·ã¹ãã ã®éèŠãªãã€ã³ãã§ãããªããªãããããã®ã€ã³ããã¯ã¹ã¯å§çž®ãããŠããŠããéåžžã«å€§ãããä¿åããã®ã«è²»çšããããå¯èœæ§ãããããã§ãã ãã®ã·ã¹ãã ã«ã¯äžçäžããããããã®æ¬ããããŸã-100,000,000ïŒããã°ãšã³ããªãInside Google Booksããåç
§ïŒ-åæ¬ã¯1ããŒãžããã250ã¯ãŒãã§10ããŒãžïŒèšç®ãç°¡åã«ããããïŒã§æ§æãããŠãããšä»®å®ããŸãïŒããã«ãããåèš2500åèªã«ãªããŸãã åèªã®å¹³åæåæ°ã5ãšããåæåã8ãããïŒãŸãã¯å®éã«ã¯2ãã€ããå æããŠããå Žåã§ã1ãã€ãïŒã§ãšã³ã³ãŒããããŠãããããåèªããšã«5ãã€ããè²»ãããŠããå Žåãã€ã³ããã¯ã¹ååèªã1åã ãå«ããã«ã¯ã1ãã©ãã€ã以äžã®å®¹éã®ã¹ãã¬ãŒãžãå¿
èŠã§ãã ãã®ããã«ãåèªã»ãããããŒã¿ã®å Žæã䜿çšåæ°ãªã©ã®ä»ã®æ
å ±ãå«ãã€ã³ããã¯ã¹ã¯ãéåžžã«æ¥éã«å¢å ããå¯èœæ§ãããããšãããããŸãã
ãã®ãããªäžéã€ã³ããã¯ã¹ãäœæããããŒã¿ãããå°ããªéšåã§æ瀺ãããšããããã°ããŒã¿ãã®åé¡ã解決ãããããªããŸãã ããŒã¿ã¯è€æ°ã®ãµãŒããŒã«åæ£ã§ããåæã«è¿ éã«ã¢ã¯ã»ã¹ã§ããŸãã ã€ã³ããã¯ã¹ã¯ãæ å ±æ€çŽ¢ã®åºç€ã§ãããä»æ¥ã®ææ°ã®æ€çŽ¢ãšã³ãžã³ã®åºç€ã§ãã ãã¡ããããã®ã»ã¯ã·ã§ã³ã§ã¯äžè¬ã«ã€ã³ããã¯ã¹ä»ãã®ãããã¯ã®ã¿ãæ±ããã€ã³ããã¯ã¹ãå°ãããé«éã«ãããå€ãã®æ å ±ïŒé¢é£æ§ãªã©ïŒã䜿çšããŠèªç±ã«æŽæ°ããæ¹æ³ã«ã€ããŠå€ãã®ç 究ãè¡ãããŠããŸãã ïŒç¹ã«é¢é£æ§ãè©äŸ¡ãé¢ä¿ããå Žåã競åããæ¡ä»¶ã®å¶åŸ¡æ§ãããã³æ°ããããŒã¿ã®è¿œå ãæ¢åã®ããŒã¿ã®å€æŽã«å¿ èŠãªæŽæ°ã®æ°ã«ããã€ãã®åé¡ããããŸãïŒã
ããŒã¿ããã°ããç°¡åã«èŠã€ããæ©èœã¯éåžžã«éèŠã§ããããããå®çŸããããã®æãç°¡åã§å¹æçãªããŒã«ã¯ã€ã³ããã¯ã¹ã§ãã
ããŒããã©ã³ãµãŒ
æåŸã«ãåæ£ã·ã¹ãã ã®ãã1ã€ã®éèŠãªéšåã¯ããŒããã©ã³ãµãŒã§ãã ããŒããã©ã³ãµãŒã®åœ¹å²ã¯ãèŠæ±ã®åŠçãæ åœããããŒãéã§è² è·ãåæ£ãããããšã§ãããããããŒããã©ã³ãµãŒã¯ã¢ãŒããã¯ãã£ã®éèŠãªéšåã§ãã ããã«ãããè€æ°ã®ããŒããã·ã¹ãã å ã®åãæ©èœãééçã«æäŸã§ããŸãã ïŒ å³1.18ãåç §ãïŒäž»ãªç®æšã¯ãå€ãã®åææ¥ç¶ãåŠçãããããã®æ¥ç¶ãèŠæ±ãããããŒãã®1ã€ã«ã«ãŒãã£ã³ã°ããããŒããè¿œå ããŠããå€ãã®èŠæ±ã«å¯Ÿå¿ã§ããããã«ããããšã§ãã
å³1.18ïŒããŒããã©ã³ãµãŒ
ã¯ãšãªãåŠçããããã®ããŸããŸãªã¢ã«ãŽãªãºã ããããŸããã©ã³ãã ããŒãã®éžæã埪ç°ã¢ã«ãŽãªãºã ã®éžæãäžå€®ããã»ããµãRAMã®äœ¿çšãªã©ã®ç¹å®ã®åºæºã«åºã¥ããããŒãã®éžæãå«ãŸããŸãã ããŒããã©ã³ãµãŒã¯ãããŒããŠã§ã¢ããã€ã¹ãŸãã¯ãœãããŠã§ã¢ãšããŠå®è£ ã§ããŸãã ãªãŒãã³ãœãŒã¹ãœãããŠã§ã¢äžã®ããŒããã©ã³ãµãŒã®äžã§ã HAProxyã¯æãåºã䜿çšãããŠããŸãã
åæ£ã·ã¹ãã ã§ã¯ãããŒããã©ã³ãµãŒã¯å€ãã®å Žåã·ã¹ãã ã®ãããã³ããšã³ããã«ããããããã¹ãŠã®çä¿¡èŠæ±ã¯ããããçŽæ¥ééããŸãã 以äžã«ç€ºãããã«ãè€éãªåæ£ã·ã¹ãã ã§ã¯ããªã¯ãšã¹ããè€æ°ã®ãã©ã³ãµãŒãééããå¿
èŠãããå¯èœæ§ãéåžžã«é«ããªããŸãã
å³1.19
å³1.19ïŒè€æ°ã®ããŒããã©ã³ãµãŒ
ãããã·ãšåæ§ã«ãäžéšã®ããŒããã©ã³ãµãŒã¯ããªã¯ãšã¹ãã®ã¿ã€ãã«å¿ããŠç°ãªãæ¹æ³ã§ãªã¯ãšã¹ããéä¿¡ããããšãã§ããŸãã ãããã¯éãããã·ãšããŠãç¥ãããŠããŸãã
ç¹å®ã®ãŠãŒã¶ãŒã»ãã·ã§ã³ã«åºæã®ããŒã¿ã®ç®¡çã¯ãããŒããã©ã³ãµãŒã䜿çšããéã®åé¡ã®1ã€ã§ãã eã³ããŒã¹ãµã€ãã§ã¯ã顧客ã1人ã ãã®å ŽåããŠãŒã¶ãŒãè²·ãç©ããã«ç©ãå ¥ãããã蚪åã®éã«ãã®å 容ãä¿åãããããããšã¯éåžžã«ç°¡åã§ãïŒè£œåããŸã ãµã€ãã«è¿ããããšã補åã販売ãã確çãå€§å¹ ã«å¢å ãããããããã¯éèŠã§ãïŒåœŒã®ãã¹ã±ããã«ãããŸãïŒã ãã ãããŠãŒã¶ãŒãæåã®ã»ãã·ã§ã³ã§1ã€ã®ããŒãã«èªå°ããã次ã®èšªåäžã«å¥ã®ããŒãã«èªå°ãããå Žåãæ°ããããŒãã«ã¯ãã®ãŠãŒã¶ãŒã®ãã¹ã±ããã®å 容ã«é¢ããããŒã¿ããªããããççŸãçºçããå¯èœæ§ããããŸãã ïŒMountain Dewã®ããã±ãŒãžããã¹ã±ããã«å ¥ããå ŽåãåæºããŸããããè¿åããŠãã»ãã·ã§ã³ã¯ãããŸãããïŒ1ã€ã®è§£æ±ºçã¯ãã»ãã·ã§ã³ããã¹ãã£ãããŒãã«ãªãããŠãŒã¶ãŒãåžžã«åãããŒãã ãã ããèªåãã©ãŒã«ããã¬ã©ã³ã¹ãªã©ã®ç¹å®ã®ä¿¡é Œæ§æ©èœãå©çšããããšã¯éåžžã«å°é£ã§ãã ãã®å ŽåããŠãŒã¶ãŒã®ãã¹ã±ããã«ã¯åžžã«ã³ã³ãã³ãããããŸãããã¹ãã£ãããŒããŒãã«ã¢ã¯ã»ã¹ã§ããªããªã£ãå Žåãç¹å¥ãªã¢ãããŒããå¿ èŠã«ãªãããã¹ã±ããã®ã³ã³ãã³ãã«é¢ããä»®å®ã¯ãã¯ãæãç«ããªããªããŸãïŒãã ãããã®ä»®å®ã¯ã¢ããªã±ãŒã·ã§ã³ã«çµã¿èŸŒãŸããªãããšãæãŸããŸãïŒã ãã¡ããããã®åé¡ã¯ããã®ç« ã§èª¬æãããµãŒãã¹ããã®ä»ã®å€ãïŒãã©ãŠã¶ãã£ãã·ã¥ãCookieãURLæžãæããªã©ïŒãªã©ãä»ã®æŠç¥ãããŒã«ã䜿çšããŠè§£æ±ºã§ããŸãã
ã·ã¹ãã ã«å°æ°ã®ããŒããããªãå ŽåãDNSã«ã«ãŒã»ã«ãªã©ã®ææ³ã¯ããŒããã©ã³ãµãŒãããå®çšçã§ããå¯èœæ§ãé«ããã³ã¹ããããããäžèŠãªã¬ãã«ãè¿œå ããããšã§ã·ã¹ãã ã®è€éããå¢ãå¯èœæ§ããããŸãã ãã¡ããã倧èŠæš¡ãªã·ã¹ãã ã«ã¯ãã©ã³ãã éžæãã«ã«ãŒã»ã«ã¢ã«ãŽãªãºã ãªã©ã®åçŽãªã¢ã«ãŽãªãºã ãšãã·ã¹ãã 䜿çšã¢ãã«ã®ããã©ãŒãã³ã¹æ©èœãèæ ®ããããè€éãªã¡ã«ããºã ã®äž¡æ¹ãå«ããããããçš®é¡ã®ç°ãªãèšç»ããã³è² è·åæ£ã¢ã«ãŽãªãºã ããããŸãã ãããã®ãã¹ãŠã®ã¢ã«ãŽãªãºã ã䜿çšãããšããã©ãã£ãã¯ãšèŠæ±ãåæ£ã§ããèªåãã©ãŒã«ããã¬ã©ã³ã¹ãç ŽæããããŒãã®èªååé€ïŒããšãã°ãå¿çåæ¢æïŒãªã©ã®äŸ¿å©ãªä¿¡é Œæ§ããŒã«ãæäŸã§ããŸãã ãã ãããããã®é«åºŠãªæ©èœã䜿çšãããšãåé¡ã®èšºæãé¢åã«ãªããŸãã ããšãã°ãé«è² è·ã®ç¶æ³ã§ã¯ãããŒããã©ã³ãµãŒã¯ãå®è¡ãé ããªã£ãããåŸ æ©æéãé·ããªãïŒãªã¯ãšã¹ãã®æ¥å¢ã«ããïŒããŒããåé€ããŸããããã«ãããä»ã®ããŒãã®ç¶æ³ãæªåããã ãã§ãã ãããã®å Žåãã·ã¹ãã å šäœã®ãã©ãã£ãã¯ãšè² è·ãæžå°ããããã«èŠããå Žåã§ãïŒããŒãã®èŠæ±ãå°ãªãããïŒãåã ã®ããŒããéè² è·ã«ãªãå¯èœæ§ããããããåºç¯ãªå¶åŸ¡ãéèŠã§ãã
ããŒããã©ã³ãµãŒã¯ãã·ã¹ãã ã®é»æºãæ§ç¯ããç°¡åãªæ¹æ³ã§ãã ãã®èšäºã§èª¬æããä»ã®æ¹æ³ãšåæ§ã«ãåæ£ã·ã¹ãã ã®ã¢ãŒããã¯ãã£ã§éèŠãªåœ¹å²ãæãããŸãã ããŒããã©ã³ãµãŒã¯ãããŒãã®ç¶æ ãæ€èšŒããããã®éèŠãªæ©èœãæäŸããŸãã ãã®ãããªãã§ãã¯ã®çµæã«åºã¥ããŠãããŒããå¿çããªãããéè² è·ã«ãªã£ãŠããå ŽåãèŠæ±åŠçããŒã«ããåé€ã§ããŸããã·ã¹ãã ã®åé·æ§ã«ãããæ®ãã®äœæ¥ããŒãéã§è² è·ãååé ãããŸãã
ãã¥ãŒ
ãããŸã§ãããŒã¿ããã°ããèªã¿åãããã®å€ãã®æ¹æ³ãæ€èšããŠããŸããã åæã«ãããŒã¿ã¬ã€ã€ãŒã®ã¹ã±ãŒãªã³ã°ã®ãã1ã€ã®éèŠãªéšåã¯ãã¬ã³ãŒãã®å¹ççãªç®¡çã§ããã·ã¹ãã ãã·ã³ãã«ã§ãæå°éã®åŠçè² è·ãšå°ããªããŒã¿ããŒã¹ãåããŠããå Žåãèšé²ã¯äºæ³ä»¥äžã«é«éã«ãªããŸãããã ããããè€éãªã·ã¹ãã ã§ã¯ããã®ããã»ã¹ã«ç¡æéã«é·ãæéããããå ŽåããããŸããããšãã°ãç°ãªããµãŒããŒãŸãã¯ã€ã³ããã¯ã¹ã®è€æ°ã®å Žæã«ããŒã¿ãèšé²ããå¿ èŠãããå Žåããã·ã¹ãã ã®è² è·ãé«ãå ŽåããããŸããèšé²ãã¿ã¹ã¯ã ãã§ãæéããããå Žåãããã©ãŒãã³ã¹ãšå¯çšæ§ãå®çŸããã«ã¯ãã·ã¹ãã ã«éåææ§ãçµã¿èŸŒãå¿ èŠããããŸãããããè¡ãäžè¬çãªæ¹æ³ã¯ããªã¯ãšã¹ãããã¥ãŒã«å ¥ããããšã§ãã
å³1.20ïŒåæãªã¯ãšã¹ã
, . , . , ( ) , , . , , , , . â , 1.20 .
ãã®ã¿ã€ãã®åæåäœã¯ãã¯ã©ã€ã¢ã³ãã®ããã©ãŒãã³ã¹ãå€§å¹ ã«äœäžãããå¯èœæ§ããããŸããå®éã«ã¢ã€ãã«ç¶æ ã®å Žåãã¯ã©ã€ã¢ã³ãã¯èŠæ±ã«å¯Ÿããå¿çãåä¿¡ãããŸã§åŸ æ©ããå¿ èŠããããŸããã·ã¹ãã ã®è² è·ã«å¯ŸåŠããããã«ãµãŒããŒãè¿œå ããŠããå®éã«ã¯åé¡ã¯è§£æ±ºããŸãããå¹ççãªè² è·åæ£ãè¡ãããŠããå Žåã§ãã顧客ã®çç£æ§ãæ倧åããããã«å¿ èŠãªåçãã€å ¬å¹³ãªè² è·åæ£ã確ä¿ããããšã¯éåžžã«å°é£ã§ããããã«ããã®èŠæ±ãåŠçãããµãŒããŒãå©çšã§ããªãïŒãŸãã¯å€±æããïŒå Žåãããã«æ¥ç¶ãããŠããã¯ã©ã€ã¢ã³ããåäœãåæ¢ããŸãããã®åé¡ãå¹æçã«è§£æ±ºããã«ã¯ãã¯ã©ã€ã¢ã³ãã®ãªã¯ãšã¹ããšããµãŒãã¹ãæäŸããããã«è¡ãããå®éã®äœæ¥ãæœè±¡åããå¿ èŠããããŸãã
å³1.21ïŒãã¥ãŒã䜿çšããŠãªã¯ãšã¹ãã管çãã
. : , , «» , . (. 1.21 .) - . , ; . , .
, . , , , . , , , , , , . , , , . â , .
. , , , - . , , , .
â , . RabbitMQ ,
ActiveMQ ,
BeanstalkD ,
Zookeeper , Redis .
1.4ã ãããã«
, , . , â .
Creative Commons Attribution 3.0 . . .
The Architecture of Open Source Applications .