3. AWS Lambda is one of the
computing services provided by
AWS, which is event-
driven and serverless. It is
a stateless serverless system that
helps us run our background tasks
in the most efficient manner
possible.
4. a cloud-native platform
for
short-running, stateless computation
and
event-driven applications
which
scales up and down instantly and automatically
and
charges for actual usage at a millisecond granularity
What is Serverless?
5. Microservices
Mobile Backends
IoT
Modest Stream Processing
Bots, ML Inferencing
Serverless is good for
short-running
stateless
event-driven
Serverless is not good for
long-running
stateful
number crunching
Databases
Deep Learning Training
Heavy-Duty Stream Analytics
Numerical Simulation
f(x)
What is Serverless good for?
Service integration
Video Streaming
6. Current Platforms for Serverless
Azure
Functions
AWS
Lambda
Kubernetes
Google
Functions
Red-Hat
IBM Cloud
Functions
7. Build Custom Back-end Services
AWS Lambda allows creating custom back-end services
for an application triggered as per need, using the
custom API endpoints or Lambda API.
01
AWS Lambda Local Development Features
Bring Your Code
The best part about using Lambda is that you are not
required to learn any new framework or language. Any
code can quickly be packaged as a Lambda layer, and
you can then easily share and manage it across several
functions.
02
Built-in Fault Tolerance
It maintains compute capacity across multiple zones of
availability in each region so that the code stays
protected against every machine or data center facility
failure.
03
8. AWS Lambda Local Development Features
Completely Automated
Administration
AWS Lambda Python entirely manages the
infrastructure. The code runs on a fault-tolerant, highly
available environment to not have to worry about
building different back-end services.
04
Fine-Grained Control Over
Performance
You get robust control over the performance of
serverless applications with the help of provisioned
concurrency. It is ideal for all applications to use AWS
Lambda, which requires more significant control over
the start time.
05
9. AWS Lambda Local Development Features
Connect to Relational
Databases
Amazon RDS proxy can be used to obtain the benefits
of wholly managed connection pools for relational
databases.
06
Automatic Scaling
Your code is invoked by AWS Lambda only when
required, and it scales automatically to assist the rate of
all incoming requests, and you are not required to
configure anything.
07
10. Entirely Managed
Infrastructure
When using AWS Lambda Python,
you pay only for the compute used
by your function, plus the charges of
any network traffic generated.
Pay per Use
Pros of AWS Local Lambda Development
The pros of using AWS Lambda local development include:
When your functions run on completely
managed AWS infrastructure, you will not have
to worry about the underlying servers, AWS
manages everything. It helps you save a
considerable amount of money on operational
costs.
AWS can get integrated with services,
such as S3, DynamoDB, and API
gateway. It further allows the
building of applications that are
functionally complete within the
Lambda functions.
Tight Integration with Other
AWS Products
11. Cons of AWS Local Lambda Development
There are a few drawbacks of AWS Lambda development that you should know
before you use it in production.
When a function starts in response to an event,
there is minimal latency between the event and
the running. Moreover, if the function was not
used for over 15 minutes, then the latency will
be high and may last up to 5-10 seconds. This
makes it difficult to rely entirely on Lambda for
latency-critical applications.
Cold Start Time
When using AWS Lambda, you pay only for the
used function runtime. It creates cost-saving for
certain patterns of usage. However, when there
is an increase in an application load, the cost of
AWS Lambda also increases significantly.
Sometimes it is higher than the cost charged by
usual cloud providers.
Not always cost-effective
Limited Number of
Supported Run times
AWS Lambda Python allows the addition of
custom runtime, but their creation requires a
lot of work. If you are using a particular version
of the programming language that is not
supported on Lambda, you will have to use a
different cloud service provider.