============= AWS Lambdas ============= -> AWS lambdas are used to achieve serverless computing. -> Serverless computing means run the application without thinking about servers. -> AWS Lambda will take care of servers required to run our application. ============================== Elastic Beanstack vs Lambdas ============================== => When we deploy our app using Elastic Beanstack we need to pay bill amount for the resources which got created by beanstack based on pay as you go model. Even if customers are not accessing our application bill be generated for the resources created bean stack like s3, ec2, lbr etc... => When we deploy our app using AWS lambdas then it will charge based on Pay as you use model. If your application code is executed then only bill be generated. If nobody accessing your application then no bill. code executed for only 5 mins : bill will generate only for 5 mins ================================== Running Java Code with AWS Lambda ================================== 1) Create Lambda Function with 'java 21' runtime - Enable Functional URL - Auth Type None (Public Access) Note: Once lambda function got created we can see URL to access that function. 2) Access Lambda function using its URL. 2) Upload jar file in 'Code Source' 3) Configure Handler in Runtime Class Name : in.ashokit.LambdaHandler Method Name : handleRequest Handler Syntax : className :: methodName Ex: in.ashokit.LambdaHandler::handleRequest 4) Access Lambda function using its URL (we can latest msg coming from our java app) =========================== Static website deployment =========================== Approach-1) S3 static website hosting Approach-2) Take EC2 VM + Install HTTPD + Run Static website ============================ Dynamic Website Deployment ============================ Approach-1) Take EC2 VM Then install required softwares and run your application. Approach-2) Elastic Beanstack (PaaS) Approach-3) Lambdas (Serverless Computing)