《CapitalOne引领“无服务器优先”之旅的经验教训和最佳实践.pdf》由会员分享,可在线阅读,更多相关《CapitalOne引领“无服务器优先”之旅的经验教训和最佳实践.pdf(55页珍藏版)》请在三个皮匠报告上搜索。
1、APRIL 10TH,2024Lessons&Best Practices from leading the Serverless First Journey at Capital OneGeorge MaoTHE TECH OF FINTECHSenior Distinguished EngineerCapital OneWho am I?Senior Distinguished Engineerex-AWS WW Tech Leader,ServerlessGeorge MaoAgendaCHAPTER 1Why did Capital One adopt a serverless-fir
2、st approach?CHAPTER 2Lessons we learned and the launch of our center of excellenceCHAPTER 3Best practices you can use!CHAPTER 1:Why did Capital One adopt a serverless-first approach?Traditional architecturesVirtual private cloud(VPC)AWS CloudAvailability Zone 1Availability Zone 2Auto Scaling groupAu
3、to Scaling groupInstanceInstanceInstanceInstanceNAT gatewayNAT gatewayAmazon EC2Auto ScalingWhat do you need to maintain?EC2 InfrastructureNetworkingAMIsUpdates/PatchesScaling PoliciesUtilizationInfrastructure(EC2)Pre-serverless architecturesBusiness appsApplication serversContainersOperating system
4、sAWS CloudDeveloper“Run the engine”Arbitrary uniquenessUndifferentiated heavy liftingServerless architectures are usually event basedAmazon SNSAmazon S3reqsLambda functioneventAsynchronous/orderAPI GatewayLambda functioneventSynchronousDynamoDBKinesisChangesAWS Lambda serviceeventPoll-BasedServerles
5、s architecturesBusiness logicServerless compute(Lambda/Fargate)AWS CloudDeveloperAWS managedNo more burden on developersCHAPTER 2:Lessons learned and the launch of our serverless center of excellenceThere is a learning curveThe beginner serverless developer tries to write Lambda functions in the con
6、sole.You cant Debug and trace a Lambda function.What do you do?Print statements everywhere!You probably need new toolsDevelopers should transition to AWS Serverless Application Model(AWS SAM)to build/iterateAWS SAM provides two features:1.aws-sam-cliRun&Emulate Lambda,APIs,and step functionsDebug,it