Building serverless apps with Docker
Every now and then, there are waves of technology that threaten to make the previous generation of technology obsolete. There has been a lot of talk about a technique called “serverless” for writing apps. The idea is to deploy your application as a series of functions, which are called on-demand when they need to be run. You don’t need to worry about managing servers, and these functions scale as much as you need, because they are called on-demand and run on a cluster.
But serverless doesn’t mean there is no Docker – in fact, Docker is serverless. You can use Docker to containerize these functions, then run them on-demand on a Swarm. Serverless is a technique for building distributed apps and Docker is the perfect platform for building them on.
From servers to serverless
So how might we write applications like this? Let’s take our example a voting application consisting of 5 services:
This consists of:
- Two web frontends
- A worker for processing votes in the background
- A message queue for processing votes
- A database
Read the entire article here, Building serverless apps with Docker
via the fine folks at Docker.