ãã°ããã®éãYandex.Moneyã§ã¯ããã¹ãŠã®è£œåãå€ãã®ãã€ã¯ããµãŒãã¹ã§æ§æãããŠããã1æ¥ã«æ倧12åã®æŽæ°ããªãªãŒã¹ãããŸãã ããã«ãæ¯æããµãŒãã¹å šäœã®åŒ·åºŠ-ããŒã¯è² è·ã«ã©ãã ãèããããããå®å šããŒãžã³ããããã©ãããå®æçã«ç¢ºèªããå¿ èŠããããŸãã
ã ãããããç§ãã¡ã«ã¯æãå€æ°ã®ãœãããŠã§ã¢ãã¹ãéšéããããŸãã ãã¹ã¿ãŒã®äžã§æãæ©èœçãªå°é家ã ãã®èšäºã§ã¯ããããã®äººãäœãããã®ãã圌ããä»äºã§ã©ã®ããŒã«ã䜿çšããã®ããäŸãæããŠèª¬æããŸãã
ãã®éšéã«ã¯ãã¢ãã€ã«ããã³çµ±åãã¹ãã ãã§ãªããããã©ãŒãã³ã¹ã®ã¹ãã·ã£ãªã¹ãããŸã ããŸããããããã«ã€ããŠã¯ãŸãå¥ã®æ©äŒã§ãã
æ©èœãã¹ãã°ã«ãŒãã¯ãååæäžã«è£œåããŒã å šäœãäœæ¥ãããµãŒãã¹ã®ä¿å®æ§ããã§ãã¯ããŸãã äž»ã«æåãã§ãã¯-é »ç¹ã«ç¹°ãè¿ãããã·ããªãªã®èªåãã¹ããããã«æžã蟌ãŸããŸãã ããã«ããæ©èœãã¯ãè€éã§ç解ã§ããªãå Žåã«æè¡ãµããŒãã®çŸ©åãæãããŸãã
éšéã¯5ã€ã®é åã§æ§æãããŠããŸãã
- çµ±åãã¹ãã ãã®ã°ã«ãŒãã®ã¹ãã·ã£ãªã¹ãã¯ãã¡ã€ã³ã¹ã¯ãªãããå®çšŒåã«ç§»ãåã«ã¡ã€ã³ã¹ã¯ãªããã®å®è¡ã«ã€ããŠãªãªãŒã¹ããã§ãã¯ããèªåãã¹ããã¬ãŒã ã¯ãŒã¯ããµããŒãããŸãã ãããã®äººãã¡ã¯ãã¹ãèªååã®äž»ãªã¡ã³ããŒãªã®ã§ãä»ã®ã°ã«ãŒãã®èªåãã¹ãã®ã³ãŒãã¬ãã¥ãŒã«ãé¢äžããŠããŸãã
- ããŒããã¹ã ã ããã©ãŒãã³ã¹ãã©ãã ãåäžãŸãã¯äœäžããããç解ããããã«ãæ°ãããªãªãŒã¹ã以åã®ããŒãžã§ã³ãšæ¯èŒãããŸãã å¥ã®ã°ã«ãŒãã¯æŠéç°å¢ã§ã·ããªãªããã¹ãããŠããŸããããã¯ãã·ã¹ãã ãã©ãã ãèããããããšãã質åã«çããããã«å¿ èŠã§ãã ããžãã¹ã¯ãããŒãããŒãšã®äº€æžãéçº-ãã¯ãŒãªã¶ãŒããç解ããããã«å¿ èŠã§ãã
- ã¢ãã€ã«ãã¹ã ã ãã¢ãã€ã«ãã°ã«ãŒãã®ãã¹ã¿ãŒã¯ãã¢ãã€ã«ããã€ã¹ã§ã®ãªãªãŒã¹ã®ããã©ãŒãã³ã¹ããã§ãã¯ããŸãã ã»ãšãã©ã®å Žåãããã¯èªååãããç¹°ãè¿ãã¹ã¯ãªããã䜿çšããŠãå®éã®ããã€ã¹äžã®ãµãŒãã¹ã®ã·ããªãªããã§ãã¯ããæ°æ©èœãæåã§ãã§ãã¯ããŸãã æŽå²çã«ããã®ã°ã«ãŒãã§ã¯ãITã«å€§ããªçµéšãæããªã人ã ããžã¥ãã¢ãã¹ã¿ãŒã®å°äœã«å°ããŠããŸãã
- éè¡ãµãŒãã¹ã®ãã¹ã ã Yandex.Moneyã¯ãæŽå²çã«ãç¬èªã®è©³çŽ°ãåããåºæ¬çãªéè¡ãµãŒãã¹ãæäŸããŠãããä»ã®ã³ã³ããŒãã³ããšã¯èããç°ãªããŸãã ãã®ãããªãµãŒãã¹ãé·æéãã¹ãããå¿ èŠããããéåžžã«æ éã«ã詳现ãã€æ£ç¢ºãªææžåãéèŠã§ãããããã£ãŠããããã¯å€å žçãªãŠã©ãŒã¿ãŒãã©ãŒã«ã«åŸã£ãŠäœæãããŸãã
- æ©èœãã¹ãã ãããåºæ¬çãªæ¹åã§ãããéçºãšäžŠè¡ããŠãµãŒãã¹ã®ä¿å®æ§ããã§ãã¯ããŸãã éåžžãèªåãã¹ãã¯ãé »ç¹ã«æã§ç¢ºèªããå¿ èŠããããã®ã®ããã«ããã«æžã蟌ãŸããŸãã æ©èœ-è€éã§ç解ã§ããªãã±ãŒã¹ã§ã®æè¡ãµããŒãæ¥åã®ããã©ãŒãã³ã¹ã ãã®ã°ã«ãŒãã®ãã¹ãŠã®ãã¹ã¿ãŒã¯17ã®è£œåããŒã ã§åããŠããããããããç¬èªã®ã¹ã¯ãªãããšãµãŒãã¹ãæ åœããŠããŸãã
ããéèŠãªããšïŒéçºã©ã€ããµã€ã¯ã«ãŸãã¯ã€ã³ã¿ãŒãããã®ä»çµã¿ãç¥ãããš
å°éãµã€ãã®äœçŸãã®ç©ºåžãèŠããšããã¹ã¿ãŒã¯éçºæ¹æ³è«ãããã€ãã®ããã°ã©ãã³ã°èšèªãçç¥ããã¹ããŒã¹ã·ã£ãã«ã管çããåæã¹ãã«ãæã£ãŠããå¿ èŠããããšæããããããŸããã ç§ãã¡ã®ãã©ãã€ã ã§ã¯ããã¹ã¿ãŒãITã¢ã«ãã¡ããããç¥ã£ãŠãããããããæå³ã®ãããåèªããäœæããæ¹æ³ãç¥ã£ãŠããããšãæåŸ ããã®ãç¿æ £ã§ãã
ãã®ã¢ã«ãã¡ãããã¯ããã¹ããŠãã©ãããã®åºç€ãšã¿ãªãããšãã§ããŸããããããªããã°ãã€ã³ã¿ãŒãããã®ä»çµã¿ãçã«ç解ããããšã¯ã§ããŸããã
äžããããã¹ãèšç»ããå²ãåœãŠãããšã¯äžè¬çã§ã¯ãªããã¿ã¹ã¯å²ãåœãŠå°çšã®ãã¹ããªãŒãããããŸããã åãã¹ã¿ãŒã¯ãä»ããã¹ãããšãèªåã§ç解ããå¿ èŠããããããå人çãªè²¬ä»»ã®ã¬ãã«ã¯éåžžã«é«ããªããŸãã ãã¡ãããäŒç€Ÿã®äž»èŠãªã³ã³ããŒãã³ãã®ä»äºã«ã€ããŠã®å ±éã®ç解ã¯ããã§å€§ãã«åœ¹ç«ã¡ãŸãããæåã¯ãããžã§ã¯ããããŒãžã£ãŒãšã®ç解ã§ããªãç¶æ³ã§åªå é äœãæ確ã«ããå¿ èŠããŸã ãããŸãã
ãããã£ãŠãæ°èŠåå ¥è ã¯ãæåã®6ãæéãååããããã¿ããšã«ããŒã ãåæéšéã«ãã¹ããäŸé Œãããšããäºå®ã«åæããå¿ èŠããããŸãã
ãã®ç¡åæã®äžåšçšãã¯ãç¹å®ã®ããŒã ã§ãã£ãããšã調çããããå Žåã«ã®ã¿é€å»ã§ããŸãã ããã«ããããã¹ãŠã®ãšã©ãŒã·ããªãªãå®å šã«ãã§ãã¯ããããšã§ãæ°æéããæ°æ¥ç¯çŽã§ããŸãã ç°¡åãªäŸïŒãŠãŒã¶ãŒã¯ATMãããéãåŒãåºããŸãããçŸéã®ä»£ããã«ãäœããããŸããããŸããã§ããããšåãåããŸãã
åé¡ãç解ããããã«åå¿è ãææ¡ããå Žåã圌ã¯é ã«æµ®ããã ãã¹ãŠã®æ¯æãã·ããªãªãšãã¹ãŠã®å¯èœãªçµæãââãã§ãã¯ããããšããå§ããŸãã ãã®äººç©ãZenã®å éšæ§é ãšé¢é£ãããã¹ãŠã®ã³ã³ããŒãã³ãã®çžäºæ¥ç¶ã«ã€ããŠæ¢ã«åŠç¿ããŠããå Žåã圌ã¯ãéãåŒãåºãç¹å®ã®ããã»ã¹ãš3ã5åã®åå ã³ã³ããŒãã³ãã«éäžããããšãã§ããŸãã
æåã®1ãæã§ã¯ãåå¿è ãã¢ããªã±ãŒã·ã§ã³ã®ã¢ãŒããã¯ãã£ãREST APIãJSONã«ã€ããŠè©³ããåŠç¿ããŸãã Linuxã«è¿ã¥ããSQLã¯ãšãªèšèªãšæè»ãªéçºæ¹æ³è«ãèªåãã¹ãã«ç²ŸéããŸãã ãŸããJavaãšKotlinã®åºæ¬ãåŠã³ãŸããåŸè ã¯ãããç°¡æœã§ã³ã³ãã¯ããªæçµã³ãŒãã®ãããã§ãã»ã«ããã¹ãã«äŸ¿å©ã ãšæãããŸããã
ãšããã§ãèªåãã¹ãã¯ç§ãã¡å šå¡ã«ãã£ãŠæžãããŠããŸã-ãã¹ã¿ãŒã«ââãšã£ãŠããã°ã©ãã³ã°ãå¥ã®ææããã®ãã®ã®ããã§ããã°ã圌ã¯ãŸã ãã¬ãŒã ã¯ãŒã¯ããæ£ããé åºã§ã¡ãœãããæããããšãã§ããŸãã ãããŠãæéãçµã€ã«ã€ããŠãã¢ã«ãŽãªãºã ãšèšèªã®ç¥èãåäžããŸãã
ããã³ããšã³ããŸãã¯ããã¯ãšã³ãã«é£ã³èŸŒã
ããã¹ããšã¯ããµã€ãäžã®ãã¹ãŠã®ãã¿ã³ãã¯ãªãã¯ããããšã§ããUIããã°ããã¯ãªãã¯ããŠããã€ã§ãèŠæ±ã«å¿ããããšãã§ããŸãããšããã¢ãããŒãã¯åå¿è ã®ãã¹ã¿ãŒã®éã§éåžžã«äººæ°ããããŸãããããã¯åžžã«æ±äººæ€çŽ¢ãšãããªããã£ãªã¢ãã¹ãåçŽåãããšã¯éããŸããã ããšãã°ãã»ãšãã©ã®Yandex.MoneyãµãŒãã¹ã¯ããã³ããšã³ããšããã¯ãšã³ãã®ããŒãã§æ§æãããŠããããã¹ã¿ãŒããããã®ã«ããŽãªã«åå²ããããšã¯ã§ããŸããã
ãã¯ãããžãŒãã¹ã¿ãŒãã°ã«ãŒãåãã代ããã«ããããã補åéçºããŒã ã«å²ãåœãŠãŸããããã§ããã©ãŒã«ã¹ãåé¢ãŸãã¯èé¢ã«ç§»åã§ããŸãã ãããããããã«ããããããã®ã³ã³ããŒãã³ãã¯éè€ããããšãå€ããäž¡æ¹ã§æ©èœã§ããå¿ èŠããããŸãã
ããšãã°ãã³ã³ã¿ã¯ãã»ã³ã¿ãŒçšã®å éšããŒã«-ãã¹ãŠã®ãŠãŒã¶ãŒã³ãŒã«ã«é¢ããæ å ±ãåããWebãµãŒãã¹ããããŸãã 次ã®ãããžã§ã¯ãã§ãããŒã«ã¯æ°ããæŠèŠããŒãžãåãåããŸãããããã«ããããã±ããã¹ããŒã¿ã¹ãšSLAã³ã³ãã©ã€ã¢ã³ã¹ã®è¿œè·¡ãç°¡çŽ åãããŸãã
æ°ããããŒãžã§ã³ã§ã¯ã次ãå®è¡ããå¿ èŠããããŸããã
- å€ãããŒãžã§ã³ã«ãã£ããã¹ãŠããµããŒãããŠããããšã確èªããŠãã ããã
- User Storyãããžã§ã¯ãçšã«éçºãããã³ã³ãã©ã€ã¢ã³ã¹ãç£èŠããŸãã
äŸïŒç£èŠããåŸæ¥å¡ãç£èŠããŒãžã«ã¢ã¯ã»ã¹ãããã¥ãŒã®è²ã確èªããŸãã èµ€ããã®ãããã°ãããŒã¯ããããªãã¬ãŒã¿ãŒãå²ãåœãŠãããã¯ãªãã¯ããå°é家ã®äžè¬çãªãªã¹ããããã·ã¹ãã ã¯ãã¹ãŠã®é©åã§ç¡æãªãã®ãèªåçã«éžæããŸãã
ãã¹ãŠã®ãããžã§ã¯ãã¯ãå®è£ åŸã«ãã¹ã¿ãŒãããã»ã¹ã«æ¥ç¶ãããæè¡çãªãœãªã¥ãŒã·ã§ã³ããå§ãŸããŸãã
éåžžããã¹ãŠã¯ãã¢ããªã¹ããéçºè ããããžã§ã¯ããããŒãžã£ãŒã«ãã£ãŠæºåãããæè¡çãœãªã¥ãŒã·ã§ã³ããå§ãŸããŸãã ãã®æ±ºå®ã«ãããã©ã®ã³ã³ããŒãã³ããé¢ä¿ããããã©ã®ã³ã³ããŒãã³ãã«åŠçãè¡ãããããã³ããã¯ãšã³ããšããã³ãã§è¿œå ãŸãã¯å€æŽããå¿ èŠããããšã³ãã£ãã£ã®çš®é¡ã確å®ã«ç€ºãããŸãã
ãããžã§ã¯ãèšç»ã§ã¯ããœãªã¥ãŒã·ã§ã³ã¯éçºè ã®ã¿ã¹ã¯ã«å解ããããªãªãŒã¹æã«ãã¹ãããããšãã§ããŸãã ãã®ãããªç¬éããã¹ã¿ãŒã®æ¥ã¯æ¬¡ã®ããã«ãªããŸãã
1.ååäžã«ãçŸåšã®ã¹ããªã³ããããã®æ¥ã®ã¿ã¹ã¯ã®ãªã¹ããèªåã§äœæããŸãã ããã¯ããã°ãªã©ã®ç·æ¥äºæ ãåªå ãããJiraã®ããã°ãããŒãã䜿çšããŠè¡ãããŸãã æ®ãã®åªå é äœã¯ããããžã§ã¯ããããŒãžã£ãŒã«ãã£ãŠå²ãåœãŠãããŸãã ããã§ã®äž»ãªããšã¯ããªã¹ãå ã移åãããªã¹ããåæç»ããªãããšã§ãã
2.å®è£ ãããã¿ã¹ã¯ã®ã³ã³ããŒãã³ãããã§ãã¯ããŸããéåžžã¯ããã¯ãšã³ãããéå§ããŸããããã¯ã以åã«éçºã«èµ·åããããããã«ããŠãããã¯ãšã³ããªãã§ã¯ããã³ãã衚瀺ãããªãããã§ãã
3.äœãã確èªããã«ã¯ããã®ãã¹ãŠãã¢ã€ãã¢ã§ã©ã®ããã«æ©èœããããç¥ãå¿ èŠããããŸãã ãããã£ãŠããã¹ãããåã¡ãœããã«ã¯èª¬æïŒå ¥åãšã¯äœããåºåãšã¯äœããªã©ïŒãå¿ èŠã§ãã ããããéåžžã¯ååãªæ å ±ããªãïŒéçºè ã«ãšã£ãŠã¯æããã§ãããä»ã®äººã«ãšã£ãŠã¯åžžã«æ確ã§ã¯ãªãïŒããã®å Žåã Swaggerãšå¿çã®è¯ãååã倧ãã«åœ¹ç«ã¡ãŸãã ä»ã®äººã®å©çã®ããã«ããããŠæŽå²ã®ããã«ãç²åŸããç¥èãæè¡çãœãªã¥ãŒã·ã§ã³ã«è¿œå ããããšã¯æçšã§ãã
ã€ã³ãã©ã¹ãã©ã¯ãã£ã§åºã䜿çšãããŠããREST APIããããããé »ç¹ã«ãã¹ããããã·ããªãªã¯ãPostmanãä»ããŠéä¿¡ãããHTTPèŠæ±ã§ãã
ããŒã«ãšããã°ãç§ãã¡ã®æ¥åžžæ¥åã§ã¯ããã¹ã¿ãŒã¯æ¬¡ã®ã»ããã䜿çšããŸãã
- PostmanãŸãã¯cURL-HTTPèŠæ±ãéä¿¡ããŸãã
- SoapUIã
- ãã°ã衚瀺ããã³ã³ããŒãã³ãïŒç¹ã«grepïŒãã€ã³ã¹ããŒã«ããããã®Linuxã³ãã³ãã©ã€ã³ã¯ãæ å ±ãéžå¥ããã®ã«æé©ã§ãã ã¡ãªã¿ã«ããã£ãªã¢ã®åãã«ã¯ãããªãåºæ¬çãªã¹ãã«ã§ååã§ãã
- Oracle DBããã³PostgreSQLã¯ã©ã€ã¢ã³ã-ããŒã¿ããŒã¹å ã®ããŒã¿ã®è¡šç€ºããã³ç®¡ççšã
- ãæŠéããšãã¹ããã°ã®äž¡æ¹ã衚瀺ããããã®Kibanaã
- æåŸã«ãIntelliJ IDEAãŠãããŒãµã«ããŒã«ã¯ãèªåãã¹ãã®äœæãæåãã¹ãã«æé©ã§ããäžéšã®ååã¯ãPostmanã䜿çšãã代ããã«ããã¹ããããã¿ã€ããããã«ãããã€ããŠAPIããã¹ãããããšã奜ã¿ãŸãã
ç¹å®ã®ããŒã«ã®éžæã¯ããã¹ã¿ãŒã®å人çãªå¥œã¿ãšã¿ãŒã²ãããã¹ãäžã®ããŒã«ã®å¯çšæ§ã«äŸåããŸãã
ãšãã©ãããã¹ã察象ã®ã¢ããªã±ãŒã·ã§ã³ã®æ§æãæ·±ãæãäžããŠãããã°ã¢ãŒãã«åãæ¿ããå¿ èŠããããŸãã äž»ãªããšã¯ãå¿ èŠãªæ å ±ããã¹ãŠåéããããããã«ããã®ã¢ãŒãã®ãã©ã°ãåé€ããããšãå¿ããªãããšã§ããããã«ããããã£ã¹ã¯é åã®é床ã®äœ¿çšã«ãã£ãŠã¢ããªã±ãŒã·ã§ã³ã誀ã£ãŠåæ¢ããããšã¯ãããŸããã
éåžžãããã¯ãšã³ãéšåã®ãã¹ãã§ã¯ãå¿ èŠãªå ¥åããŒã¿ãå«ãèŠæ±ãéä¿¡ããå¿çãåä¿¡ããçµæãããã¥ã¡ã³ããšäžèŽããŠããããšã確èªããŸãã ãã®åçŽãªãã§ãŒã³ã¯ãããšãã°ãããŒã¿ããŒã¹å ã®POSTãªã¯ãšã¹ãã®çµæã®èšé²ããã§ãã¯ããå¿ èŠæ§ã«ã€ããŠã€ãŸããããšããããããŸãã ãã®ããã®æãç°¡åãªæ¹æ³ã¯ãDBMSãšãŒãžã§ã³ããä»ããŠããŒã¿ããŒã¹ã«æåã§å ¥åããããŒã¿ãæ£ããããšã確èªããããšã§ãã
ãããã£ãŠãããŒã¿ããŒã¹ïŒPostgreSQLãªã©ïŒã䜿çšããŠãµãŒããŒã«ããŒã«ã«ã§ãã°ãªã³ãããã pgadminã䜿çšããŠèŠæ±ãå®è¡ããç®çã®ããŒã¿ãéžæããå¿ èŠããããŸãã ãã¹ãŠãpgadmin GUIã§å®è¡ã§ãããããSQLèšèªãç¥ãå¿ èŠã¯ãããŸããã ãã ããSQLã¯ãšãªã®éåžžã«åºæ¬çãªæ§é ïŒSELECT *ãWHEREãORDER BYïŒãç¥ãããšã¯äŸç¶ãšããŠæãŸããããšã§ãã
ããšãã°ãããŒã¿ããŒã¹ã«ã¯10,000件ã®ã¬ã³ãŒãããããGUIã§ããŒã¿ãæ€çŽ¢ããã«ã¯æéãããããããå ŽåããããŸãã äžè¬çã«ããã¹ã¿ãŒã次ã®ããã«ã³ã³ãœãŒã«ã§ã¯ãšãªããã°ããäœæã§ãããšäŸ¿å©ã§ãã
select * from {table_name} where {table_name.column_name}='condition' order by {column_name} desc;
ä»ã®ãã¹ãŠã¯çŽ æŽãããããŒãã¹ã§ãã
ãã¹ããšçåºéã³ãã¥ãã±ãŒã·ã§ã³ã®ãã©ã³ã¹ã«ã€ããŠ
ãã¹ã¿ãŒã¯ãã¿ã¹ã¯ãéžæããã ãã§ãªããäžé£ã®ãã¹ããå®è¡ããããã«ãèªåŸæ§ãå¿ èŠãšããŸãããå¯èœãªãã¹ãŠããã§ãã¯ããããšãã®æéã®ãã©ã³ã¹ãåžžã«æ¢ãå¿ èŠããããŸãã å€ãã§ãã¯ä»ãã®ç¹å¥ãªãã©ãŒã ããããŒã¿ããã§ã«åä¿¡ããŠããå Žåãã³ã³ããŒãã³ãå ã®ãã¹ãŠã®å¯èœãªå€ãšã¹ã¯ãªããããã§ãã¯ããããšã¯æå³ããããŸããã
ããšãã°ãæååå€æ°ã®ã¿ãå ¥åãšããŠåãå ¥ããã¡ãœããããããã¹ã¯ãªãããïŒã»ãã¥ãªãã£ã«é¢ããèšèã§ïŒãŸãã¯æŽæ°å€æ°ãæž¡ãããšãã«äœãèµ·ãããã確èªããå¿ èŠããããŸãã ãã®ãããªããŒã¿ã®ãªã¹ããéåžžã«é·ãæéäœæããŠããä»ã®ã¿ã¹ã¯ãå®äºããæéã¯ãããŸããã 劥åœãªãã¹ãã®ãªã¹ããéžæããéã«ãæ¢è£œã®ãŠãŒã¶ãŒã¹ããŒãªãŒã圹ç«ã¡ãŸãã å®éãããã³ããšã³ãã¯ãã§ã«ããã€ãã®ãã©ã¡ãŒã¿ãŒã®å ¥åãå¶éããŠããããããã§ãã¯ã®ãªã¹ããå€§å¹ ã«çµã蟌ãŸããŠããŸãã
äžéšã®ã¿ã¹ã¯ã§ã¯ãæŠéã«è¿ãæ¡ä»¶ã§ã®æ€èšŒãå¿ èŠã§ããããšãã°ããã¹ãç°å¢ã§ã¯ããã¹ãŠã®ã¢ã¯ã¯ã€ã¢ã©ãŒãšæ¯æãã·ã¹ãã ãä»ããŠã«ãŒãã®æ¯æããå®å šã«æ€èšŒããããšã¯å°é£ã§ãã ãããã£ãŠããã§ãã¯ã¯ããªãããã¯ã·ã§ã³ã§è¡ãããŸããè€æ°ã®ããã³ããšã³ããã¹ãããã©ã³ãµãŒããåæããããããã¯ãŒã¯ããçŽæ¥URLã§ã®ã¿äœ¿çšå¯èœã«ãªããŸãã
ãã¹ãç°å¢ãšæ¯èŒãããšãäžéšã®ã¢ã¯ã»ã¹ããªãããããæŠéãç¶æ ã®ã·ããªãªã確èªããã®ã¯ããã»ã©äŸ¿å©ã§ã¯ãªããå®éã®ãéã䜿ããããããŸããã ãããã£ãŠãpreprodç°å¢ã§ã¯ãéãããåãå ¥ããã¹ãã®ã¿ããã¹ãããŸãã
ç§ãã¡ã®äŒç€Ÿã ãã§ãªããããŒãããŒãé¢äžãããããžã§ã¯ãã§ã¯èå³æ·±ãããšããããŸãã è¯ãäŸã¯ãYandex.Kassaãæ¯æããœãªã¥ãŒã·ã§ã³ãšããŠæ©èœããããŒãããŒã®ããŒãã¹ããã°ã©ã ã®ãµããŒãã§ãã ãã£ãã·ã£ãŒã¯ãããŒãã¹ã«é¢ããæ å ±ã圌ã«è»¢éããããšãã°ã圌ããè³Œå ¥ã®äžéšãè¿æžããããšãã§ããå¿ èŠããããŸã-ããã¯ãè²·ãæã®æ¬²æ±ãšããŒãã¹ããã°ã©ã ã®å¯èœæ§ã«äŸåããŸãã
ãã®ãããªãããžã§ã¯ãã®å šäœã®ãã€ã³ãã¯ããçåºéååãã«ãããæåããããã«ã¯å察åŽã®ç¹å®ã®è¡åãå¿ èŠã§ãã
ãã¹ã¿ãŒã®éžæã«é¢ããæåŸã®èšäºãèŠããŠãããªããéèŠãªã³ãã¥ãã±ãŒã·ã§ã³ã¹ãã«ãã€ãŸãå šå¡ãšäº€æžããèœåããããŸããã ãããŠãããã¯ã©ãã«ããªãããã«äŸ¿å©ã§ãã ç¹å®ã®æ å ±ã亀æããããŒãããŒãšã®å ±åãããžã§ã¯ãã§ã¯ãåäœãã¹ãç°å¢ãšããŒã¿èªäœãååŸããå¿ èŠããããŸãã åŸè ã¯ãã¢ãã£ãªãšã€ãã«ãŒãã®ããŒã«ã§ããå Žåãããããã®äžã«ã¯ããããã¯ããããæ¡ä»¶ä»ãã§ãµããŒããããŠããªãããŒãã¹ããã°ã©ã ãªã©ããããŸãã
ãã¹ãç°å¢ãšããŒã¿ã«å ããŠããã¯ãã«ã«ã¹ãã·ã£ãªã¹ãã®éçšäžã®ã³ãã¥ãã±ãŒã·ã§ã³ã®ããã®ã³ãã¥ãã±ãŒã·ã§ã³ãã£ãã«ïŒéåžžãããŒãããŒã®ãããªããŒãããŒã§ãããå€ãã®ããããç¬èªã®ããŒãºã«å¿ããŠäœæãããTelegramïŒãå¿ èŠã§ãã æºåäœæ¥ãå®è¡ããããšãããŒãããŒåŽã§ãã¹ããããã¡ãœããã®æºåãæŽããŸã§åŸ æ©ããŸãã
ããšãã°ã次ã®äžé£ã®ã¢ã¯ã·ã§ã³ã§æ§æãããæšæºã®æ¯æãæ¹æ³ã®æ€èšŒã«ã€ããŠããã«è©³ããèããŠã¿ãŸãããã
- ãã¹ãç°å¢ã«ã¢ã»ã³ããªãã€ã³ã¹ããŒã«ããŸãã ããã¯Jenkinsã䜿çšããŠè¡ãããšãã§ããŸããããã«ã€ããŠã¯è¿æ¥äžã«èª¬æããŸãããä»ã®ãšãããCIïŒCDããã»ã¹ã§Jenkinsã«é¢ãã次ã®èšäºãèªãããšãã§ããŸã ã
- ãã¹ãŠã®ãªã¯ãšã¹ãã¯ã«ãŒãããŒã¯ã³ã§å®è¡ããããããæ¯æããã§ãŒã³ããšã«äžæã®ããŒã¯ã³ãååŸããå¿ èŠããããŸãã ãã§ãŒã³ã®æ®µéïŒããŒã¯ã³ãååŸãããã¹ã±ããå ã§åŒãèœãšããããã€ã³ãã®æ°ãèŠæ±ãïŒã¹ãã¢ã¯ååã®éããã¹ã±ããã«Yandex.Moneyã«éä¿¡ããŸãïŒãããŒãããŒããŒãã¹ãèæ ®ããæ¯æããè¡ããŸãã
- 以äžã¯ãç¹å®ã®ããŒãããŒã®è©³çŽ°ã§ããéåžžãããŒãã¹ã«é¢ããæ å ±ã®äº€æãšãã®åŸã®ã¢ã¯ã·ã§ã³ãå«ãŸããŸãã
- åã®æ®µèœããã®ã¯ãšãªäžã«ãããŒãããŒã¯ãããã¥ã¡ã³ããžã®æºæ ã確èªããããšãéèŠã§ããåçãåãåãå¿ èŠããããŸãã éåžžãæåã®ã¹ããŒã¿ã¹ã³ãŒãïŒHTTP 200ïŒãæäœã®æåã¹ããŒã¿ã¹ãæ¯æãIDã泚æã¹ããŒã¿ã¹ãã¯ã©ã€ã¢ã³ãåŽã®æ¯æãã¹ããŒã¿ã¹ãå«ãå¿çæ¬æãå¿ èŠã§ãã ãã£ãŒã«ãã®ãªã¹ããšèš±å®¹å€ã®ç¯å²ãããã³å®è¡ãããã¢ã¯ã·ã§ã³ãšåçã®äžèŽã®äž¡æ¹ããã§ãã¯ããŸãã
- ããŒãããŒã®ããŒãã¹ããã°ã©ã ããã©ã³ã¶ã¯ã·ã§ã³ã®çµæã«é¢ããè¿œå æ å ±ã®éä¿¡ã䌎ãå Žåããã®ããŒã¿ã®é ä¿¡ã®æåã確èªããŸãã éåžžãç§ãã¡ã¯èªåã®åŽã®ãã°ãèŠãŠãã·ã¹ãã ã§æ³šæãçæãããããšãæ¯æããè¡ãããããšãªã©ã確èªããŸãã
ããžãã£ããªã·ããªãªããã§ãã¯ããåŸããã¬ãã£ããªã·ããªãªããã§ãã¯ãããŸãã ããšãã°ãããŒãã¹ããã°ã©ã ã«åå ããŠããªãã«ãŒããçµã³ä»ããŠããªã¯ãšã¹ããè©Šã¿ãŸãã ãŸãããããã¯ãŒã¯ã¿ã€ã ã¢ãŠããã·ãã¥ã¬ãŒããããªã¯ãšã¹ããžã®å¿çãåŸ æ©ãããã©ãããããã³ãªã¯ãšã¹ãã®å®äºã«å€±æããå Žåã®ãšã©ãŒã³ãŒãã確èªããããšãã§ããŸãã
ãã®ãããªäžé£ã®ã¢ã¯ã·ã§ã³ã¯ããã«èªååãããç¹°ãè¿ããã¹ããé«éåããŸãã èªåãã¹ãèªäœã¯JavaãŸãã¯Kotlinã§èšè¿°ãããŠããŸãã
äž»ãªããŒãäœã§ããããå°ããåŸã«ã€ã³ã¿ãã¥ãŒäžã«ã圌ãã¯å¿çã§ç§ã«å°ããŸããïŒããªãããªãã¯ãããå°ããŠããŸããïŒ HabrãéããŸãããããã¯ãã§ãŒã³ãç¥çµç§åŠã人工ç¥èœã«é¢ãã2çªç®ã®èšäºããããããã§äž»ããŒã«ã€ããŠèª¬æããŠããŸããã ãã®èšäºã¯ããã¹ã¿ãŒã®ç¥èãäžçš®ã®ããºããŒã®ãã©ãããã§ãããåºæ¬çãªããšãç¥ããªããšæ¬¡ã®ã¬ãã«ã«ãžã£ã³ãã§ããªãããšã説æããããšããŠããŸãã
ããŒã¿ããŒã¹ãHTTPå¿çã³ãŒããããã³Linuxã³ã³ãœãŒã«ã¯ãITæ¥çã®èšèªãææ矩ã«è©±ããããã«ããã¢ã«ãã¡ãããã®äžçš®ã§ãã ãããããªããã°ãããªãã¯äžåœäººã®éšå±ã«åº§ã£ãŠã圌ããããªãã«äœãæ±ããŠããã®ããæ¬åœã«ç解ããã®ã§ã¯ãªããããªãã«ã©ããªçš®é¡ã®çããæåŸ ãããã®ããç¥ã£ãŠããŸãã
ãããã£ãŠãæ°ãã人ã«ã¯ãã¢ã«ãã¡ãããã®ç¥èã ãã§ãªããæãè¿œå ããèœåãšãã¢ã«ãã¡ããããå®éã«çšèªããäœãæå³ããããç解ããèœåãæåŸ ãããŸãã