Ascend Cloud Solutions logo in white

What is serverless computing?

Simon Edward • Aug 21, 2023

Are you an app developer? Then you might want to consider investigating serverless computing. Join us as we break down what it is and how it works.


Are you an app developer? Then you might want to consider investigating serverless computing. Join us as we break down what it is and how it works.

At first sight, the phrase "serverless computing" is a little confusing. Servers are the engine room of computing – wouldn't a model of cloud provision without servers be like a car without wheels?


In fact, "serverless computing" is, if not a misnomer, then not quite what it says on the tin. It can be filed alongside the difference between public and private clouds in the Big Book of Confusing Cloud Terminology.


It's serverless in the same way that your home is generatorless. From your perspective, you can just plug in that Hoover and go. But the electricity has to come from
somewhere.


In a serverless setup, you use a cloud platform to write code – and the servers that allow this to happen are maintained and managed by a cloud provider.


You pay for the resources and storage you use and the cloud vendor makes it possible behind the scenes.


In theory, this division of labour is ideal for developers who want to focus on building and running apps without having to manage servers.


It's also an example of how broad and sweeping “the cloud" has become. It's so much more than a place to store your holiday snaps.


Why serverless?


Serverless computing shares its main advantage with cloud computing in general. The user uses and the provider provides. To return to our electricity analogy, why build a working nuclear reactor when you can pay a monthly bill to the energy company?


Picture of a Nuclear power plant

The journey from bare metal to virtual machines to containers to serverless is one where the business is less and less responsible for setting up and maintaining the environment. Its staff can spend more time writing code and business logic and less time pulling the levers that make it possible.


For the end user, serverless is entirely abstracted from the underlying infrastructure. You're not responsible for either a bare metal server or a virtual machine.


The question on your lips might be how serverless computing is different from containers – the cloud solution pioneered by Docker that bundles up files and libraries into discrete containers which can run on any Linux infrastructure.


At the technical level, there are lots of differences. But from a user perspective, the main difference is one of scaling.


Containers simplify the deployment process – but when you want to scale up your apps, they present problems. Serverless, however, auto-scales.


It's a bit like being a painter and hiring a studio. With serverless computing, you hire the room, the brushes, the easel and everything else you need – and you know that the studio manager will take care of wiring, rising damp and any other problems.


If studio rental worked like serverless computing, it would vanish in a puff of smoke the minute you left the room. Resources come to life – or "spin up", to use the lingo – only when required.


This means you're never paying for anything you don't use. With containers in a public cloud, however, you're paying a month's rent upfront.


Advantages of serverless computing


Serverless computing is cost-effective. Its auto-scaling capacity means you're only charged for the resources you use, unlike previous iterations of cloud computing where you're paying for idle time too.


It's an easy and quick way to write and deploy apps, which means you can get your creations to the marketplace at a satisfying pace. You can pour all your energy into developing apps while the provider maintains the underlying infrastructure.


This user-friendliness is also connected to its polyglot nature. It's the Switzerland of cloud computing. You can write your code in whatever language you like.


Finally, serverless provides high availability. There's a team of technicians behind the scenes ensuring that the server is always running.


But like everything in life, there's another side to the coin.


Disadvantages of serverless computing


A big risk of serverless is vendor lock-in. Different vendors provide different services – so you're not enjoying the flexibility of a multi-cloud solution.


Serverless is built for speed. However, if you're deploying a long-running app, you may find that the bill dwarfs that of a VM or dedicated server.


Latency can be an issue, especially when handling a function for the first time.


Serverless instances are perpetually self-renewing – little digital phoenixes that spin up entirely new versions of themselves each time. This can make debugging a delicate operation. 


Finally, serverless instances time out. Executing code can be a race against the clock. This isn't always a problem but can be if the app you're developing is especially involved.


Who's it for?


Serverless computing can be used in a variety of use cases:


  • App and website backends
  • Asynchronous processing – behind-the-scenes tasks that don't interrupt your programming flow
  • Building RESTful APIs
  • Continuous delivery (CD) and continuous integration (CI)
  • IoT data processing
  • Security checks
  • Trigger-based tasks (e.g. a user signs up on your website, which triggers a database update, or a security sensor triggers a push notification)
  • Video/image manipulation
  • Writing polyglot (multi-language) apps


Why did Amazon ditch serverless?


Amazon made a splash in the tech world when it announced, in May 2023, that its video quality analysis team was ditching its serverless micro-service architecture and moving back to a "monolith". The switch allegedly saved Amazon 90%.


Picture depicting Amazon

The irony here is that Amazon was one of the market leaders in serverless computing, introducing Lambda functions back in 2014.


This is newsworthy because it challenges the purported advantages of serverless. The pitch is usually that serverless computing scales efficiently and saves you money. But Amazon appears to have decided that neither of these things is true.


It's too soon to say whether this is an edge case or a dramatic blow against serverless computing.


But despite Amazon's headline-grabbing move, it seems likely that serverless will continue its upward trajectory in 2023 and beyond as cloud providers continue to plump up their offerings.


The bottom line


Whatever its disadvantages, serverless enables developers to focus on code by eliminating management and maintenance overheads – and it's playing an important role in global digital transformation.


Ascend is a cloud solutions provider that specialises in cloud migration and
VMware consulting services. Want a trusted partner for your next cloud project? Speak to one of our experts today.


So you want to migrate to VMware Cloud on AWS but don't know how? Get to grips with the essentials.
By Simon Edward 26 Apr, 2024
So you want to migrate to VMware Cloud on AWS but don't know how? Get to grips with the essentials.
It's hard to keep data centres cool in tropical climates. Learn how a team in Singapore
By Simon Edward 22 Apr, 2024
It's hard to keep data centres cool in tropical climates. Learn how a team in Singapore is making a difference.
Find out how cloud migration is shaking things up for the better in the supply chain
By Simon Edward 19 Apr, 2024
Find out how cloud migration is shaking things up for the better in the supply chain and transportation sectors.
More and more firms are moving to a private cloud or back to an on-prem data centre. Find out why.
By Simon Edward 15 Apr, 2024
More and more firms are moving to a private cloud or back to an on-prem data centre. Find out why.
What is OpenStack and how it can help your business? Find out in our accessible guide to this IaaS
By Simon Edward 12 Apr, 2024
What is OpenStack and how it can help your business? Find out in our accessible guide to this IaaS solution.
Cloud gaming is beset by problems – but could it have a bright future? Join us as we explore
By Simon Edward 08 Apr, 2024
Cloud gaming is beset by problems – but could it have a bright future? Join us as we explore the topic.
VMware Partner Authorised Training Centre
By Simon Edward 05 Apr, 2024
Ascend Cloud Solutions offers lab hosting services to VATC (VMware educational providers). Find out more.
At the end of 2023, Broadcom acquired VMware. Learn what this could mean for the firm
By Simon Edward 05 Apr, 2024
At the end of 2023, Broadcom acquired VMware. Learn what this could mean for the firm and its customers.
What is the state of the cloud in Australia and how does it compare to other regions? Read all about
By Simon Edward 02 Apr, 2024
What is the state of the cloud in Australia and how does it compare to other regions? Read all about it.
External IT support can be invaluable to businesses. But should you choose a consultant or an MSP?
By Simon Edward 29 Mar, 2024
External IT support can be invaluable to businesses. But should you choose a consultant or an MSP?
More Posts
Share by: