What is Serverless Computing
Articles,  Blog

What is Serverless Computing

Hi! Welcome to this section on serverless computing
paradigm. In this section, we’ll look at what serverless
computing is, how is it different from traditional “server-based” computing. And, we’ll also look at the four main benefits
of serverless computing. Before we look at Serverless Computing, let’s
first understand how the traditional “server-based” computing works. Server-based Computing typically follows a
3-tier architecture. In 3-tier architecture, we have a database
layer, an application layer, and a presentation layer. The database layer is where the database server
is. Application layer is where your application
code runs. And, presentation layer is where the UI is
provided to the end user. End users can interact with your application
or your website in variety of ways. They can use their web browser, or a mobile
smartphone, or even an IoT device depending on how you’ve designed your application. Now, even before you start writing your server-based
application, you have to make sure that a couple of things are in place. You’ve to create and setup your server, you’ve
to install operating systems, install necessary software, and, on ongoing basis, you also
have to manage the server, manage the operating systems, take care of the hardware upgrades,
software updates, and so on. You also have to make sure that your application
is highly-available and fault-tolerant. You might also need to have load-balancers
in your applications. And all this comes with added resources, added
infrastructure, added costs. Serverless Computing changes this paradigm
altogether. All the steps that we discussed just now,
apart from writing your application code, are no longer needed with serverless applications. Serverless applications allow you to focus
on your application logic without having to worry about any servers. There are no servers to maintain, no operating
systems to take care of, no software to manage, no hardware to upgrade. And, your applications have built-in high-availability
and fault-tolerance. This simply means faster time to market. You can really focus your energies on your
core application logic and build your applications with high-availability virtually at any scale,
without having to worry about any servers or operating systems. Now let’s look at the four main benefits of
serverless computing. First, as we discussed, there are no servers
or operating systems to maintain. You don’t have to manage any servers or even
have to install any operating systems or supporting software. Second, easy and efficient scaling. Serverless applications can be scaled automatically
or at the most with a few clicks to choose your desired capacity. There is no need to create any specialized
scalable architecture or designs. Third, high availability. Serverless applications have built-in availability
and fault tolerance. So you don’t need to have any specialized
infrastructure to make your applications highly available or fault tolerant. All this is available to you by default. Fourth, and this is a big one. No idle capacity. You pay only for what you use and no more. For example, with traditional architecture,
say you created a server with 100 GB of memory and you’re using only 10 GB of it. But still, you’ll have to pay for the 90 GB
that you’re not using. But with serverless architecture, you pay
only for what you use. So if you’re using 10 GB, you only pay for
10 GB. Also, with AWS lambda which is the core component
of Amazon’s serverless platform, you pay only for the time your code runs. So there is no charge if your code is not
running. So if your code runs for say 100 milliseconds
you are charged only for that 100 milliseconds and no more. That’s really a very fine grained control
and results in a substantial cost savings for your business! This brings us to the end of this section. In this section, we looked at what serverless
computing is, how is it different from the traditional “server-based” computing and we
also looked at the four main benefits of serverless computing. In the next section, we’ll look at AWS serverless
architecture and I’ll also give you a quick rundown on different web services that are
part of Amazon’s serverless platform. So see you in the next section. Thank you so much!


Leave a Reply

Your email address will not be published. Required fields are marked *