Book Image

Expert AWS Development

By : Atul Mistry
Book Image

Expert AWS Development

By: Atul Mistry

Overview of this book

Expert AWS Development begins with the installation of the AWS SDK and you will go on to get hands-on experience of creating an application using the AWS Management Console and the AWS Command Line Interface (CLI). Then, you will integrate applications with AWS services such as DynamoDB, Amazon Kinesis, AWS Lambda, Amazon SQS, and Amazon SWF. Following this, you will get well versed with CI/CD workflow and work with four major phases in the release process – Source, Build, Test, and Production. Then, you will learn to apply AWS Developer tools to your Continuous Integration (CI) and Continuous Deployment (CD) workflow. Later, you will learn about user authentication using Amazon Cognito, and also how you can evaluate the best architecture as per your infrastructure costs. You will learn about Amazon EC2 service and will deploy an app using it. You will also deploy a practical real-world example of a CI/CD application with the Serverless Application Framework, which is known as AWS Lambda. Finally, you will learn how to build, develop, and deploy the Application using AWS Developer tools such as AWS CodeCommit, AWS CodeBuild, AWS CodeDeploy, and AWS CodePipeline, as per your project requirements.
Table of Contents (16 chapters)
Title Page
Packt Upsell
Contributors
Preface
Index

Monitoring and optimizing the cost of the infrastructure


In the early stages, if you do not estimate and optimize Lambda costs, then your Lambda functions can cost thousands of dollars unnecessarily. You can save this money with pre-planning and cost optimizations.

The cost of AWS Lambda is cheaper when you have a low volume, but when you start executing it on a production scale, then you can't ignore it.

How does Lambda pricing work?

AWS Lambda is a pay-as-you-go service in cloud computing. You can upload the function, execute it, and pay for the execution time. If you don't execute the function or it is idle, then you don't pay anything.

The following factors can determine the cost of AWS Lambda:

  • You will pay for the number of times the Lambda function executes.
  • It depends on the duration of each Lambda function execution. You will pay more if your function takes a long time to execute. This will encourage you to write efficient application code. The maximum timeout for a Lambda function is...