The Future Of The Application Stack
Tags: application, database, paas, kubernetes
Published: 2018-10-30 12:19:00

---
title: The Future Of The Application Stack
published: true
description: If you've built an application recently, you've likely deployed code in containers. What will the future of the application stack look like and what do we need?
tags: Application, Database, PaaS, Kubernetes,
canonical_url: https://scalegrid.io/blog/the-future-of-the-application-stack/
---
<link rel="canonical" href="https://scalegrid.io/blog/the-future-of-the-application-stack/" />

<a href="https://scalegrid.io/blog/the-future-of-the-application-stack/"><img class="aligncenter wp-image-3482 size-full" src="https://scalegrid.io/blog/wp-content/uploads/2018/10/The-Future-Of-The-Application-Stack-ScaleGrid-Blog.png" alt="The Future Of The Application Stack: Kubernetes, PaaS and DBaaS - ScaleGrid Blog" width="100%" height="auto" /></a>
<p style="text-align: justify;">Containers are eating the world. If you have built and deployed an application in production over the last few years, the odds are that you have deployed your code in containers. You might have created and deployed individual containers (<a title="Docker Containers" href="https://www.docker.com/" target="_blank">Docker</a>, <a title="Linux Containers" href="https://linuxcontainers.org/" target="_blank">Linux LXC</a>, etc.) directly in the beginning, but quickly switched over to a container orchestration technology like <a title="Kubernetes Container Orchestration" href="https://kubernetes.io/" target="_blank">Kubernetes</a> (K8s) or <a title="Docker Swarm" href="https://docs.docker.com/swarm/" target="_blank">Swarm</a> when you needed to coordinate multi-node deployments and high availability (HA). In this container-driven world, what will the <a href="https://scalegrid.io/blog/the-future-of-the-application-stack/" target="_blank">future of the application stack</a> look like? Let's start with what we need from this "future" application stack.</p>

<h2 style="padding-bottom: 15px;">What Do We Need From This Future Application Stack?</h2>
<ol>
	<li style="text-align: justify; padding-bottom: 5px;">
<h4>Cloud Agnostic</h4>
We want to be cloud agnostic with the ability to deploy to any cloud of our choice. Ideally, we can even mix in various providers in a single deployment.</li>
	<li style="text-align: justify; padding-bottom: 5px;">
<h4>On-Premise</h4>
We need to be able to run our application stack on-premise with our own custom hardware, private cloud, and internally managed datacenters.</li>
	<li style="text-align: justify; padding-bottom: 5px;">
<h4>Language Agnostic</h4>
It almost goes with saying, but I'll add it in for completeness. The future open stack needs to support all of the popular programming languages.</li>
</ol>
<h2>The Future Application Stack</h2>
<p style="text-align: justify;">The future application stack will be composed of a triad of technologies - K8s, Platform-as-a-Service (PaaS), and Database-as-a-Service (DBaaS)<strong>:</strong></p>

<center><a href="https://scalegrid.io/blog/wp-content/uploads/2018/09/Application-Stack-Diagram-DBaaS-PaaS-K8.png"><img class="aligncenter wp-image-3482 size-full" src="https://scalegrid.io/blog/wp-content/uploads/2018/09/Application-Stack-Diagram-DBaaS-PaaS-K8.png" alt="The Future Of The Application Stack: K8s, PaaS and DBaaS" width="426" height="656" /></a></center>
<h3>K8s</h3>
<p style="text-align: justify;"><a title="What is Kubernetes?" href="https://kubernetes.io/docs/concepts/overview/what-is-kubernetes/#what-does-kubernetes-mean-k8s" target="_blank">Kubernetes</a> is a portable, extensible open-source platform for managing containerized workloads and services, and you can deploy your applications directly to K8s containers. For customers with existing applications, it makes perfect sense to package and deploy your existing applications to K8s directly.</p>

<p style="text-align: justify;">All of the public cloud vendors provide strong native support for K8s, and you can run your own K8s cluster on-premise as well. Docker has also now jumped on the K8s bandwagon - so you have full flexibility. There's no doubt that K8s is king of the hill today. In a few years, it might get beat out by another solution, but container orchestration technology is here to stay.</p>

