This course is still being built. Content will change. Get updates on the mailing list.
It's time to take an elevator up into the cloud! In this section I'd like to show you how the app you have so far fits into the rest of the cloud. What's happening is both simple (for you) and quite complex (behind the scenes). So start the elevator music below, and let's go up for an overview.
The app you have so far is fairly simple. There's an HTTP server, with a handler for the front page and for the health check. It's put into a Docker container and deployed to AWS Lightsail.
What's happening in the cloud is quite cool. I've put together a video to explain:
To summarize, what's happening behind the scenes, in the cloud, is this:
What's not mentioned in the video is that the load balancer also handles encryption to the browser (what's known as TLS), so what's going on stays secret between your app and the user.
Also, app containers are distributed over so-called availability zones (AZs). You can think of AZs as separate datacenters next to each other, with separate power supply, internet connectivity etc. They are designed in a way that if one goes down for whatever reason, the others stay up. This all means that if you add multiple app containers to your web app, you can be quite sure that your app is always available, even when some of them go down. Neat!
That was a short overview of your app in the cloud. Next up is adding our first real app functionality.