Multiple stops on the cloud compute continuum — all with their own merits
Published: 2020-12-22 08:40:37

---
title: Multiple stops on the cloud compute continuum — all with their own merits
published: true
date: 2020-10-11 08:22:07 UTC
tags: 
canonical_url: https://ramansharma.substack.com/p/multiple-stops-on-the-cloud-compute-continuum-all-with-their-own-merits-6b921ed82f2
---

Platform-as-a-Service (PaaS) is a much misunderstood but still overused cloud term. It doesn’t help that different technology/cloud vendors define it differently. There are also mini variants of PaaS like application PaaS (managed compute services for hosting applications), integration PaaS (for providing integration services between disparate applications and systems), communication PaaS (for providing communications services like voice, SMS, email etc.) and many others. Many core services such as managed databases (DBaaS) are also sometimes referred to as a kind of PaaS. Effectively every service, API etc. that reduces the burden of infrastructure management or provides an easy to use abstraction over repetitive tasks is now referred to as PaaS.

In this article however, I want to focus on the original definition of PaaS — managed compute environment that just takes the code (or built executables) from developers and runs it for them, removing the need for VM management. This is sometimes referred to as application PaaS (aPaaS) and is an area that has gone through some interesting cycles. Initially touted as “_this is what cloud should be_”, it lost steam as infrastructure-as-a-service (IaaS) still provided the easiest and most friction-free vehicle for both lift-and-shift workloads as well as new applications. Many said PaaS was too restrictive, or required too much change to application architecture or deployment workflows, did not provide enough control over underlying resources etc.

Many of us have might have seen diagrams similar to this one talking about the compute continuum with control on one end and convenience on the other. This is what the original version looked like:

