å ¨AWSã¨ã³ã¸ãã¢ã«æ§ããCloudWatch è¨è¨ã»éç¨ èã®å·» / CloudWatch design and operation bible
å ¨AWSã¨ã³ã¸ãã¢ã«æ§ããCloudWatch è¨è¨ã»éç¨ èã®å·» / CloudWatch design and operation bible
ã¯ããã« ãã®ãã¤ã¼ãã«çµæ§åé¿ããã£ãã®ã§ãéã«ãªããã¨ã«ããèªåã®èãããã³ãããããã¨ãã¨æ¸ãã¦ããè¨äºã¯ãã£ããããããã¦ãã¼ã¿ãã¹ããããæ³£ãããã 話ãããããããããããã«ãALB+ECSï¼Fargateï¼ã使ã£ã¦WebAPIã¨å¯¾æ¯ãã¦èª¬æãã¦ãããç¾å®ã¯ãã£ã¨è¤éã§ããã å¼ç¨ãªãã¤ã¼ããããããé¨åãªã©ã«ã¤ãã¦ãã¢ã³ãµã¼ã£ã½ããã¨ãæ¸ãã¦ããã AWSå©ç¨è²»ã¨äººä»¶è²»ã®è©± AWSä¸ã«WebAPIãæ§ç¯ããéã«ãAWSå©ç¨è²»ã®åæ¸ãã¢ããã¼ã·ã§ã³ã¨ãã¦ApiGW+Lambdaæ§æããæ¡ç¨ããããã¨ãããã確ãã«AWSå©ç¨è²»ã¯ä¸ãããApiGW+Lambdaæ§æãè¨è¨ãéç¨ããããã«ã¯AWSã«é¢ããç¥èã®ä¸ã§ãã¨ãã«å°éçãªç¥èãå¿ è¦ã«ãªãããããã£ã人æãéç¨ã¾ãã¯å¤é¨ã¸çºæ³¨ãç¶ãããã¨ã¯äººä»¶è²»ã«è·³ãè¿ã£ã¦ããã ApiGW+LambdaãWebAPIã®ããã®æ§æã¨ãã¦å¯ä¸ç¡
çããï¼ããã«ã¡ã¯ï¼æ©æ¢°å¦ç¿ã¨ã³ã¸ãã¢ã®ææ¨ï¼@asteriamï¼ã§ãï¼ ä»åã¯ååã®ã¨ã³ããªã¼ã«ç¶ãã¦ãã®å¾ç·¨ã«ãªãã¾ãï¼ tech.connehito.com ã¯ããã« å¾ç·¨ã¯åç·¨ã§ãç´¹ä»ããéã以ä¸ã®å 容ã«ãªãã¾ãï¼ å¾ç·¨ï¼SageMakerã®ãªã½ã¼ã¹ãç¨ãã¦ã¢ãã«ã®ãããã¤ï¼ãµã¼ãã³ã°ã·ã¹ãã ã®æ§ç¯ï¼ãStep Functionsã®ããã¼ã«çµã¿è¾¼ãã 話 ã¢ãã«å¦ç¿å¾ã®ä¸é£ã®æµãã§ï¼æ¨è«ãè¡ãããã«ã¢ãã«ã®ãããã¤ãã¨ã³ããã¤ã³ãã®ä½æãStep Functionsã§å®è£ ããå 容ã«ãªãã¾ãï¼ ä»åç´¹ä»ããã®ã¯ä¸å³ã®éæ ç®æã®å 容ã«ãªãã¾ãï¼ æ¤é²ã·ã¹ãã ã®ã¢ã¼ããã¯ãã£ã¼æ¦ç¥å³ ç®æ¬¡ ã¯ããã« Step Functionsã使ã£ã¦ãµã¼ãã³ã°ã·ã¹ãã ãæ§ç¯ããæ¹æ³ å¦ç¿æ¸ã¿ã¢ãã«ãå«ãã æ¨è«ã³ã³ããã®è¨å®ï¼ã¢ãã«ã®ä½æï¼ ã¨ã³ããã¤ã³ãã®æ§æãè¨å® ã¨ã³ããã¤ã³ãã®ä½æã¨ããã㤠æ©æ¢°
Amazon DynamoDB ã®ç¹æ§ ãã«ããã¼ã¸ãåã® NoSQL ãã¼ã¿ãã¼ã¹ãµã¼ãã¹ 3ã¤ã® Availability Zone ã«ä¿åãããã®ã§ä¿¡é ¼æ§ãé«ã æ§è½è¦ä»¶ã«å¿ãã¦ããã¼ãã«ãã¨ã«ã¹ã«ã¼ããããã£ãã·ãã£ãå®ç¾©ãããã£ãã·ãã£ã® Auto Scalingããªã³ããã³ããã£ãã·ãã£ã¨ãã£ãè¨å®ãå¯è½ ã¹ãã¬ã¼ã¸ã®å®¹éå¶éããªã DynamoDB ã®ãã¼ãã« DynamoDB ã«ããããã¼ãã«ã¯RDBMSã«ããããã¼ãã«ã¨æ¦å¿µãç°ãªãã¾ãã ãã¼ãã«ãä½æããéã«ãPrimary Key ãæå®ããå¿ è¦ãããã¾ãã Primary Key ã¯ãã¼ãã«ã®åé ç®ãä¸æã«èå¥ããããã«ä½¿ãã¾ããPrimary Key ã¯ãPartition Key ããã³ Sort Key ã§æ§æããã¾ãã(Sort KeyããªãPartition Keyã®ã¿ã®å ´åãããã¾ã) Item 㯠R
Amazon Web Services ããã° AWS Organizations ã«ãããçµç¹åä½ã®ãã¹ããã©ã¯ãã£ã¹ AWS ã®ã客æ§ã¯ãæ°ãããã¸ãã¹ã®ã¤ããã¼ã·ã§ã³ãçã¿åºãéã«ãè¿ éãã¤å®å ¨ã«è¡åã§ãããã¨ãæ±ãã¦ãã¾ãããã«ãã¢ã«ã¦ã³ããã¬ã¼ã ã¯ã¼ã¯ã¯ãã客æ§ã«åã£ãAWS ç°å¢ãè¨ç»ããã®ã«å½¹ç«ã¤ã¬ã¤ãã³ã¹ãæä¾ãã¾ãããã®ãã¬ã¼ã ã¯ã¼ã¯ã¯ãå¤åãããã¸ãã¹ãã¼ãºã«åããã¦ç°å¢ã®æ¡å¼µã¨é©å¿è½åãç¶æããªãããã»ãã¥ãªãã£ã®ãã¼ãºãæºããããã«è¨è¨ããã¦ãã¾ããé©åã«è¨è¨ããããã«ãã¢ã«ã¦ã³ãã® AWS ç°å¢ã®åºç¤ã¯ AWS Organizations ã§ããããã¯ãè¤æ°ã®ã¢ã«ã¦ã³ããä¸å çã«ç®¡çããã³ç®¡çã§ãã AWS ãµã¼ãã¹ã§ãã ãã®è¨äºã§ã¯ãAWSç°å¢ã®æ§ç¯ãæ¤è¨ããéã«å½¹ç«ã¤AWS ã®ãã¹ããã©ã¯ãã£ã¹ã«åºã¥ããã¢ã¼ããã¯ãã£ã«ã¤ãã¦è©³ç´°ã«èª¬æãã¾ããæ¨å¥¨ãããçµç¹
è¦ç´ ãã®ãã¯ã¤ããã¼ãã¼ã§ã¯ãAWS Well-Architected ãã¬ã¼ã ã¯ã¼ã¯ã«ã¤ãã¦èª¬æãã¾ããæ¬æ¸ã¯ãã客æ§ã AWS ç°å¢ã®è¨è¨ãæä¾ãã¡ã³ããã³ã¹ãè¡ãéã«ãã¹ããã©ã¯ãã£ã¹ãé©ç¨ã§ããããã«ããããã®ã¬ã¤ãã³ã¹ãæä¾ãã¾ããããã§ã¯ Well-Architected ãã¬ã¼ã ã¯ã¼ã¯ã®æ±ã¨ããã 6 ã¤ã®æ¦å¿µé åã«ãããä¸è¬çãªè¨è¨ã®ååã¨ãç¹å®ã®ãã¹ããã©ã¯ãã£ã¹ããã³ã¬ã¤ãã³ã¹ãç´¹ä»ãã¾ãã ã¯ããã« å®ç¾© ã¢ã¼ããã¯ã㣠ä¸è¬çãªè¨è¨ã®åå ãã¬ã¼ã ã¯ã¼ã¯ã® 6 æ¬ã®æ± éç¨ä¸ã®åªç§æ§ ã»ãã¥ãªãã£ ä¿¡é ¼æ§ ããã©ã¼ãã³ã¹å¹ç ã³ã¹ãæé©å æç¶å¯è½æ§ ã¬ãã¥ã¼ããã»ã¹ ã¾ã¨ã å¯ç¨¿è æ³¨è¨ ã客æ§ã¯ããã®ææ¸ã«è¨è¼ããã¦ããæ å ±ãç¬èªã«è©ä¾¡ãã責任ãè² ããã®ã¨ãã¾ããæ¬æ¸ã¯ã(a) æ å ±æä¾ã®ã¿ãç®çã¨ãã(b) AWS ã®ç¾è¡è£½åã¨æ £è¡ã«ã¤ãã¦èª¬æãã¦ããããã
èªåãæå±ãã¦ããä¼ç¤¾ã®ã¡ã³ãã¼ã®æè²ç¨è³æã¨ãã¦ããããªãã®è¦æ¨¡ã®ãã¼ã¿ãæ±ãæã«åæã¨ãã¦æèãã¦ãããªããã°ãããªããã¨ããã£ããã¾ã¨ããã®ã§ãå¼ç¤¾ç¹æã®è©±ã¯é¤å¤ãã¦å ¬éç¨ã«æ´çãã¦ã¿ã¾ããã 大è¦æ¨¡ãã¼ã¿å¦çãåæ£å¦çã«æ £ãã¦ãã人ã«ã¨ã£ã¦ã¯ä»æ´æ¹ãã¦è¨ããã¨ãããªãã ããã¿ãããªè©±ã°ããã ã¨æãã¾ãããæ¥æ¿ã«ãã¼ã¿ã¹ã±ã¼ã«ãå¢å¤§ãã¦ãã¾ã£ããããã¨ç°å¢ã«éçºè ã®æèã追ãä»ããªããã¨ããããã¨æãã¾ãã ãããã£ãã±ã¼ã¹ã§åèã«ã§ããããããã¾ããã å¼ç¤¾ã¯åºæ¬çã«AWSã«ãã£ã¦éç¨ããã¦ããã®ã§ãAWSãåæã«ããæ§ãªãã¼ã¯ã¼ãããµã¼ãã¹åãåºã¦ãã¾ããå¾ãå¥èªç¹ããã£ããç¡ãã£ãããã¾ãããã容赦ãã ããã 追è¨: 社å ç¨ã®è³æã®ç·¨éãªã®ã§ããªããã¤ã³ã³ããã¹ããªå 容ã ãã誤解ããããããã¾ãããããããã¯ããããRDBã®è©±ã§ã¯ããã¾ããã(é¢ä¿ç¡ãã¯ç¡ããã©) 1000ä¸ãª
ãã°ãã§ãã æ¬æ¥å¼ç¤¾ã®ç¤¾å åå¼·ä¼ã§ãAWSã¨ã³ã¸ãã¢ã®ããã®Active Directoryå ¥éãã¨ããã¿ã¤ãã«ã§Active Directory(AD)ã®åºæ¬ã¨ãAWSã«ãããADé¢é£ãµã¼ãã¹ãADã®æ§æä¾ã«ã¤ãã¦çºè¡¨ãã¾ããã ãã®éã«ä½¿ç¨ããã¹ã©ã¤ããSpeaker Deckã«å ¬éãã¾ããã®ã§ãçããããã²ã覧ãã ããã çºè¡¨å 容ã«ã¤ã㦠ã¢ã¸ã§ã³ãã«ããã¨ãããåå¼·ä¼ã§ã¯ Active Directoryã¨ã¯ AWS 㨠Active Directory AWSç°å¢ã§ã® Active Directoryæ§æä¾ ã«ã¤ãã¦ã話ãã¾ããã æéã®é½åã«ããæå¾ã®é¨åã¯è©±ãã¾ããã§ããã ADèªä½ã®ã¯ãªããAWSã§ã®Directoryãµã¼ãã¹é¢é£ã«ã¤ãã¦ã¯ç§ã®èª¬æ以å¤ã«ãå¤ãã®ãµã¤ããDevelopersIOã«è§£èª¬è¨äºãããã®ã§ããã§ã¯å¤ããèªããªãã¦ãè¯ãããªã¨æã£ã¦ã¾ãã # Act
æ¨æ¥ã®å®æãããã¨ã³ããªã¼ã«ç¶ãããAWSã®èãæ¬ ã¢ã«ã¦ã³ãã»ãã¥ãªãã£ã®ãã¼ã·ãã¯ãé¢é£ã®ã¨ã³ããªã¼ã§ãã ç§ã¯ä»ã¾ã§ããã¾ãã»ãã¥ãªãã£ã£ã¦å¥½ããªåéã§ã¯ç¡ãã£ãã§ãããã¡ããå¿ è¦æ§ã¯è§£ã£ã¦ãã¦ããã®å¯¾ççãããããèãã¦ã¯ããã®ã§ãããã©ããèªåã®ä»äºãããªããªãã¨æã£ã¦ããé¨åãããã¾ããä»åãAWSã®ã¢ã«ã¦ã³ãã»ãã¥ãªãã£æ¬ãæ¸ãã¦ãããããè ã«è½ã¡ã¾ããããããã¾ã¨ããã®ãã次ã®ãã£ã¼ãã§ãã AWSã®ã¢ã«ã¦ã³ãã»ãã¥ãªãã£æ¬æ¸ãçµãã£ã¦ãä»ã¾ã§ã»ãã¥ãªãã£ã¨ãããã®å¨è¾ºã®äºé ã好ããããªãã£ãããã®çç±ãããããã確信ã«è¿ããã®ãå¾ãããã®é åã®å¤ããã人éã§ã¯ãªãã¦ã³ã³ãã¥ã¼ã¿ã«ããããæ¹ãåãã¦ãããä»ã¾ã§è§£ã£ã¦ãªãã£ãâ Takuro SASAKIï¼ æè¡æ¸å ¸-1æ¥ç® (@dkfj) 2020å¹´3æ23æ¥ 24æé365æ¥ã§ã®èªåæ»æãã§ã¯ãé²å¾¡ã¯ï¼ æ»æè ã24æé3
ã¯ããã« ããã«ã¡ã¯ãITåºç¤é¨ã®å¤©éã§ããAWSãGCPãç¨ããã²ã¼ã ã¤ã³ãã©ãæ å½ãã¦ãã¾ãã DeNAãéç¨ãã¦ãã大åã²ã¼ã ã§ã¯ãã¹ãã¼ãã¬ã¹ãªãµã¼ãã«ã¹ãããã¤ã³ã¹ã¿ã³ã¹ã使ç¨ãã¦ãã¾ãã ã¹ãããã¤ã³ã¹ã¿ã³ã¹ã¯AWSã«ä¸æ(=shutdown)ããããã¨ããã代ããã«ãã³ã¹ããå¤§å¹ ã«æãããã¨ãã§ããã¤ã³ã¹ã¿ã³ã¹ã§ãã AWSã®ã¤ãã³ãã§è¦ãããè³æã§ã¯ãå®å¸¸çãªè² è·ã¯ãªã¶ã¼ããã¤ã³ã¹ã¿ã³ã¹ã Savings Plans ãå©ç¨ããããã«è² è·ãå¢ããé¨åã§ä¸ãä¸è½ã¨ããã¦ãåé¡ãªãç¯å²ãã¹ãããã¤ã³ã¹ã¿ã³ã¹ã§éç¨ãããã¨ãæ¨å¥¨ããã¦ããããã¾ãã ããããDeNA ã§ã¯ webãmemcachedãworkerçã®ãµã¼ãã«ããã¦ãã»ã¨ãã©ã®ãªã½ã¼ã¹ãã¹ãããã¤ã³ã¹ã¿ã³ã¹ã§éç¨ããããã§ãã¦ãµã¼ãã¹ã¯çµ¶å¯¾ã«è½ã¡ãªãèªä¿¡ãæã£ã¦ãã¾ãã å®éã« DeNA ã§ã¹ãããã¤ã³ã¹ã¿ã³ã¹ãæ¬
[éå ±ï¼] ãªã³ãã¬ãã¹ãããã©ã¤ãã¼ããããã¯ã¼ã¯ã§ã®ã¢ã¯ã»ã¹ãå¯è½ã«ï¼PrivateLink ã« Amazon S3 ã追å ããã¾ãã ã¢ãããã¼ãã«ãã£ã¦ãPrivate Link for S3ãã¤ã³ã¿ã¼ãã§ã¤ã¹åããµãã¼ãããããã¨ã«ãã£ã¦ããã®è¨äºã®ã¢ã¼ããã¯ãã£ã¯é³è åãã¾ããã大å¤åã°ããã§ã!! S3ã«ã¢ã¯ã»ã¹ããéã¯æ¥µåS3ã®APIã使ãã追å ã§AWS Transfer for SFTPã®ã³ã¹ããæã£ã¦ã§ãSFTPãã使ããªãå ´åã¯AWS Transfer for SFTPã使ãã¾ãããã ã¯ããã« ãã¯ãããããã¾ã、å è¤ã§ã。AWS S3ãå©ç¨ãããã、ã»ãã¥ãªãã£ããªã·ã¼ãéä¿¡å ã®ãã¼ãã¦ã§ã¢ã»ã½ããã¦ã§ã¢ã®é½åã§ãããªãã¯ãããã¯ã¼ã¯ã使ç¨ã§ããªãã»ä½¿ç¨ããã¨èå¼±ãªå ´åã«ã¯ãã©ã¤ãã¼ããããã¯ã¼ã¯çµç±ã§S3ã«ã¢ã¯ã»ã¹ããå¿ è¦ãããã¾ã。 ä»åã¯ï½¤ãã®è¦ä»¶ãå®ç¾ãã
AWSã«ãããå½¢å¼ææ³ã®è¨äºï¼https://lamport.azurewebsites.net/tla/formal-methods-amazon.pdfï¼ãèªãã ãç¹ã«éè¦ã ã¨æããã示åã3ã¤ãããã¨ä»¥ä¸ã®éãã ç£æ¥çã§ã¯é·å¹´å½¢å¼ææ³ã¯å¤å¤§ãªå·¥æ°ãããã¦æ¯è¼ç容æãªã³ã¼ãã®æçãæ¤è¨¼ããã¨ããã¤ã¡ã¼ã¸ããã£ãããããã¯ã¾ã£ããã®èª¤ããç¾å®ã®åé¡ã«é©ç¨å¯è½ã§ãã ã¢ãã¾ã³ã§ã¯10ã®ç¾å®ã®ã·ã¹ãã ã«é©ç¨ãã¦ããã¹ã¦ã§å¹æãå¾ããããé£è§£ãªãã°ã®çºè¦ããããæ£å½æ§ãç ç²ã«ãããã¨ãªã確信ãæã£ã¦æé©åãæ½ãã 7ã¤ã®ãã¼ã ã§TLA+ã使ç¨ãã¨ã³ã¸ãã¢ã¯2â3é±éã§å¦ç¿ãããã¨ãã§ãã 以ä¸ã¯ãèªãã§ããéä¸ã§æ¸ãã ããè¦ç¹ã AWSã§ã¯2011年以éå½¢å¼ä»æ§ã¨ã¢ãã«æ¤æ»ã使ç¨ãã¦ãã è¤éãªåæ£ã·ã¹ãã ãæ¤è¨¼ããã«ããã£ã¦ãå¾æ¥ã®ææ³ â è¨è¨ã¬ãã¥ã¼ãã³ã¼ãã¬ãã¥ã¼ãéç解æãã¹ãã¬ã¹
Serverless Microservice Patterns for AWS Serverless microservices allow us to do some pretty amazing things. This post outlines 19 common patterns that are being used in production on AWS. UPDATE: I've started the Serverless Reference Architectures Project that provides additional context and interactive architectures for some of theses patterns along with code examples to deploy them to AWS. Chec
åæ©ãªã© æè¿ãServerlessã®æèããDynamoDBã®ãã¼ãã«è¨è¨ã®ç¸è«ãåãããã¨ãå¤ããªã£ã¦ãã¦ãã¦ãPodcastã§ã話ãããã©ãã£ããå³ã¨ããç¡ãã¨èª¬æãã¥ããé åãªã®ã§ãã¾ã¨ã¾ã£ãè³æãã»ãããªã¨ãããã¨ã§ã¾ã¨ãã¦ã¿ãã cloudinfra.audio ã©ãèãã¦ãé·ç·¨å¤§ä½ã¨ã³ããªä¸å¯é¿ãªã®ã§æ°åãç¶ãã°ç¬¬äºå·»ä»¥éã«ç¶ãã¾ãâ¦ï¼ï¼ãã£ã¼ãããã¯ãå¤ãã¨é å¼µããããâ¦ï¼ï¼ æ¬å·»ã®å¯¾è±¡ã¨åæç¥è æ¬å·»ã¯DynamoDBã®ãã¼ã¿ã¢ããªã³ã°ã«ã¹ã³ã¼ããçµã£ã¦ãã¾ããDynamoDBããã³ãã¼ã¿ãã¼ã¹ã®ä¸è¬ç¨èªãªã©ã«ã¤ãã¦ã®èª¬æã¯çãã¾ãã åæç¥èã¨ãã¦ã¯ä»¥ä¸ã®ãããªãã®ã«ãªããã¨æãã¾ãã DynamoDBã®ãµã¼ãã¹ã¨ãã¦ã®æ¦è¦ãç¨èª( WCU , RCU , GSI , LSI ãªã©)ãç¥ã£ã¦ãã Hash TableãB-Tree(B+Tree)ã¨ãã£ããã¼ã¿æ§é ãã©ã
æ話ãä½ã£ã¦ãã¦ã¤ã³ãã©ãå«ããè¨è¨ã§è¿·ã£ã¦ããç®æãããã¤ãæºã¾ã£ã¦ããã®ã§ãããããããæ¹æ³ããã£ããæãã¦æ¬²ããã¨ããç¹ãããã°ã«æ¸ãã¦ããããã¨æãã¾ãã åæ ã¨ã³ã¸ãã¢ã¯åä¸äººã ããªã®ã§æ¥µåæéãæ¸ããããæ話ã¯åºåã¢ãã«ãªã®ã§ã¢ã¯ã»ã¹è¾ºãã®åçãä½ãããªãã¹ãå®ãï¼ã§ããã°ç¡æã«ï¼ããããã¶ã¤ãã¼ãã¤ã³ã¿ã¼ã³ã®äººãéçºããã®ã§è¤éã«ããããªãï¼ä¾ãã°æ話ããã¼ã«ã«ã§éçºããç°å¢ãä½ãã®ã«redisã¨ãfluentdã¨ãããããªãµã¼ãã¼ããã»ã¹ãç«ã¦ãªãã¨ç»é¢ã確èªã§ããªãã¨ãï¼ ç»åã®ç½®ãå ´æã«å°ãæ話ã¯ã¢ã¯ã»ã¹è² è·çã«appãµã¼ãã¼ã®2å°ç®ãå¿ è¦ããªï¼ãããã®ç¶æ ã«ããã¾ãã appãµã¼ãã¼ãè¤æ°å°ã«ãªãã¨ç»åãªã©ã®ã¢ãããã¼ãããããã¡ã¤ã«ã®ç½®ãå ´ãå ±éã«ããå¿ è¦ãåºãã ä¸åº¦ã¯appãµã¼ãã¼2å°ã§S3 + CloudFrontã«ãã¾ãããã転éæãé«ãããappãµã¼ãã¼
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}