Sitemap
Supuni Gallege

Supuni Gallege

Serverless

3 min readSep 23, 2022

--

When you maintain a server/s you have to maintain multiple os, update patches, and security updates, and also when having a server/s you have to create virtual machines. This takes a few hours.As a solution for this we have dockers .What that does is it has its own os directory, its own system directory,its own IP address, its own set of ports and
it takes few seconds to create a docker.Then it created a problem where we have lots of dockers and need to manage them. so you need to function clusturing technology to manage the docker.

However, all this was a little bit of a burden. Therefore serverless was a good concept to overcome this burden.When you go for the serverless concept you don't have to worry about the docker part which means
you don't need to worry about where this code is being run.This simply means you don't need to worry about the server.

However that doesn't mean that there are no servers.There are servers but those are not managed by you.You don't know where they are, what are the specifications or any other thing about the servers.You just have to pay your attention for your functionality.

What you do hear is you create a function and you take that function in to the cloud and deploy the function into the cloud.Then cloud takes care of executing its function on its own.

So why is this important?
Mainly due to the growth of technology you have a vast number of users.If you maintain servers then it's very hard to handle them all.Also in this modern society, people need fast browsing and when it take more than a few seconds they get disappointed.Servers may take some time to load and with a vast number of users they have to handle it and decrease the speed
as well.But with the cloud you can manage everything and can maintain the speed .

Get Supuni Gallege’s stories in your inbox

Join Medium for free to get updates from this writer.

When you talk about cloud if we have a docker then things can be kind of complicated with clustering techniques and all.But moving things to serverless you only have to worry about writing functions in the correct way and the server will take care of running it. Also especially when you work in serverless API you don’t have to pay for idle time. You pay for what you use.That's the serverless concept. In simple words, it is event-driven, function which runs on a cloud in a stateless manner.

How does serverless computing work
when it is serverless you don't need to worry about the deployment part. you have to worry only about the functions and the code.you just create the code and deploy it to the cloud
and the cloud will take care of the rest of the things. what really happens here is they run these codes in containers.

What is AWS API gateway/serverless?
A feature of Amazon Web Services (AWS) called Amazon API Gateway allows programmers to connect non-AWS applications to AWS backend resources, including servers and code.
The gateway extends the use of Amazon’s other cloud services and AWS users’ access to compatible applications.

Amazon API Gateway provides two ways of handling API call traffic:
1. Throttling: The number of API calls per hour or per day is controlled by API throttling. When unexpected spikes in API calls occur, throttling helps in maintaining the performance of calling applications. When numerous users use an application simultaneously, spikes may occur.

2. Caching: The results of numerous API calls are the same since they all use the same data. The cache offers the standard API response instead of carrying out all the necessary
processing to obtain the result. Caching decreases the number of API calls while increasing the caller application’s performance.

What is AWS Lambda
The serverless computing platform AWS Lambda runs any code that you upload as functions. This ensures you don’t need to manage CPU, memory, or networking, or maintain any servers.
AWS manages everything for you. You only need to run your code after uploading it.

API Gateway makes managing APIs easier, and Lambda eliminates the need to manage infrastructure. But when you use these services simultaneously, you start to realize their full
potential.

--

--