ããã¯ãHTML5 Advent Calendar 2014ã®7æ¥ç®ã®ã¨ã³ããªã¼ã¨ãã¦æ¸ãã¦ããã¾ãã
2008å¹´4æ1æ¥ã«åçãçºè¡ãããããªã©ã¤ãªã¼ã»ã¸ã£ãã³ã®ããã¤ããã©ã¼ãã³ã¹Webãµã¤ãããæªã ã«åèã«ããã¦ããæ¹ã¯å¤ãã¨æãã¾ãã
ã¦ã§ããã¼ã¸å ã§ãèæ¯ããã¿ã³ãããã²ã¼ã·ã§ã³ãã¼ããªã³ã¯ãªã©ã§å¤æ°ã®ç»åã使ãå ´åã¯ãCSSã¹ãã©ã¤ãã使ãã®ãã¨ã¬ã¬ã³ããªè§£æ±ºçã§ãããããããã¨ã§ããã¼ã¯ã¢ãããæ´çãããæ±ãã¹ãç»åã®æ°ãæ¸ããã¬ã¹ãã³ã¹ãé«éã«ãªãã¾ãã
â ããã¤ããã©ã¼ãã³ã¹Webãµã¤ã é«éãµã¤ããå®ç¾ãã14ã®ã«ã¼ã«ã Steve Soudersè
ãã®é¨åãåç §ããã¦ããææããCSSã¹ãã©ã¤ãã使ããã¨ã§ãHTTPãªã¯ã¨ã¹ãæ°ãåæ¸ããã¦ãé«éåã«ç¹ãããã¨æ¸ããã¦ããæ¹ããè¦åããã¾ãã
ããããããã¯æ¬å½ãªã®ã§ãããã?
ããã§ãä»åãæ¬å½ã«å¹æãããã®ãã©ããã確èªãã¹ããã¢ãã¤ã«ãã¡ã¼ã¹ãã®æ代ã§ãããã¾ããããã¹ãã¼ããã©ã³ãµã¤ããæ³å®ãã¦ã3Gåç·ã¨å åç·ã使ã£ã¦å®é¨ãã¦ã¿ã¾ããã
 å®é¨è¨ç»
