AWS LAMBDA API GATEWAY USING SERVERLESS | InterviewDOT

210 views · Published 18 September 2018 · 11:47 · Indexed 20 September 2026

Channel: Interview DOT · 2018 · Science & Technology

Watch on YouTube

Click here - https://www.youtube.com/channel/UCd0U_xlQxdZynq09knDszXA?sub_confirmation=1 to get notifications. AWS LAMBDA API GATEWAY USING SERVERLESS


How to create AWS Lambda + API Gateway using serverless framework ?

The Serverless Framework is a free and open-source web framework written using Node.js. 

Serverless Platform empowers developers to build & deploy serverless applications, on any provider.

Prerequisite :
 a. Install serverless framework in your machine
 b. Configure the default profile using your AWS account credentials.
  serverless config credentials --provider aws --key 1234 --secret 5678

Amazon API Gateway is a fully managed service that makes it easy to create, publish, maintain, monitor, and secure APIs for developers of all sizes. With just a few clicks in the AWS management console, you can create an API that serves as the "main input" to applications to access data, business logic, or functionality from your back-end services, such as processing loads running on Amazon Elastic Compute Cloud (Amazon EC2). run, code running on AWS Lambda , or any web application.

Amazon API Gateway performs all the tasks of accepting and processing up to hundreds of thousands of concurrent API calls, including traffic management, authorization and access control, and monitoring and managing the API version. At API Gateway, there are no minimum charges or upfront costs. You only pay for inbound API calls and outbound data transfers, and with API Gateway's tiered pricing system, you can cut costs by scaling API usage.

Use
EFFICIENT API DEVELOPMENT
With API Gateway, you can simultaneously run multiple versions of the same API, allowing you to quickly iterate, test, and release new versions. You pay only for calls to your APIs and outbound data transfers. There are no minimum fees or prepayments.
EASY MONITORING
Use the API Gateway dashboard to monitor performance metrics and information about API calls, data latency, and error rates. With Amazon CloudWatch, you can visually monitor views of your services.
PERFORMANCE FOR EACH SIZE
Provide your end users with the lowest latency possible for API requests and responses by leveraging our global network of edge locations with Amazon CloudFront. You can throttle traffic and save the output of API calls to ensure that backend operations handle traffic spikes and that backend systems are not called unnecessarily.
COST SAVINGS TO MEASURE
API Gateway offers a pricing model for API requests. With the low price of $ 1.51 per million top-level API requirements, you can lower your costs based on the number of API requirements per region in your AWS accounts.
FLEXIBLE SAFETY CHECK
You can authorize access to your APIs with AWS Identity and Access Management (IAM) and Amazon Cognito. If you are using OAuth tokens or other authorization mechanisms, API Gateway can help you by examining inbound requests by running an Lambda Approver from AWS Lambda.
RESTFUL API TERMINAL
You create resource-based APIs and use the data gateway transformation capabilities of API Gateway to generate the language requirements expected of target services. API Gateway also helps protect your existing services by applying maximum bandwidth throttling rules to ensure that your backend can handle unpredictable traffic spikes.
SERVERLOSE APIs
With API Gateway, you create REST APIs that your mobile and web applications can use to call publicly available AWS services through code that runs in AWS Lambda. Lambda runs your code on a high-availability computing infrastructure, eliminating the need for provision, scale, or manage any servers.
WEB SOCKET APIs
Build real-time two-way communication applications, as well as chat apps and streaming dashboards, without having to worry about any users or devices. API Gateway maintains a persistent connection between clients, handles message transfer, and pushes data through backend servers.

More from this channel