
- FAAS
- Scale
automatically and continuously
- Coast effective
pay as you go
There are several benefits of using lambda functions
1. No need to maintain servers, which have CPU, memory
2. You only need to create the function and let Amazon will handle the scaling, availability, and 0 downtime
3. Also, know as a FAAS (function as a Service) that mean we can develop functionality without the complexity and maintaining infrastructure
4. You only pay for the time the lambda ran in milliseconds
5 when your lambda function is in the idle state you will be not charged only charged during runtime.
In this video, you will be introduced to AWS Identity and Access Management (IAM). The video will highlight how IAM can be used for authentication and authorization to AWS services. Discussions around IAM policies and roles will also be included, as well as potential use cases for the service.
- Amazon API gateway is a fully managed service for defining, deploying, and maintaing API's
- Provide RESTfull application programming interface (APIs)
- Runs APIs without servers.
- Integrate with AWS lambda
Let's start with and Overview of Amazon API gateway. As a developer you face many challanges when devloping API particularly when you build API based on Microservices.
With amazon API gateway you will have fully managed API PRODUCT that allow you to define, deploy and manage api's that scale without managing underline servers.
You can integrate LAMBDA function with API gatway
In the previous video
we have created the lambda function hello world in the previous videos. But that function don't have any endpoint
for instance
Let's say we want to trigger lambda function when someone hit the following endpoint
1. https://api.com/helloworld (API gateway)
then it will return you Hello, Wolrd in the response.
This is possible using API gatway where you can trigger your lambda function.
let's talk about the architecture behind the amazon API gateway.
First of all, on the left side of the picture you will see different type of applicaition clien such as mobile application, web application
and thrid party services that might need to talk to your API.
APi gateway has full support of HTTPS so you can do encryption and transist for all of the API call on your application. The way API gatway is designed
there is an amazon cloudfront distribution in front of your API to provide low letancy access to your application. You can also take advantage of API gateway cache for frequently access to content so the subsequent requests to your API can be pulled from the cache rather than invoking your backend. once the request hits to the API gateway you have a several option to integrate on the backend.For the serverless application you probabily have api gatway endpoint triggr AWS lambda function that run you backend business logic when request comes in to your API.Once the backend process the request the API call meterics are logged in amazon cloudwatch and the content is returnedto the client and you can moniter your API endpoint with the help of cloudwatch.
Download Source Code Sample Lambda Invocation
In this course, you will learn how to develop serverless REST API from scratch.
Scaling new/existing REST API quickly without having to worry about servers is challenging but it is possible with help of Serverless application development and the infrastructure as a service.
In this course, you will learn how to create Serverless REST API using AWS API Gateway, Lambda, and Amazon Aurora (Mysql Compatible Serverless Database)
Our step by step guide will help you to learn how to create code within Lambda, Serverless framework, and Cognito. There are the following steps we will cover in this course.
Create Lambda Function Using AWS Console
Create Lambda Function By Uploading Zip file
Create Lambda Function From S3 Bucket
Integrate API Gateway within Lambda function
Create Lambda Function using Serverless Framework
Different environments production and development.
Deploy API's using Serverless Framework
Local environment testing
Docker Setup
Database seeding
AWS Data API for MySql queries.
Integrate API Gateway within Lambda function
Create AWS Aurora Serverless Cluster
Connectivity of AWS Aurora Serverless Cluster within Lambda
Develop CRUD (Create Read Update Delete) REST API using AWS Lambda and Aurora Serverless with the help of the Serverless framework
Securing REST API using OATH 2 with the help of AWS Cognito
CDK deployment Aurora RDS instance.
Cognito users pool configuration
Detail-oriented course.
Best practice covered.
Secure API using Cognito
AWS resources clean up