<h3 style="text-align: justify;">PaaS Solutions</h3>
<p style="text-align: justify;">If you're creating a new application from scratch, Platform-as-a-Service solutions like <a title="Cloud Foundry PaaS Solutions" href="https://www.cloudfoundry.org/" target="_blank">Cloud Foundry</a> and <a title="OpenShift PaaS Solutions" href="https://www.openshift.com/" target="_blank">OpenShift</a> offer compelling advantages that you can leverage to speed up your application development lifecycle. Is a PaaS a must? Definitely not, but I think it's worth considering if you're creating a new application.</p>
<p style="text-align: justify;">In some cases, the PaaS solutions might run on K8s or sit beside it - from an application perspective, it doesn't matter. If your IT organization is deploying the PaaS solution, they might like it if it just runs on their existing K8s clusters. The PaaS solutions mentioned above are also available on all the public clouds. So again, you have the full flexibility you need from your platform.</p>

<h3 style="text-align: justify;">DBaaS Solutions</h3>
<p style="text-align: justify;">Running and managing a production database system is not for the faint of heart. If you think you're going to install your production database on three containers and it's going to run happily ever after, you have another thing coming. By using a Database-as-a-Service solution, they will handle all the operational aspects of your database management so you're prepared for any and all of the unexpected.</p>
<p style="text-align: justify;">Your DBaaS may or may not run on K8s. Maybe some portions of the DBaaS run on K8s, but the odds are that it doesn't. Why is that?</p>

<ol style="text-align: justify;">
	<li style="padding-bottom: 15px;">Outside of the popular public clouds, there isn't a great solution for storage/volumes that are up to EC2 Elastic Block Storage (EBS) quality. Vendors like <a title="Portworx Cloud Native Storage for Containers" href="https://portworx.com/" target="_blank">PortWorx</a> and <a title="OpenEBS Containerized Storage for Containers" href="https://www.openebs.io/" target="_blank">OpenEBS</a> are working on it, but it's not there yet. Without a good storage solution, it's practically impossible to put data into your containers.</li>
	<li style="padding-bottom: 15px;">If you're running a large, several TB production database server, it doesn't make sense to run it in containers - you are going to have large dedicated machines with fancy SSD's.</li>
	<li style="padding-bottom: 15px;">Too much dynamism - yes, you can have too much of a good thing. Sometimes, when things fail, you want them to stay failed so you can take a look and see what is going on. <a title="Kubernetes StatefulSets - Workload API Object" href="https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/" target="_blank">StatefulSets</a> in Kubernetes are a great step in the right direction to solve this problem.</li>
</ol>
<p style="text-align: justify;">At ScaleGrid, our vision is to deliver on the DBaaS part of this future application stack. We are multi-cloud today, and can also run on-premise or in your own private datacenter. Additionally, our platform is a polyglot system that supports multiple databases, including <a title="MongoDB Hosting at ScaleGrid" href="https://scalegrid.io/mongodb.html" target="_blank">MongoDB</a>, <a title="Redis Hosting at ScaleGrid" href="https://scalegrid.io/redis.html" target="_blank">Redis</a>, <a title="MySQL Hosting at ScaleGrid" href="https://scalegrid.io/mysql.html" target="_blank">MySQL</a>, and <a title="PostgreSQL Hosting at ScaleGrid" href="https://scalegrid.io/postgresql.html" target="_blank">PostgreSQL</a>.</p>
<p style="text-align: justify; padding-bottom: 20px;">For the sake of simplicity, I have excluded some other parts of the application stacks like object storage, file system storage, etc. In principle, I expect these components will be similar to the DBaaS component. This blog post was inspired by a <a title="Silicon Valley Postgres Meetup" href="https://www.meetup.com/Silicon-Valley-Postgres/" target="_blank">Silicon Valley PostgreSQL meetup</a> I attended a few weeks ago, and shout out to Dave Nielsen (<a class="ProfileHeaderCard-screennameLink u-linkComplex js-nav" style="font-weight: bold; color: #657786;" href="https://twitter.com/davenielsen"><span class="username u-dir" dir="ltr">@<span class="u-linkComplex-target" style="font-weight: normal;">davenielsen</span></span></a>) from RedisLabs for starting the discussion on this topic.</p>