- ãµã¼ã ⦠Amazon Web Services S3
- è¨æ¸¬éé ⦠60åã«1åã®é »åº¦ãã©ã³ãã ã«ééã¯åå¾ãã
- åç· â¦ ã½ãããã³ã¯ã¨NTTãã³ã¢ã®3Gåç·(é½å ã常ã«é»æ³¢å¼·åº¦ã3以ä¸ã®å ´æ)ã並ã³ã«ãå åç·
- ãã©ã¦ã¶ ⦠iPhone4Sã®Safari
- è¨æ¸¬ãã対象 ⦠HTMLã1ãã¼ã¸ãããã¦ç´2MBåã®ç»åã
å®é¨è¨ç»æ³
å質管çã§éè¦ãªãã¼ã¿ã®åãæ¹ã§ãããå®é¨è¨ç»æ³ã«ã¯ã3ã¤ã®ååãããã¾ãã
- å±æ管çå
- å復
- ã©ã³ãã å
å±æ管çå
å±æ管çåã¨ã¯ãå®é¨ã§å æé¢ä¿ã確èªãããè¦ç´ 以å¤ã®å¤æ°ã¯åºå®åãããã¨ã§ãã
ä»åãè¨æ¸¬ã®å¯¾è±¡ã¨ãªãWebãµã¼ãã«ã¯ãå ç¢ãã§å®è©ã®ããAWSã®S3ã使ãããµã¼ãã®è² è·è¦å ã極åæé¤ãã¾ããã
åç·ã«ã¤ãã¦ã¯ãã½ãããã³ã¯ã¨NTTãã³ã¢ãããããã®3Gåç·ã使ç¨ãã¦ãããæ§æ ¼ã®ç°ãªãåç·ã§ã®æ¯è¼ã試ã¿ã¦ãã¾ããã¾ããå åç·ã使ã£ãè¨æ¸¬ããã¦ããã¡ãã§ãæ¯è¼ãã¦ãã¾ããããã¯ãç¡ç·LANç¸å½ã¨èãã¦ä¸ãããä½æ ãå®éã®ç¡ç·LANã使ããªããã¨ããã¨ãç¡ç·LANã®å ´åã¯ãé»æ³¢å¹²æ¸ãæ§ã ãªè¦å ã§æ¥ç¶ãä¸å®å®ã«ãªãå¯è½æ§ãããããã§ããããæé¤ããããã«å åç·ã使ç¨ãã¦ãã¾ãã
ãã©ã¦ã¶ã«ã¤ãã¦ã¯ãiPhone4Sã®Safariç¸å½ã使ç¨ãã¦ãã¾ããç¸å½ã¨æ¸ãã¦ããã®ã¯ãã¨ãã¥ã¬ã¼ã¿ã使ã£ã¦ããããã§ããä½æ ãå®æ©ã§ã¯ãªãã¨ãã¥ã¬ã¼ã¿ã使ããã¨ããã¨ãã¹ãã¼ããã©ã³æ¬ä½ã®ãã¼ãã¦ã§ã¢ã¹ããã¯ã®å½±é¿ã極åæé¤ããããã§ãã
å復
å復ã¨ã¯ãè¨æ¸¬ãä½åº¦ãä¸å®ééã§è¡ããã¨ã§ããå質管çã¯ãçµ±è¨å¦ããã¼ã¹ã«ãã¦è¡ããã®ã§ããæ®å¿µãªãããçµ±è¨å¦ã«ã¯ãµã³ããªã³ã°ã§èª¿æ»ããé½åä¸ãã100%ãã¨ããæ£è§£ãããã¾ããã
å¾ã£ã¦ãçµ±è¨å¦ã«ããã¦ã¯ããããæ¯éå£ããç¡ä½çºæ½åºãããæ¨æ¬å¹³åã¯ãµã³ãã«ã®ãµã¤ãºã大ããããã¨çã®å¹³åã«è¿ã¥ããã¨ãã大æ°ã®æ³åã«åºã¥ãã¦ãè¨æ¸¬æ°ãéè¦ã«ãªãã¾ãã
ã©ã³ãã å(ç¡ä½çºå)
ã©ã³ãã åã¨ã¯ãå±æ管çåãå復ã§ãå¶å¾¡ã§ããªãå¯è½æ§ã®ããè¦å ã®å½±é¿ãé¤ãã¦ããã¼ã¿ã®åããå°ããããããã«è¡ãã¾ããä»åã®è¨æ¸¬ã§ã¯ã9:00ã10:00ã11:00ã¨ããããã£ãã1æéã®ééã§è¨æ¸¬ããã®ã§ã¯ãªãã8:53ã10:10ã11:07ã®ãããªãå¡ã1æéã®ééã§ã©ã³ãã ã«è¨æ¸¬ãããã¨ã§ãè¨æ¸¬å¤ã«é¢ä¸ãã¦ããã§ãããä»ã®å¤æ°è¦å ã®å½±é¿ãåãé¤ãã¾ãã
è¨æ¸¬çµæ
æ£å¸å³
ã¾ããã½ãããã³ã¯ã¨NTTãã³ã¢ã®3Gåç·ã§ã®è¨æ¸¬ã®æ£å¸å³ãè¦ã¦ã¿ã¾ãã
æéã¯ã2014å¹´11æ23æ¥ï½12æ7æ¥ã®äºé±éã§ãã
- ãã¿ã¼ã³1 ⦠水è²: HTML1ãã¼ã¸+ç»å(2MB)1æã®è¨æ¸¬ã§ãã
- ãã¿ã¼ã³2 ⦠ãªã¬ã³ã¸è²: HTML1ãã¼ã¸+ç»å4æ(åè¨ã§2MB)ã®è¨æ¸¬ã§ãã
- ãã¿ã¼ã³3 ⦠éè²: HTML1ãã¼ã¸+ç»å13æ(åè¨ã§2MB)ã®è¨æ¸¬ã§ãã
ã½ãããã³ã¯ã§Timeoutã¨ã©ã¼å¤çº
â²ã®ãã¼ã¯ã¯ã¨ã©ã¼ã表ããã¦ãã¾ãã120ç§ä»è¿ã§ã¨ã©ã¼ãå¤çºãã¦ãã¾ãããããã¯Timeoutã¨ã©ã¼ã§ããã®è¨æ¸¬ã§ã¯120ç§ä»¥ä¸ããã£ããã®ã¯ãã¨ã©ã¼ã¨ãã¦å¦çãã¦ããã®ã§ãã
ãã®120ç§ã®Timeoutã¨ã©ã¼ã¯ãå ¨ã¦ã½ãããã³ã¯ã§ãã
ãã®èæ¯ã«ã¯ãã½ãããã³ã¯ã®æºå¸¯ç¶²ã«ããã¦ã¯ãéä¿¡ã®æé©åããè¡ããã¦ãç»åãåç»ãã¡ã¤ã«ã«éå¯éå§ç¸®ãããããããã¨ãé¢ä¿ãã¦ããã¨äºæ³ããã¾ãã
(â»åèè¨äº â ãã½ãããã³ã¯ã®ãéä¿¡é度1ä½ãã®ã«ã©ã¯ãªãæããã«ã)
Timeoutã¨ã©ã¼ãçºçãã¦ããã®ã¯ã21:00ï½1:00ã®æºå¸¯ç¶²ãæãã¢ã¯ã»ã¹ãããæé帯ã§ããä»ã®æé帯ã§ã¯ãNTTãã³ã¢ã«æ¯ã¹ã¦ãã½ãããã³ã¯ã¯é常ã«é«éã§ãã
ãã¿ã¼ã³1ã®è¨æ¸¬ã ããæãåºããæ£å¸å³ãè¦ã¦ã¿ã¾ããããããããã¨ãããããªä¸å±¤æ§é ã«ãªã£ã¦ããã®ããããã¾ãã
æ®æ®µã¯ãã½ãããã³ã¯ãå§åçãªéããèªã£ã¦ããã®ã§ãããå¤ã®æ··éããæé帯ã«ãªãã¨ãTimeoutã¨ã©ã¼ãçºçãã¦ãã¾ãããããããã¢ã¯ã»ã¹æ°ã®å¢å¤§ã«ä¼´ãå§ç¸®å¦çã®è² è·å¢å¤§ã足ãå¼ã£å¼µã£ã¦ããã§ãããäºãæ¨æ¸¬ã§ãã¾ãã
ãã¿ã¼ã³2ã®è¨æ¸¬ã ããæãåºããæ£å¸å³ã¯ä»¥ä¸ã®éãã§ãã
ãã¿ã¼ã³3ã®è¨æ¸¬ã ãæãåºããæ£å¸å³ã¯ä»¥ä¸ã®éãã§ãã
å åç·ã§ã¯ãå ¨ãéããè¦ããã
次ã¯ãå
åç·ã§ã®è¨æ¸¬ã®æ£å¸å³ã§ããè¨æ¸¬å¤ã¯ãã©ã®çµã¿åããã§ããæ®ã©1ç§ä»¥ä¸ã§ãã
ãã¡ãã§ããâ²ã®ãã¼ã¯ãäºã¤ç¨è¦ãã¾ãã
AWSã®S3ã§ãã£ã¦ããæã«ã¯ãã®ãããªé
延ãçºçãã¦ãã¾ãããäºé±éã§2åã ãã§ããããå¤ãå¤ã¨è¨ã£ã¦è¯ãã§ãããã
åå¸å³ã§é ä¿¡é度å質ã®å·®ãè¦ã
ããã§ã¯ããã¿ã¼ã³1ãã3ã§ãé ä¿¡é度å質ã«å·®ãçºçãã¦ãããã©ãããè¦ã¾ãããã
åå¸å³ãä½ã£ã¦è¦ã¾ãã横軸ããã¦ã³ãã¼ãã«ããã£ãç§æ°ã縦軸ããã®ç§æ°ã§è¨æ¸¬ãããåæ°ã表ãã¾ãã
- ãã¿ã¼ã³1 ⦠ç·è²: HTML1ãã¼ã¸+ç»å(2MB)1æã®è¨æ¸¬ã§ãã
- ãã¿ã¼ã³2 ⦠ãªã¬ã³ã¸è²: HTML1ãã¼ã¸+ç»å4æ(åè¨ã§2MB)ã®è¨æ¸¬ã§ãã
- ãã¿ã¼ã³3 ⦠ãã³ã¯è²: HTML1ãã¼ã¸+ç»å13æ(åè¨ã§2MB)ã®è¨æ¸¬ã§ãã
ããã¨ãåå¸å³ã®å±±ãã»ã¼åãå½¢ã§éãªããã£ã¦ãããéããæ®ã©ç¡ããã¨ãåããã¾ãã
Rã使ã£ãçµ±è¨éã®è¦ç´
ã°ã©ãã§ã¯ãªããæ°å¤ã§è¦ãããã«ãRã使ã£ã¦ãçµ±è¨éã®è¦ç´ããã¦ã¿ãã®ãä¸ã®è¡¨ã§ãã
 | å¹³å | æ¨æºåå·® | ååä½ç¯å² | 0% | 25% | 50% | 75% | 100% | ãµã³ãã«ã®å¤§ãã |