![](https://intrepidsoldier.com/content/images/2020/12/image.png)<figcaption>Original cloud compute continuum</figcaption>

In recent years however, two new hotter compute trends have dominated the narrative a lot more than PaaS — Kubernetes and Serverless. Both sit on either side of PaaS on the compute continuum. Kubernetes makes infrastructure management easy. Serverless has multiple definitions depending on which cloud vendor you talk to but the most common one is event-driven, pay-per-use, autoscale compute provided via a Functions-as-a-Service (FaaS) model. This makes the updated version of the cloud compute continuum look like this:

![](https://intrepidsoldier.com/content/images/2020/12/image-1.png)<figcaption>Adjusted cloud compute continuum</figcaption>

A while ago, I even waxed eloquent about the virtues of serverless here:
{% link https://dev.to/rasharm_/developers-want-to-code-hence-serverless-52i8 %}

However, the reality is that most of these technologies (Kubernetes, PaaS, Serverless) come in various flavors and depending on the flavor, fall at different places on the continuum. This means that the cloud compute continuum now contains multiple axes. For simplicity, let us consider only two:

- Whether a compute solution solves for infrastructure or for application workflows
- Whether the underlying machinery needs to be managed by the user or is managed by the cloud provider

Let us also make a third simplifying (although potentially controversial) assumption that things like Serverless/FaaS are just a subset of PaaS, at least based on the the original definition of PaaS (focus on apps, not infrastructure).

With these in mind, this is what the continuum begins to look like:

![](https://intrepidsoldier.com/content/images/2020/12/image-2.png)<figcaption>Modern cloud compute continuum</figcaption>

Let us look at all of these stops on the continuum:

**(1) IaaS**: This is easy. Virtual Machines that you need to manage yourself. Install application runtimes, perform patching etc. all yourself. These are popular, even among developers. I talk about some of the reasons here:
{% link https://dev.to/rasharm_/why-every-developer-needs-a-cloud-server-or-more-42ie %}

Examples of IaaS:

- [https://aws.amazon.com/ec2/](https://aws.amazon.com/ec2/)
- [https://cloud.google.com/compute](https://cloud.google.com/compute)
- [https://www.digitalocean.com/products/droplets/](https://www.digitalocean.com/products/droplets/)

**(2) VM Marketplace**: Most cloud providers these days offer virtual machine images that come pre-packaged with application stacks so that developers can just start writing or deploying code immediately after spinning up instances of these VM images. I prefer to call them “starter templates” for IaaS instead of calling them PaaS. They do solve for some application workflows but still leave too much infrastructure maintenance work for developers. Examples:

- [https://aws.amazon.com/marketplace/](https://aws.amazon.com/marketplace/)
- [https://www.digitalocean.com/products/marketplace/](https://www.digitalocean.com/products/marketplace/)

**(3) Self hosted Kubernetes**: Kubernetes allows you to manage your infrastructure better but lacks the concept of an “application”. Managing it yourself can be complex but many experts prefer to do it. The appeal for doing this can be understandable especially for those who choose an infrastructure-centric technology like Kubernetes in the first place.

**(4) Managed Kubernetes**: Almost every serious cloud provider these days has a managed Kubernetes offering that does a certain set of Kubernetes management. While most of these offerings do not help with application centric concepts, they do reduce the burden of operating Kubernetes itself. Examples:

- [https://aws.amazon.com/eks/](https://aws.amazon.com/eks/)
- [https://cloud.google.com/kubernetes-engine/](https://cloud.google.com/kubernetes-engine/)
- [https://www.digitalocean.com/products/kubernetes/](https://www.digitalocean.com/products/kubernetes/)

**(5) Self hosted PaaS**: This is an area I never understood the need for. In my mind, someone who is looking for a PaaS solution has already made the decision that they want to focus on application development rather than infrastructure management. If so, then why get into the business of self-hosting a PaaS solution where you are still responsible for the underlying infrastructure? Anyway, there are solutions that do this for you — also referred to as DIY PaaS. The idea is that a “platform team” does some initial setup (and maybe a little bit of ongoing maintenance) for this PaaS on their own infrastructure (VMs or Clusters), and then the experience that everyone else (folks building apps within the same organization) gets is that of a PaaS. They just get to focus on their applications. Examples:

- [https://marketplace.digitalocean.com/apps/jelastic-paas](https://marketplace.digitalocean.com/apps/jelastic-paas)
- [https://marketplace.digitalocean.com/apps/caprover](https://marketplace.digitalocean.com/apps/caprover)
- [https://www.cloudfoundry.org/](https://www.cloudfoundry.org/)
- [https://www.openfaas.com/](https://www.openfaas.com/)

**(6) Managed PaaS**: This is true PaaS that truly brings the “aaS” piece into meaning. In my mind “as a Service” means something I can expect and consume as an entity without worrying about how that entity was built or is being delivered to me. This is what fully managed PaaS offerings begin to provide — freedom from infrastructure management. Examples:

- [https://cloud.google.com/appengine/](https://cloud.google.com/appengine/)
- [https://azure.microsoft.com/en-us/services/app-service/](https://azure.microsoft.com/en-us/services/app-service/)
- [https://www.heroku.com/platform](https://www.heroku.com/platform)

**(7) Managed PaaS on Kubernetes**: Wait. What? Didn’t I say earlier in this article that Kubernetes is an infrastructure centric technology? Then why would I bring that into a discussion about fully managed PaaS solutions supposed to be all about applications? Well, the truth is that any serious managed PaaS solution needs to be built atop some kind of an orchestration layer that manages multiple instances of compute underneath. And right now, Kubernetes is the de facto standard for compute orchestration in our industry. The amount of mindshare, resources, focus and energy it is getting, is ensuring that its quality continues to improve. Here are some thoughts from experts:

![](https://intrepidsoldier.com/content/images/2020/12/image-3.png)<figcaption>Quote from <a href="https://twitter.com/kelseyhightower">Kelsey Hightower</a></figcaption>

So, although it might sound like an implementation detail that the developers may not care about, but the reality is that a managed PaaS built on Kubernetes will always be more flexible and “future ready” than the alternatives. Examples:

- [https://www.digitalocean.com/products/app-platform/](https://www.digitalocean.com/products/app-platform/)

Even for container-based use cases, PaaS is a solid alternative as described here:
{% link https://dev.to/rasharm_/containers-are-not-just-for-kubernetes-5fcp %}


**(8) Managed PaaS with autoscale**: And yes. Finally, that thing about scale. In order for a solution to truly be application-centric, it needs to be able to handle scale — both up and down — without requiring the app developer to worry about how to add/remove infrastructure. Some serverless FaaS solutions do this today but then they are limited to the Functions programming model thereby requiring a little more work to bring existing applications into this fold. We need more PaaS solutions (even classic aPaaS) to move in this direction. I suspect even here, Kubernetes and many of its associated projects such as [knative](https://knative.dev/) would prove to be the trusted technologies to build on. Examples:

- [https://cloud.google.com/run/](https://cloud.google.com/run/)
- [https://aws.amazon.com/lambda/](https://aws.amazon.com/lambda/)
- [https://azure.microsoft.com/en-us/services/functions/](https://azure.microsoft.com/en-us/services/functions/)

Hopefully this article gives you a clearer picture of various types of compute solutions available to you along with examples, and how to think about various alternatives depending on your appetite for infrastructure management.