[{"data":1,"prerenderedAt":403},["ShallowReactive",2],{"content-svc-lambda-guides-effectively-running-java-on-serverless-powertuning":3},{"markdown":4,"frontMatterAttributes":5,"bodyRaw":24,"menu":25,"menuType":394,"isCollapseableMenu":28,"nextDocItem":179,"previousDocItem":155,"contributorPaths":395,"contentName":402,"slug":178,"readingTime":53},"\u003Cp>\u003Ca href=\"https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Foperatorguide\u002Fprofile-functions.html\">AWS Lambda Power Tuning\u003C\u002Fa> is an efficient way\nto tune Lambda functions for cost and performance.\nIt is a great tool that can help find optimal balance \nbetween cost and performance, based on specific optimization goals. This is a free, open-source tool that is available \nat \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Falexcasalboni\u002Faws-lambda-power-tuning\">GitHub\u003C\u002Fa>. \u003C\u002Fp>\n\u003Cp>The tool invokes a Lambda function multiple times under different memory configurations, \nand builds a visual representation of the impact on performance and cost.\u003C\u002Fp>\n\u003Cp>\u003Cimg src=\"\u002Fassets\u002Fexternal\u002Fservice\u002Flambda\u002Fguides\u002Feffectively-running-java-on-serverless\u002Fassets\u002Fpowertuning.png\" alt=\"PowerTuning\">\u003C\u002Fp>\n\u003Cp>Using Power Tuning tool early during the development cycle will set the correct expectation on memory and performance\nfor Lambda functions. \nThis is much more important for Java-based Lambda functions because Java-based functions tend to use more memory\ncompared to other runtimes. \nSetting up a memory configuration of 128MB or 256MB will result is poor behavior from the \nbeginning.\nUse this tool to find the correct memory configuration for your Lambda functions.\u003C\u002Fp>\n",{"title":6,"order":7,"authors":8,"youtubeVideoID":11,"callout":12,"resources":16},"Lambda Power tuning ",6,[9,10],"Lavanya Tangutur","Dhiraj Mahapatro","z8wGSykEauI",{"title":13,"description":14,"link":15},"Watch the video","This video covers a variety of AWS Lambda performance and cost optimization techniques including use of Power tuning.","https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=z8wGSykEauI",[17,21],{"link":18,"text":19,"type":20},"https:\u002F\u002Faws.amazon.com\u002Fgetting-started\u002Fhands-on\u002Fset-up-shared-database-connection-amazon-rds-proxy\u002F","Shared DB connections with RDS Proxy","user guide",{"link":22,"type":20,"text":23},"https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonRDS\u002Flatest\u002FAuroraUserGuide\u002Frds-proxy.html","RDS Proxy","[AWS Lambda Power Tuning](https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Foperatorguide\u002Fprofile-functions.html) is an efficient way\nto tune Lambda functions for cost and performance.\nIt is a great tool that can help find optimal balance \nbetween cost and performance, based on specific optimization goals. This is a free, open-source tool that is available \nat [GitHub](https:\u002F\u002Fgithub.com\u002Falexcasalboni\u002Faws-lambda-power-tuning). \n\nThe tool invokes a Lambda function multiple times under different memory configurations, \nand builds a visual representation of the impact on performance and cost.\n\n![PowerTuning](\u002Fassets\u002Fexternal\u002Fservice\u002Flambda\u002Fguides\u002Feffectively-running-java-on-serverless\u002Fassets\u002Fpowertuning.png)\n\nUsing Power Tuning tool early during the development cycle will set the correct expectation on memory and performance\nfor Lambda functions. \nThis is much more important for Java-based Lambda functions because Java-based functions tend to use more memory\ncompared to other runtimes. \nSetting up a memory configuration of 128MB or 256MB will result is poor behavior from the \nbeginning.\nUse this tool to find the correct memory configuration for your Lambda functions.\n",[26,46,72,189,242,299,315,354,376],{"title":27,"collapsible":28,"isCollapsed":29,"content":30},"Introduction",false,true,[31],{"title":32,"order":33,"authors":34,"callout":35,"prerequisite":39,"time":42,"path":43,"id":44,"link":45},"Getting Started",1,[10],{"title":36,"description":37,"link":38},"Watch this video","This Devoxx Belgium 2023 presentation shows effectively running Java on Serverless","https:\u002F\u002Fyoutu.be\u002Fu3tgOE8qFjI?t=5549",[40,41],"Understanding of Java","Understanding of AWS Lambda","2 min","1-introduction","1-introduction.md","\u002Fcontent\u002Fservice\u002Flambda\u002Fguides\u002Feffectively-running-java-on-serverless\u002F1-introduction",{"title":47,"collapsible":28,"isCollapsed":29,"content":48},"History",[49,57,64],{"title":50,"order":51,"authors":52,"time":53,"path":54,"id":55,"link":56},"Evolution of Java",3,[10],"1 min","history","history.md","\u002Fcontent\u002Fservice\u002Flambda\u002Fguides\u002Feffectively-running-java-on-serverless\u002Fhistory",{"title":58,"order":59,"authors":60,"time":42,"path":61,"id":62,"link":63},"Evolution of Compute",4,[10],"compute","compute.md","\u002Fcontent\u002Fservice\u002Flambda\u002Fguides\u002Feffectively-running-java-on-serverless\u002Fcompute",{"title":65,"order":66,"authors":67,"time":42,"path":69,"id":70,"link":71},"Challenges",5,[10,68],"Maximilian Schellhorn","challenge","challenge.md","\u002Fcontent\u002Fservice\u002Flambda\u002Fguides\u002Feffectively-running-java-on-serverless\u002Fchallenge",{"title":73,"collapsible":28,"isCollapsed":28,"content":74},"Best Practices",[75,92,102,108,120,137,155,170,179],{"title":76,"order":7,"youtubeVideoID":77,"authors":78,"callout":80,"resources":83,"time":88,"path":89,"id":90,"link":91},"Lambda Snapstart","ZbnAithBNYY",[79,10],"Vipan Kumar",{"title":36,"description":81,"link":82},"This serverless office hours session dives deeper into Lambda SnapStart.","https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=Y5b8_KToeDY",[84],{"link":85,"text":86,"type":87},"https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=IIKe2dx9Ag0","Spring IO (Barcelona)","video","8 min","snapstart","snapstart.md","\u002Fcontent\u002Fservice\u002Flambda\u002Fguides\u002Feffectively-running-java-on-serverless\u002Fsnapstart",{"title":93,"order":7,"authors":94,"callout":95,"time":53,"path":99,"id":100,"link":101},"Tiered Compilation",[79],{"title":96,"description":97,"link":98},"Read this blog","This AWS blog explains Tiered compilation in details","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fincreasing-performance-of-java-aws-lambda-functions-using-tiered-compilation\u002F","tiered-compilation","tiered-compilation.md","\u002Fcontent\u002Fservice\u002Flambda\u002Fguides\u002Feffectively-running-java-on-serverless\u002Ftiered-compilation",{"title":103,"order":7,"authors":104,"time":53,"path":105,"id":106,"link":107},"Utilize initialization phase",[10],"init-heavy-lifting","init-heavy-lifting.md","\u002Fcontent\u002Fservice\u002Flambda\u002Fguides\u002Feffectively-running-java-on-serverless\u002Finit-heavy-lifting",{"title":109,"order":7,"authors":110,"youtubeVideoID":112,"resources":113,"time":116,"path":117,"id":118,"link":119},"Using RDS Proxy",[111,10],"Sonali Jena","ZQOqmMn_8jw",[114,115],{"link":18,"text":19,"type":20},{"link":22,"type":20,"text":23},"4 min","rds-proxy","rds-proxy.md","\u002Fcontent\u002Fservice\u002Flambda\u002Fguides\u002Feffectively-running-java-on-serverless\u002Frds-proxy",{"title":121,"order":7,"authors":122,"callout":123,"prerequisite":127,"resources":129,"time":42,"path":134,"id":135,"link":136},"Choice of HTTP Clients",[79,10],{"title":124,"description":125,"link":126},"Read this Blog","This blog explains how AWS CRT HTTP Client offers faster startup time and small memory footprint","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fdeveloper\u002Fannouncing-availability-of-the-aws-crt-http-client-in-the-aws-sdk-for-java-2-x\u002F",[128],"Before moving on to HTTP clients, the first and foremost requirement to improve performance in Lambda functions is to upgrade from AWS SDK Java v1 to AWS SDK Java v2 as soon as possible. Version 2 of the AWS SDK was released in Nov 2018 with a lot of performance upgrades.",[130],{"link":131,"type":132,"text":133},"https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fdeveloper\u002Faws-sdk-for-java-2-x-released\u002F","blog","AWS SDK for Java v2","http-clients","http-clients.md","\u002Fcontent\u002Fservice\u002Flambda\u002Fguides\u002Feffectively-running-java-on-serverless\u002Fhttp-clients",{"title":138,"order":7,"authors":139,"youtubeVideoID":140,"resources":141,"time":116,"path":152,"id":153,"link":154},"Hexagonal Architecture",[79],"kRFg6fkVChQ",[142,146,149],{"link":143,"text":144,"type":145},"https:\u002F\u002Fdocs.aws.amazon.com\u002Fprescriptive-guidance\u002Flatest\u002Fhexagonal-architectures\u002Fwelcome.html","Hexagonal architecture","guidance",{"link":147,"text":148,"type":132},"https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fdeveloping-portable-aws-lambda-functions\u002F","Portable Lambda functions",{"link":150,"type":132,"text":151},"https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fdeveloping-evolutionary-architecture-with-aws-lambda\u002F","Building evolutionary architecture on AWS Lambda","hexagonal","hexagonal.md","\u002Fcontent\u002Fservice\u002Flambda\u002Fguides\u002Feffectively-running-java-on-serverless\u002Fhexagonal",{"title":156,"order":7,"authors":157,"youtubeVideoID":158,"resources":159,"time":42,"path":167,"id":168,"link":169},"Powertools for AWS Lambda",[9],"dH2GP6Lydj8",[160,164],{"link":161,"text":162,"type":163},"https:\u002F\u002Fgithub.com\u002Faws-powertools\u002Fpowertools-lambda-java","Powertools for AWS Lambda (Java)","github",{"link":165,"type":132,"text":166},"https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fopensource\u002Fsimplifying-serverless-best-practices-with-aws-lambda-powertools-java\u002F","Best practices with Powertools","powertools","powertools.md","\u002Fcontent\u002Fservice\u002Flambda\u002Fguides\u002Feffectively-running-java-on-serverless\u002Fpowertools",{"title":6,"order":7,"authors":171,"youtubeVideoID":11,"callout":172,"resources":173,"time":53,"path":176,"id":177,"link":178},[9,10],{"title":13,"description":14,"link":15},[174,175],{"link":18,"text":19,"type":20},{"link":22,"type":20,"text":23},"powertuning","powertuning.md","\u002Fcontent\u002Fservice\u002Flambda\u002Fguides\u002Feffectively-running-java-on-serverless\u002Fpowertuning",{"title":180,"order":7,"authors":181,"resources":182,"time":42,"path":186,"id":187,"link":188},"Using Graviton2",[10],[183],{"link":184,"text":185,"type":132},"https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fmigrating-aws-lambda-functions-to-arm-based-aws-graviton2-processors\u002F","Using Arm-based Graviton2 processors","graviton","graviton.md","\u002Fcontent\u002Fservice\u002Flambda\u002Fguides\u002Feffectively-running-java-on-serverless\u002Fgraviton",{"title":190,"collapsible":28,"isCollapsed":29,"content":191},"Java frameworks",[192,207,216,232],{"title":193,"order":194,"authors":195,"resources":196,"time":42,"path":204,"id":205,"link":206},"Micronaut",7,[9,10],[197,201],{"link":198,"text":199,"type":200},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-java-frameworks-samples\u002Ftree\u002Fmain","Serverless Java Frameworks","GitHub",{"link":202,"text":203,"type":200},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapigw-lambda-rds-snapstart","Micronaut with RDS","micronaut","micronaut.md","\u002Fcontent\u002Fservice\u002Flambda\u002Fguides\u002Feffectively-running-java-on-serverless\u002Fmicronaut",{"title":208,"order":194,"authors":209,"resources":210,"time":42,"path":213,"id":214,"link":215},"Quarkus",[9,10],[211],{"link":198,"text":212,"type":200},"Quarkus sample application","quarkus","quarkus.md","\u002Fcontent\u002Fservice\u002Flambda\u002Fguides\u002Feffectively-running-java-on-serverless\u002Fquarkus",{"title":217,"order":194,"authors":218,"resources":219,"time":116,"path":229,"id":230,"link":231},"Spring",[9,68],[220,221,225],{"link":198,"text":212,"type":200},{"link":222,"text":223,"type":224},"https:\u002F\u002Fcatalog.workshops.aws\u002Fjava-on-aws-lambda\u002Fen-US","Java on AWS Lambda","workshop",{"link":226,"text":227,"type":228},"https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fdevops\u002Fdeveloping-with-java-and-spring-boot-using-amazon-codewhisperer\u002F","Build Spring Boot using Amazon CodeWhisperer","Blog","springboot","springboot.md","\u002Fcontent\u002Fservice\u002Flambda\u002Fguides\u002Feffectively-running-java-on-serverless\u002Fspringboot",{"title":233,"order":194,"authors":234,"resources":235,"time":42,"path":239,"id":240,"link":241},"GraalVM Native Image",[9,10],[236,238],{"link":198,"text":237,"type":200},"GraalVM sample application",{"link":222,"text":223,"type":224},"graalvm","graalvm.md","\u002Fcontent\u002Fservice\u002Flambda\u002Fguides\u002Feffectively-running-java-on-serverless\u002Fgraalvm",{"title":243,"collapsible":28,"isCollapsed":29,"content":244},"Testing a Java application",[245,262,271,281,290],{"title":246,"order":247,"authors":248,"callout":250,"resources":254,"time":258,"path":259,"id":260,"link":261},"Testing Serverless",8,[249],"Lorenzo Micheli",{"title":251,"description":252,"link":253},"Read the Serverless testing guide","This guide dives deeper into Serverless testing","https:\u002F\u002Fserverlessland.com\u002Ftesting",[255],{"link":256,"text":257,"type":200},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-test-samples\u002Ftree\u002Fmain\u002Fjava-test-samples","Serverless Java test samples","3 min","testing","testing.md","\u002Fcontent\u002Fservice\u002Flambda\u002Fguides\u002Feffectively-running-java-on-serverless\u002Ftesting",{"title":263,"order":247,"authors":264,"callout":265,"resources":266,"time":116,"path":268,"id":269,"link":270},"Unit Testing",[249],{"title":251,"description":252,"link":253},[267],{"link":256,"text":257,"type":200},"unit","unit.md","\u002Fcontent\u002Fservice\u002Flambda\u002Fguides\u002Feffectively-running-java-on-serverless\u002Funit",{"title":272,"order":247,"authors":273,"callout":274,"resources":275,"time":277,"path":278,"id":279,"link":280},"Integration Testing",[249,10],{"title":251,"description":252,"link":253},[276],{"link":256,"text":257,"type":200},"5 min","integration","integration.md","\u002Fcontent\u002Fservice\u002Flambda\u002Fguides\u002Feffectively-running-java-on-serverless\u002Fintegration",{"title":282,"order":247,"authors":283,"callout":284,"resources":285,"time":258,"path":287,"id":288,"link":289},"Functional Testing",[249,10],{"title":251,"description":252,"link":253},[286],{"link":256,"text":257,"type":200},"functional","functional.md","\u002Fcontent\u002Fservice\u002Flambda\u002Fguides\u002Feffectively-running-java-on-serverless\u002Ffunctional",{"title":291,"order":247,"authors":292,"callout":293,"resources":294,"time":42,"path":296,"id":297,"link":298},"Load Testing",[10],{"title":251,"description":252,"link":253},[295],{"link":256,"text":257,"type":200},"load","load.md","\u002Fcontent\u002Fservice\u002Flambda\u002Fguides\u002Feffectively-running-java-on-serverless\u002Fload",{"title":300,"collapsible":28,"isCollapsed":29,"content":301},"Local Development",[302,309],{"title":303,"order":304,"authors":305,"time":53,"path":306,"id":307,"link":308},"IntelliJ",10,[10],"intellij","intellij.md","\u002Fcontent\u002Fservice\u002Flambda\u002Fguides\u002Feffectively-running-java-on-serverless\u002Fintellij",{"title":310,"order":304,"authors":311,"time":53,"path":312,"id":313,"link":314},"Visual Studio Code",[10],"vscode","vscode.md","\u002Fcontent\u002Fservice\u002Flambda\u002Fguides\u002Feffectively-running-java-on-serverless\u002Fvscode",{"title":316,"collapsible":28,"isCollapsed":29,"content":317},"Infrastructure as Code",[318,325,331,341],{"title":319,"order":320,"authors":321,"time":42,"path":322,"id":323,"link":324},"CloudFormation",9,[111],"cloudformation","cloudformation.md","\u002Fcontent\u002Fservice\u002Flambda\u002Fguides\u002Feffectively-running-java-on-serverless\u002Fcloudformation",{"title":326,"order":320,"authors":327,"time":277,"path":328,"id":329,"link":330},"AWS CDK",[111],"cdk","cdk.md","\u002Fcontent\u002Fservice\u002Flambda\u002Fguides\u002Feffectively-running-java-on-serverless\u002Fcdk",{"title":332,"order":320,"authors":333,"resources":334,"time":42,"path":338,"id":339,"link":340},"AWS SAM",[111],[335],{"link":336,"text":337,"type":132},"https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fbuilding-serverless-java-applications-with-the-aws-sam-cli\u002F","Java Serverless AWS SAM CLI","sam","sam.md","\u002Fcontent\u002Fservice\u002Flambda\u002Fguides\u002Feffectively-running-java-on-serverless\u002Fsam",{"title":342,"order":320,"authors":343,"resources":344,"time":42,"path":351,"id":352,"link":353},"Terraform",[10],[345,348],{"link":346,"type":200,"text":347},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapigw-lambda-snapstart-terraform","Java sample with Terraform",{"link":349,"text":350,"type":20},"https:\u002F\u002Fdocs.aws.amazon.com\u002Fserverless-application-model\u002Flatest\u002Fdeveloperguide\u002Fwhat-is-terraform-support.html","AWS SAM CLI Terraform support","terraform","terraform.md","\u002Fcontent\u002Fservice\u002Flambda\u002Fguides\u002Feffectively-running-java-on-serverless\u002Fterraform",{"title":355,"collapsible":28,"isCollapsed":29,"content":356},"Benchmarking",[357],{"title":358,"order":359,"youtubeVideoID":360,"authors":361,"resources":362,"time":53,"path":373,"id":374,"link":375},"Performance Benchmarking",11,"wmEIMWigXGc",[10],[363,365,367,370],{"link":364,"text":223,"type":224},"https:\u002F\u002Fcatalog.workshops.aws\u002Fjava-on-aws-lambda\u002Fen-US\u002F01-migration\u002F02-optimizations\u002Fbenchmark",{"link":198,"text":366,"type":200},"Benchmark: Micronaut, Quarkus, and SpringBoot",{"link":368,"text":369,"type":200},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-graalvm-demo","GraalVM native image on AWS Lambda Benchmarking",{"link":371,"text":372,"type":200},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-kotlin-demo","Benchmark Kotlin on Serverless","benchmark","benchmark.md","\u002Fcontent\u002Fservice\u002Flambda\u002Fguides\u002Feffectively-running-java-on-serverless\u002Fbenchmark",{"title":377,"collapsible":28,"isCollapsed":29,"content":378},"Migration",[379],{"title":380,"order":381,"authors":382,"youtubeVideoID":383,"resources":384,"time":53,"path":391,"id":392,"link":393},"Migration Guide",12,[10],"u3tgOE8qFjI",[385,389],{"link":386,"text":387,"type":388},"https:\u002F\u002Fserverlessland.com\u002Fcontent\u002Fservice\u002Flambda\u002Fpaved-path\u002Fjava-replatforming\u002Fintroduction","Java re-platforming guide","Guide",{"link":222,"text":223,"type":390},"Workshop","migration","migration.md","\u002Fcontent\u002Fservice\u002Flambda\u002Fguides\u002Feffectively-running-java-on-serverless\u002Fmigration","LIST",[396,397,398,399,400,401],"content\u002Fcontributors\u002Fdhiraj-mahapatro.json","content\u002Fcontributors\u002Fsonali-jena.json","content\u002Fcontributors\u002Flavanya-tangutur.json","content\u002Fcontributors\u002Fvipan-kumar.json","content\u002Fcontributors\u002Florenzo-micheli.json","content\u002Fcontributors\u002Fmaximilian-schellhorn.json","Effectively running Java on Serverless",1792665272942]