Cloud

A Beginners Guide to Serverless Computing

Rafi Rainshtein

6 min read

1116 views

The “serverless” computing paradigm emerged a couple of years ago in Amazon Web Services (AWS) as a new cloud service called Lambda – a serverless computing platform. And now, even though it’s mainstream, it nonetheless can still be new or unknown to many in the IT industry. This blog explains and visualizes serverless for IT professionals who are new to the topic, covering:

  1. The misleading serverless name
  2. Serverless on a napkin
  3. Comparing serverless to other computing paradigms
  4. The serverless ecosystem
  5. The serverless sweet spot

So please read on to learn more about serverless.

1. The Misleading “Serverless” Name

Why is the name “serverless” misleading? It’s because code still needs to run on a server somewhere. But in the case of serverless, it’s not your server.

With serverless, the cloud service provider (CSP) is doing all the low-level infrastructure work for you. You don’t see the servers (even though they’re out there somewhere). So, therefore, from your perspective, there are no servers to manage, hence – it’s serverless.

There has been much rhetoric about the name. Some people have wanted to change it to functions-as-a-service (FaaS), which is very accurate but it didn’t stick. Maybe we are now all aaS-ed out?

So “serverless” it is then. And there’s even a series of global serverless conferences now.

2. Serverless on a Napkin

There are five simple steps to understanding how serverless works, under the covers, but first, the headline – serverless is an event-driven compute paradigm.

It works as follows:

  1. You write and upload your code.
  2. You define the triggers.
  3. An event triggers your code.
  4. Your code does one thing.
  5. The end.

You can log in to AWS directly and do this manually but, in reality, this will be part of an automated DevOps pipeline, integrated into other systems such as AWS S3 storage, Dynamo databases, and SQS queues.

If you’re an artist, and have a big enough napkin, you could try to draw this example application of serverless on AWS while you sip on your gin and tonic.

To go beyond the napkin, head over to the Serverless Framework to dig deeper into the topic thanks to the site’s excellent content.

3. Comparing Serverless to other Computing Paradigms

Over time, moving from left-to-right in the image below, organizations are increasing their use of:

  • Cloud services to cede control to CSPs
  • Smaller batch sizes to reduce change scope and increase change frequency, and
  • Small services at lower cost at all scales.

4. The Serverless Ecosystem

So where do you buy these serverless “things”?

As serverless lives at the bleeding-edge of the technology wave, it’s still a mixed, and changing, bag. The table below lists some popular serverless offerings:

Offering Cloud? On-Premise? Launch Date Languages
AWS Lambda Yes No 2014 Node.js, Python, Java
Azure Functions Yes Yes 2016 C#, Node.js, Python, F#, PHP, Java
Google Cloud Functions Yes No 2016 JavaScript
IBM OpenWhisk Yes Yes 2014 Node.js, Swift

5. The Serverless Sweet Spot

Everything isn’t going to go serverless, and rightly so, because there are some use cases for which it doesn’t make sense. The diagram below shows the current sweet spot for serverless:

Latency is the time measured from the trigger of your code until it completes. This can vary depending on how CSPs load and run your code. Unchanging, infrequently accessed code can be “unloaded,” or “spun down,” but this means more latency when this code is run because it has to be reloaded and “spun up.”

A good rule of the thumb to use when considering serverless is that: the more sensitive and more-frequently accessed your code is, then (at high levels) it might be better to run it on dedicated hardware somewhere, with you managing the server.

In terms of the serverless sweet spot, here are some examples of application types:


So, there you have a quick guide to serverless. If you already know about serverless, what would you say are the most important things to know (and understand) about it that I haven’t already called out?

What did you think of this article?

Average rating 1 / 5. Vote count: 1

No votes so far! Be the first to rate this post.

Did you find this interesting?Share it with others:

Did you find this interesting? Share it with others:

About

the Author

Rafi Rainshtein

VP R&D and DevOps at SysAid, Rafi leads the troops who are responsible for delivering SysAid’s products and continuously improving their quality and performance. He’s been programming since the age of six (really!) and can already see his geeky legacy continuing with his three young sons. He used to write comic strips for fun and publish them on his own website before he progressed into the animation field where he got to work with the likes of Elmo, Beavis and Butt-Head, and Lara Croft. Now, with over 20 years’ experience in software development management, Rafi maintains a healthy balance by adding basketball and running into his mix of hobbies.

We respect your privacy. By continuing to use our site, you agree to our privacy policy.

SysAid Reviews
SysAid Reviews
Trustpilot