---|---|---|---|---|---|---|---|---|---|
ãã¿ã¼ã³ 1-NTTãã³ã¢ | 20.595775 | 11.394125 | 12.96775 | 4.797 | 12.50875 | 16.9370 | 25.47650 | 71.422 | 182 |
ãã¿ã¼ã³ 1-ã½ãããã³ã¯ | 4.839278 | 10.013305 | 2.33175 | 1.406 | 2.63275 | 3.3120 | 4.96450 | 112.078 | 158 |
ãã¿ã¼ã³ 2-NTTãã³ã¢ | 20.517301 | 12.712250 | 10.29250 | 7.641 | 13.14500 | 16.5390 | 23.43750 | 97.313 | 176 |
ãã¿ã¼ã³ 2-ã½ãããã³ã¯ | 4.907903 | 11.820907 | 2.30375 | 1.500 | 2.37600 | 2.9455 | 4.67975 | 103.484 | 144 |
ãã¿ã¼ã³ 3-NTTãã³ã¢ | 21.890113 | 10.937367 | 12.45400 | 5.985 | 13.88900 | 19.7180 | 26.34300 | 63.954 | 177 |
ãã¿ã¼ã³ 3-ã½ãããã³ã¯ | 5.309378 | 9.273377 | 2.41250 | 1.718 | 2.34400 | 2.9220 | 4.75650 | 51.469 | 143 |
æ°å¤ã«æããããªãããã«ãç®±ã²ãå³ã§åã³ã°ã©ãã«ãã¦ã¿ã
ãããåãããããããã«ãç®±ã²ãå³ã«ãã¦ã¿ã¾ãã
縦軸ããã¹ããã¿ã¼ã³ã横軸ããã¦ã³ãã¼ãã®ç§æ°ã表ããã¦ãã¾ãã
å·¦å´ã®ãã²ããããå
¨ä½ã®è¨æ¸¬å¤ã®å
ãéãã§0ï½25%ã®åå¸ã示ãã¦ãã¾ãã
ç®±ã®å·¦å´ããå
¨ä½ã®è¨æ¸¬å¤ã®å
ãéãã§25ï½50%ã®åå¸ã示ãã¦ãã¾ãã
ç®±ã®å³å´ããå
¨ä½ã®è¨æ¸¬å¤ã®å
ãéãã§50ï½75%ã®åå¸ã示ãã¦ãã¾ãã
å³å´ã®ãã²ããããå
¨ä½ã®è¨æ¸¬å¤ã®å
ãéãé ã«ä¸¦ã¹ãè¨æ¸¬å¤ã®75ï½100%ã®åå¸ã示ãã¦ãã¾ãã
ç®±ãåºåãç·ããä¸å¤®å¤ãã¤ã¾ã50ãã¼ã»ã³ã¿ã¤ã«ã示ãã¾ãã
ãã®ãã²ããããç®±ãã®é·ããè¦ããã¨ã§ããã©ã¤ããææ¡ãããã¨ãã§ããã®ã§ãã
é·ããçããã°çãç¨ã«ãé ä¿¡å質ã«ãã©ã¤ãããªãã¨ããäºã«ãªãã¾ãã
ä½è«ã§ãããä»ã®é«æ ¡çã¯ãå¦ç¿è¦é ãå¤ãã£ã¦ãé«æ ¡1å¹´ã®æ°Iã§çµ±è¨å¦ãåå¼·ãã¦ãç®±ã²ãå³ã®è¦æ¹ãåå¼·ãã¦ãã¾ãã®ã§ãçãããç¥ã£ã¦ãããæ¹ãè¯ãã§ãããå½ã¨ãã¦ããçµ±è¨å¦ã®æè²ã¯ããã ãéè¦è¦ãã¦ãã¾ãã
æºå¸¯ç¶²ã®ç¹æ§ã¨å³å´ã®ãã²ããã®é¢ä¿
ãããè¦ãã¨å ¨ã¦ã®ãã¹ããã¿ã¼ã³ã§ãå³å´ã®ãã²ããã¤ã¾ããå ¨ä½ã®ä¸ã®é ã25%(éãé ã«ä¸¦ã¹ãè¨æ¸¬å¤ã®75ï½100%)ã®åå¸ã伸ã³ã¦ãã¾ãã
ã¢ãã¤ã«ãµã¤ãã®ããã©ã¼ãã³ã¹è¨æ¸¬ã®åæã§ã¯ããã®ãã²ããããåã®é¨åãã¤ã¾ããå·¦å´ã®ãã²ããã¨äºã¤ã«åºåããããç®±ããè¦ã¾ããä½æ ãã¨ããã¨ãæºå¸¯ç¶²ã®ä»çµã¿ä¸ãå¤ã®æ··éããæéã¯ãå¿ ãé 延ãçºçãã¾ãã
ãã¹ã¯ããããµã¤ã(æç·åç·)ã¨ã¢ãã¤ã«ãµã¤ã(æºå¸¯ç¶²ãç¡ç·LAN)ã®ä¸çªã®éãã¯ãæç·ã¯å¢è¨ãå¯è½ãªã®ã«å¯¾ãã¦ãç¡ç·ã¯å¢è¨ãä¸å¯è½ãªç¹ã§ããæç·ã¯ãã©ãã©ãåç·ãå¢è¨ããã°è¯ãã®ã§ãããç¡ç·ã¯é»æ³¢ã®å¨æ³¢æ°ã¨ãããæéããªè³æºãæ§ã ãªç¨éå¥ã«åºåã£ã¦ä½¿ã£ã¦ãããããå¢è¨ã¯åºæ¥ã¾ããã
ã§ããããç¡ç·ã®å ´åã¯ããã®åºå°å±ãã«ãã¼ããåå¾ãçããããã¨ã§ã1åºå°å±ããããã«ãã¼ãã人æ°ãç¸å¯¾çã«æ¸ããã¦é信容éãæ¸ããã¦ããã©ã¼ãã³ã¹ãä¸ãããã¨ã«ãªãã¾ãã
ã±ã¼ã¿ã¤Watchãã½ãããã³ã¯å«æ°ãâä¸çæå¼·âã®é信網ã¢ãã¼ã«ããã
Â
ããããå¤ã®21:00ï½1:00ã¯ãå¤ãã®äººãã¹ãã¼ããã©ã³ã§æ¥ç¶ããããããã®ããã«ã«ãã¼ã¨ãªã¢ãå°ãããã¦æ¥ç¶äººæ°ãç¸å¯¾çã«å°ãªããã¦ããåºå°å±ã®ãã£ãã·ãã£ãè¶ ãã人æ°ãæ¥ç¶ãã¦ãã¦ãã©ããã¦ãé 延ãã¦ãã¾ãã®ã§ãã
è¨ãæããã°ãé ã75ãã¼ã»ã³ã¿ã¤ã«ä»¥éã¯ãæã ã¨ãã¦ã¯ãã¾ãåºæ¥ããã¨ããªãé¨åãªã®ã§ãã
ã¾ãã½ãããã³ã¯ã«é¢ãã¦è¨ãã°ãå§ç¸®ã®ã·ã¹ãã ã®éè² è·ã«ãã£ã¦ã75ãã¼ã»ã³ã¿ã¤ã«ä»¥éã伸ã³ã¦ãããããªã®ã§ããããã¾ããæã ã«ã¯æåºããã§ãã¾ããã
ã©ããã¦ãããã®é¨åãæ¹åãããã®ã§ããã°ãç»åãæ¸ããã¾ãããã
ä»åã¯ãã¼ã¿ãæ²è¼ãã¾ãããããã¼ã¸ã®ç·å®¹éã100KB以ä¸ã«ããã°ãæ··éãã¦ããæé帯ã§ããé«éã«é ä¿¡ã§ãããã¨ãããã£ã¦ãã¾ãã
çµè«
ã¡ãã£ã¨ä»ã®èª¬æãæ¸ãã¦åãéããã¦ãã¾ãã¾ããããçµè«ããè¨ãã¨ãç»åãä¸æã«ãã¦ããåå²ãã¦ããããã©ã¼ãã³ã¹ã«ã¯å·®ãã»ã¼ããã¾ããã
ç®±ã²ãå³ãè¦ã¦é ããã°ãå¾ãã®25%ã®ãã²ãã以å¤ã¯æ®ã©å·®ããªããã¨ãåããã¾ãããããããªã»ã«ã³ãã¬ãã«ã§è¦ãã°ã確ãã«å·®ã¯ããã¨æãã¾ããããã®ã¬ãã«ã§ã®ããã©ã¼ãã³ã¹ãæ±ããã®ã§ããã°ãç»åã1æã2æã¨ãæ¸ãããæ¹ãå¹æãé«ãã¨æãã¾ãã
CSSã¹ãã©ã¤ãã«æéããããããã¯ãç»åã®ä¸ã§ããã¹ã+CSSã§ç½®ãæãããããã®ã¯ç½®ãæããä½æ¥ãããæ¹ããããã©ã¼ãã³ã¹çã«ã¯ãå¹ããã¨èãã¾ãã