1、High Performance Serverless with RustTHE BEST OF BOTH WORLDSYou Dont have to ChooseRust Performance Safety Developer ExperienceServerless No infrastructure to manage Pay as you go Deeply integrated cloud serviceYou can have the benefits of both with the right plan Introductionbenjamenpylebenjamenpyl
2、e 25-year technology veteran Developer,Architect,Manager through CTO Believer in Serverless First Prefer things compiled vs interpreted AWS Community Builder Co-founder of Pyle Cloud Technologieshttps:/Serverless Ground RulesServerless is a categorizationNothing to provision,nothing to manageCost sc
3、ales predictably with usageNo planned downtimeReady with a single API call3 Keys to Success Create Multi-Lambda projects with Cargo Using the AWS Lambda Runtime and SDK Repeatability with Infrastructure as Code1.Multi-Lambda Project with CargoORGANIZED TO EXTEND AND DESIGNED TO PROMOTE REUSELambda I
4、solationRecommended Lambda API Layout 1 Lambda per each HTTP Verb(GET|PUT|POST|DELETE)1 Lambda that handles publishing change 1 Lambda for responding to external changeWhy?Multi-Lambda projects create isolation.That isolation reduces risk when introducing new features.BUT it creates challenges when
5、thinking about code reuse.Typical Lambda ProjectCargo Manages Multiple Lambda ProjectsBuilding a Shared LibraryRust shared libraries are perfect for common Lambda API functionality AWS Client building Entity models with core business logic Data Transfer Object models for transit Common error structs
6、Building a Shared Library Add the Package details Mark project as lib Include required dependencies2.Using the Lambda Runtime and SDKBUILD WITH PROJECTS DESIGNED TO HELP YOU GET THE MOST OUT OF AWSAWS Lambda Runtime and AWS SDK for RustAWS Lambda Runtime for Rust Opensource project Tower Service Com