Why I believe in the brave new world of serverless
Tags: serverless, development, lambda, functions
Published: 2019-05-30 15:02:49

---
title: Why I believe in the brave new world of serverless
published: true
description: Serverless is nothing if not polarizing. Despite all the naysayers, I believe there are two major things that make it one of the most promising technologies out there.
tags: serverless, development, lambda, functions
cover_image: https://thepracticaldev.s3.amazonaws.com/i/61r8jmz79lgf8pyoyqzo.jpg
---

A few days ago I took part in a lunch & learn session at work, where we discussed the paper [Serverless Computing - One step forward, two steps back](https://arxiv.org/pdf/1812.03651.pdf). It was an excellent discussion, and if there weren't any time constraints I'm sure we could have talked about it for the rest of the week, not just our lunch hour.

_**Note:** In my eyes, serverless is not just AWS Lambda functions. Or Azure, Google, or IBM/Apache Openwhisk. It's all the other technologies that work well alongside it - databases, queues, event-driven computation, and technologies that make it super easy to configure and deploy new services in code._

What made it such a great discussion is the fact that while most technologies are polarizing, only a few are as deeply polarizing as serverless. 

The Serverless Hater's greatest hits include:

- _serverless has servers_
- _I can't use it for machine learning or [insert obscure academic research topic here]_ 
- _It's more expensive than renting your own EC2 instances and running your own servers!_
- _Vendor lock-in!_
- _It's slow!_
- _I can't run it on custom hardware!_

All of these… are true in their sense. Not all use cases are well supported by serverless technologies (or at all). 
My argument is just that… it doesn't really matter. There are two main reasons for it.

# Reason 1: The new liberal computing 🗽

Most profoundly, serverless is just a marketing name (yet a pretty good one - it certainly has [that Marmite quality…](https://www.marketingweek.com/2014/10/22/marmite-the-marketing-story-even-the-haters-love/)) for a new computing paradigm - an idea. 

It's the idea of writing some code and letting the vendor deploy it anywhere without worrying too much about the where, how, or how much maintaining it is going to cost you, as you only pay per invocation. Serverless is about making it simple and fun to experiment. It's what Heroku was, but more. 

The [Serverless framework](https://serverless.com) (with a capital S) makes most of your configurations portable between vendors, and opinionated frameworks like [Architect](https://arc.codes) make it great for quick productivity.

Tools like [Glitch](https://glitch.com), in addition to being beautifully weird, lets you tinker with deployed code from users of the whole platform, directly in your web browser, like GitHub without any of the git.

To paraphrase [Paweł Ledwoń](https://twitter.com/pawel_ledwon), our CTO at Pusher - _"Serverless might be this generation's PHP"_. 

That's awesome. PHP made a whole generation build things. 

{% twitter 1132826772976701440 %}


Just like PHP did back in the day, serverless is opening doors to programming to the new generation of app developers (also known as "_kids these days_"). 
Returning to my earlier point, as of why the arguments against serverless (mostly) don't matter? As long as serverless (or any technology, or computing paradigm) is able to lower the barrier to entry to, the playing field has expanded enough, so that it has free rein to take up a bunch of new market share. As the market grows, the earlier arguments merely become fringe or niche concerns.

And the kids? They are the ones who are going to build the future - _The kids are alright_.

# Reason 2: Birth of an ecosystem (of ecosystems), and mash it like it's 2005 🕺

The idea of "just" liberalizing computing was mostly true for the first generation of serverless, way back when Lambda was new. In 2019, serverless is also liberalizing how easy it is for services to interact with one another. It's increasingly being used to extend the functionality of existing services with whatever you really wish to create - flows, extended logic, you name it.

[Webhooks](https://pusher.com/docs/chatkit/webhooks) [are](https://pusher.com/docs/beams/concepts/webhooks) [everywhere](https://pusher.com/docs/channels/server_api/webhooks), and let you integrate and glue services together, with ease. 

[Zeit Now](https://zeit.co/now) lets you make any app serverless, and deploy it in seconds, with one command. They have also launched an integration marketplace, that lets developers connect other services, and manage them from Zeit. 

_The good people at Zeit are also running [a global hackathon](https://zeit.co/hackathon) with some cool prizes **between 1 and 2 June 2019**, and [Pusher](https://pusher.com) is one of the sponsors. If you're building something with Pusher APIs, please come [talk to me](https://twitter.com/zmarkamn)._

We also we have [Netlify Functions](https://www.netlify.com/products/functions/) -they let you add dynamic components to otherwise static sites that deploy in seconds. 

Or [Github Actions](https://github.com/features/actions), to create complex flows based on what's going on in GitHub, taking ops to the next level. 

Or [Auth0 has their rules](https://auth0.com/docs/rules) that extend the log in functionality of their services. 

[Cloudflare workers](https://workers.dev/) deploy and execute anywhere in the world - and execute nearest to your request. 

We're seeing an ecosystem of ecosystems emerge. Want to handle a webhook? [Build a chatbot, even](https://github.com/zmarkan/chatkit-greeter-bot)? Serverless makes that really, really easy. Just add JavaScript ✨.

What the new generation of serverless reminds me of is actually fulfilling the promise of API mash-ups.

_For the younger generation, API mash-ups were the idea from circa 2005 (or when Twitter wasn't a thing yet) - of making dynamic and fully-featured websites by calling on different APIs and connecting their results on your own site._

API mash-ups never really took off in the mid noughties, because the tech just wasn't there at the time. The ecosystem wasn't there. But now, I believe it is here, and serverless is the glue. The JAMstack (JavaScript, APIs, Markdown) is a prime example of where we currently are, and it's amazing.


---

To summarize, I am a huge fan of Serverless. I believe serverless is  a paradigm that greatly lowers the barriers for getting into software programming, and will see serious adoption and development in the next few years. 
It's also showing itself as a great "glue" technology, connecting various service ecosystems, and making them work well together. These two benefits greatly outweigh any naysayer arguments.
More, and together - that's progress, and I'm sure that amazing things will happen. 🚀