ã¹ã©ã¤ã
ãã¤ã¯ããµã¼ãã¹ã§ãâ¨ä¸æ©å
è¡ãImmutable Infrastructureãç®æãã from sho kisaragi
www.slideshare.net
çºè¡¨è ã®ããã°
èªå·±ç´¹ä»
- ããã£ãã
- ãããããã®ã¢ã¤ã³ã³ã¨ããã®ååã§ããã«æ¥ãããã ã
ä»åã®çºè¡¨ã«ã¤ãã¦
- ç´¹ä»ãã¼ã¸ãä»ã®äººã¨æ¯ã¹ã¦ãããã
- è²ã 訳ãã£ã¦ã¹ãã³ãµã¼ãããã¨ã«ãªã£ã¦ä¼ç¤¾åãåºããªã
- æ½è±¡çãªè©±ã°ããã«ãªã£ã¡ãããã¨ã«ãªã
- æå¾ ã¨éãããã£ãããææªã ã£ããã¨è¨ã£ã¦ãã ãã
ä»æ¥ã®å 容
- æããã«äººãå¼ã³ããã¿ã¤ãã«
- ä»æ¥ã®çºè¡¨ã®ä¸»ä½ã¯ãã¤ã¯ããµã¼ãã¹ã§ã¯ãªãSevice Oriented Architecture(SOA)ã®è©±
Immutable infrastructure
- æ¢åã®ãã®ã¯ãã®ã¾ã¾ã«ãã¦ããã¦ãæ°ãããã®ã¯ä½¿ãæ¨ã¦ã§ããããã«ããã
- æ¥æ¬ã ãããæµè¡ã£ã¦ããªã
Blue Green Deployment
- æ°ãããã®ã¯Greenã«å ¥ããã
- ããç¨åº¦æã£ããåãæ¿ããã°ç°¡åã ãã
- å ãã¿ã®ããã°ã¯æè¿ã¯çµµãå¤ãã£ã¦ã
Issues
- ãããç¾å®ã¯æ§ã ãªåé¡ããã
1. Stateless and stateful services
- Statelessãªãµã¼ãã¹ã¯ãæ å ±ãç¡ããªã£ã¦ãè¯ãï¼åé¡ãªãï¼
- DBãµã¼ãã¼ã¯ã©ãããã®ãï¼
- ããç¨åº¦ã®æ´æ°ãæ¢ããã®ã
- DBã¯å¥ã®æ¹æ³ã«ããï¼
- åç´ãªã·ã¹ãã æ§æãªãã¦ç¡ã
2. Complex System
- ãµã¼ãã¼ã®ããåããè¤éããã
- éè¡ã®ãµã¼ãã¼ãä¸åº¦è¦ã¦ã¿ãã¨è¯ã
- éãéè¡ã¯ãã£ã±ãåéãã¦ãã
- ä»ãªãä¸è¡åã®ã·ã¹ãã æ§æãè¦ãã
- 交æããã¨ãã®å½±é¿åº¦ãææ¡ã§ããªã
Microsevices
- 2014å¹´3æã«æå±
- James Lewisãæå±ãã¦ããããMartin Fowlerã®ããã°ã§æ¸ãã¦ãã
ç¹æ§
- ãã£ã±ãç¹å¾´ããã
- ã³ã³ãã¼ãã³ãå
- ããç¨åº¦ã®å¤§ããã«åé¢å
- ã³ã³ãã¼ãã³ããè¤æ°
- ãããã¯ãï¼ããã¸ã§ã¯ãã§ã¯ãªãï¼ã¨ãã¦æä¾
- ããã¸ã§ã¯ãã®ããã«ã1åä½ã£ã¦çµããã§ã¯ãªã
- éçºãã人ã責任ããã£ã¦éç¨ãç¶ãã
- ã¹ãã¼ãã¨ã³ããã¤ã³ã
- ã³ã³ãã¼ãã³ããç°¡åãªæé ã§çµã³ã¤ãã
- RESTã使ãï¼åæï¼
- Message Queueingï¼éåæï¼
- åæ£ãã¦çµ±æ²»ãã
- èªåéã§è²¬ä»»ããã£ã¦ç®¡çãã
ã³ã³ãã¼ãã³ã
- å½¹å²åæ
ã¨ã¤ã³ã¿ã¼ãã§ã¼ã¹ã®æ確å
- æ確ã«ãªã£ã¦ããªãã¨ããã®ã³ã³ãã¼ãã³ãã®ä½¿ãæ¹ãåãããªã
- æ´»æ§ä¿å®ã®ä»çµã¿ä½ã
- ã¡ã¢ãªã¯ã³ã³ãã¼ãã³ãã®ä¸ã¤
- ãã¶ã¼ãã¼ãã«æãé çªã決ã¾ã£ã¦ãã
- ã¡ã¢ãªãå¤ããã°ãã¡ã¢ãªã®ãµã¤ãºãä¸ãããã
- ã¤ã³ã¿ã¼ãã§ã¼ã¹ã¯å¤ãã£ã¦ããªã
- ã¤ã³ã¿ã¼ãã§ã¼ã¹ãæ確ã§ãªãã¨ãããªãã¨ã¯ã§ããªã
- ã³ã³ãã¼ãã³ãã使ã人ã¯å¤æ´ãç¥ããªãã¦è¯ã
- ãæ©è½ãåæ¸ããããããã¸ãã¯ãå¤ãã£ããã¯ãã¡
- ã³ã³ãã¼ãã³ãåããã¨ãã³ã³ãã¼ãã³ãåä½ã§åºåããã®ã§ãã³ã³ãã¼ãã³ãæ¯ã«åãæ¿ãããã
- ãã¤ã¯ããµã¼ãã¹åããã¦ããã°ãã¹ãã¼ãã¬ã¹ãªãµã¼ãã¼ã«ãã¤ã³ã¿ã¼ãã§ã¼ã¹ãå¤ãããªãä¿è¨¼ãããã°ãé©ç¨ã§ããâ¦ã¯ã
Microservicesãå§ãã¦ã¿ããâ¦ã©ããã£ã¦ï¼
- æ¥æ¬ã¯æ¢ã«ãã¤ã¯ããµã¼ãã¹ããããããªã¨ããã°ãããäºä¾ã¨ãã¦è¼ã£ã¦ãã
- 欧米ã®ç´¹ä»ã¯ããããããªã
åéã«ã¯SOAããã
- SOAã®ã³ã³ã»ãããã ãããä¸ç·
- äºä¾ããã
- SOAã®äºä¾ã使ãã°ãMicroservicesã«ã使ããã®ã§ã¯ãªãã
- å¤å½ã§ã¯SOAã®è©±é¡ãæ´æ°ããç¶ãã¦ãã
ã¢ããªã±ã¼ã·ã§ã³ããã³ãã¨ã³ã
- ã¨ã³ãã¦ã¼ã¶ã¼ã¨ã®å¯¾è©±é¨å
- ããããªã©ããã³ã¼ã«ãããããã»ã¹
- 人ã¨ãããã°ã©ã ã®å¢çé¨å
ãµã¼ãã¹
- Microserviceã®ã³ã³ãã¼ãã³ãã¨å義
- è¦ç´
- ç®çãæ©è½ãå¶ç´ãå©ç¨æ³ãªã©ã®ä»æ§
- ä»æ§ã¯è¨èªã«åºã¥ããªãã¦ãè¯ã
- ã¤ã³ã¿ãã§ã¼ã¹
- å®è£
- ãã¸ãã¹ãã¸ãã¯
- ãã¼ã¿
ãµã¼ãã¹ã¬ãã¸ããª
- æä¾ããã¦ãããµã¼ãã¹ã®æ å ±ãéç´
- 使ã人ãåããããã«
ãµã¼ãã¹BUS
- æ¥ç¶æ§ãæè¡ãéä¿¡æ¦å¿µã®æ··å¨
- æè¡çãªãµã¼ãã¹
- åã ã®ãµã¼ãã¹ãBUSãéãã¦ã³ãã¥ãã±ã¼ã·ã§ã³ããã
SOAã®ç®ç
- ã·ã¹ãã ã¨ã½ããã¦ã§ã¢ã¢ã¼ããã¯ãã£ã®åå²
SOAã¨ãã¤ã¯ããµã¼ãã¹ã®æ¯è¼
- SOAã¯éä¸ããã¤ã¯ããµã¼ãã¹ã¯åæ£
- SOAã¯éä¸âåæ£ç®¡çããã¤ã¯ããµã¼ãã¹ã¯åæ£ç®¡ç
- SOAã¯å¤§ä¼æ¥åãããããã¦ã³ããã¤ã¯ããµã¼ãã¹ã¯ä¸ä¼æ¥åãããã ã¢ãã
- ä¼æ¥ã®è¦æ¨¡ãä¼æ¥ã®é¢¨åã«åããã¦é©ç¨ãããã¨ã大å
SOAãã¼ãããã
- åºç¤æ®µéï¼ä¿å®æ§ã®åä¸
- ãããã¯ã¼ã¯åæ´åï¼æè»æ§ã®åä¸
- ããã»ã¹å¶å¾¡æ®µéï¼ä¿ææ§ã®åä¸
åºç¤æ®µé
- 2層ã¨ãã¼ã¿å ±æ
- ã¨ã³ã¿ã¼ãã©ã¤ãºå±¤ãåºæ¬å±¤
- ã¨ã³ã¿ã¼ãã©ã¤ãºå±¤â¦ECã¢ããªã¨çºæ³¨ã¢ããª
- åºæ¬å±¤â¦ä¼å¡ç®¡çãå¨åº«ç®¡çãå注管ç
- ä¼æ¥ããã
ãããã¯ã¼ã¯å段é
ã«ãã»ã«å
- ã¨ã³ã¿ã¼ãã©ã¤ãºå±¤ã¨åºæ¬å±¤ã®éã«ä¸å
層ãä½ã£ã¦ã«ãã»ã«åãã
- TO PHASE COMMITãã¦ã¯ãããªã
ãã¯ããã¸ã²ã¼ãã¦ã§ã¤
- ECãµã¤ããé éã·ã¹ãã ãB2Bãã¼ã¿ã«ã¨å¥ã ã®å ¥åããã£ã¦ãä¸å 層ãéãã¦åºæ¬å±¤ã«è¡ã
ä¸å 層ã使ããããã«ããã¨
- ãã¼ã¿ã®æ¡å¼µ
- å¼ãç¶ãã ã¢ãã«ãå¤æ´ãããã¬ã¬ã·ã¼ã¢ããªã±ã¼ã·ã§ã³ã®ãã¼ã¿ã¢ãã«ãæ¡å¼µ
- ããã±ã¼ã¸ã«å¯¾ãã¦æ©è½ãæ¡å¼µãã
- æ¢åã®ãããã³ã«ãç¶æãæ°ããªã¯ã©ã¤ã¢ã³ãæ©è½ã追å
ããã»ã¹ã®å¶å¾¡
- ããã»ã¹ã®ã«ãã»ã«å
- ECãµã¤ãâäºç´ããã»ã¹âä¼å¡ãå注ã»å¨åº«ã®ä¸å 層âå注ãå¨åº«
- åç´å
- ãããã³ã«ãè¦ããªããªã£ã¦ãããä¸å 層ããªããã¦ãã
ä¸å 層ã®èãæ¹
- è¤æ°ã®ããã»ã¹ãå©ç¨ããå ´åã«ä¸å 層ãä½ã
- ããã»ã¹ã®ä¸å¿å
ããã»ã¹ã®ä¸å¿å
- ãªãããã»ã¹åãããã®ã
- ç°¡åã«ããã»ã¹ãçµã¿åããã¦æ°ãããµã¼ãã¹ãæä¾ããããã
- ãµã¼ãã¹ãUIãããã°ãããã»ã¹ãä½ãã°ç°¡åã«ãªã
- ã»ãã·ã§ã³ãé·æéç¶æããããã«ããã
summary
- ãµã¼ãã¹åï¼ççµåâå½±é¿ã®æ¥µå°å
- é©åå¯è½ãªæè¡ã®é¸æ
- æ°ãããã®ã¨å¤ããã®ãçµã¿åããã
- æ°ãããã®ãå ¨ã¦è¯ãã¨ã¯éããªã
- å¤ããã®ãæªãã¨ãéããªã
- è»è¼ªã®åçºæã¯ããªã
- åå©ç¨ããã
- Re-usable But Re-cycle
- ã¯ããããåå©ç¨ãããã¨èãããã®ã¨ããããã使ããã¯éã
- æµè¡ã«æµãããªãããã«ããã
- SOAããã£ã¨ç¥ããã人ã¯ãSOAå¤§å ¨ããèªãã
SOAå¤§å ¨ ãµã¼ãã¹æåã¢ã¼ããã¯ãã£å°å ¥ã»è¨è¨ã»æ§ç¯ã®æé
- ä½è : ã«ã¼ã«ã»ãã³ã¯,ãã£ã«ã¯ã»ã¹ã©ã,å±±ä¸çæ¾,ãã£ã«ã¯ã»ã¯ã©ããã£ãã¯
- åºç社/ã¡ã¼ã«ã¼: æ¥çµBP社
- çºå£²æ¥: 2005/11/23
- ã¡ãã£ã¢: åè¡æ¬
- è³¼å ¥: 4人 ã¯ãªãã¯: 37å
- ãã®ååãå«ãããã° (22件) ãè¦ã
ææ³
- ãã¤ã¯ããµã¼ãã¹ã§ã¯ãªãSOAã®è©±ã§ããããããã楽ããã§èããã¨ãã§ãã¾ãã
- ããã¤ã¯ããµã¼ãã¹ã¨SOAã£ã¦ä½ãéãã®ï¼ãã¨èãããã¨è¨èã«è©°ã¾ã£ã¦ãã¾ããããè ã«è½ã¡ã説æã§ãããããã£ãã§ã
- ã¡ã¢ãªã®è©±ã¨ãåãããããã£ãã§ã
- SOAã®ãã¼ããããã¨ãRe-usableã®é¨åã¨ããè¨è¨ããã£ããã¨èãããã¨ã大åã ã¨æ¹ãã¦æããã»ãã·ã§ã³ã§ãã