We've already discussed Compute Engine, which is Google Cloud's infrastructure as a service offering with access to servers, file systems and networking, and app engine, which is Google Cloud's platform as a service offering. In this section of the course, we'll explore containers and help you understand how they are used. Infrastructure as a service or IaaS allows you to share computer sources with other developers by using virtual machines to virtualize the hardware. This let's each developer deploy their own operating system OS, access the hardware, and build their applications in a self-contained environment with access to RAM, file systems, networking interfaces, etc. This is where containers come in. The idea of a container is to give the independent scalability of workloads in PaaS. An abstraction layer of the OS and hardware in IS. A configurable system, lets you install your favorite runtime, web server, database or middleware, configure the underlying system resources such as disk space, disk I/O, or networking, and build as you like, but flexibility comes with a cost. The smallest unit of compute is an app with its VM. The guest OS might be large, even gigabytes in size, then take minutes to boot. As demand for your application increases, you have to copy an entire VM and boot the guest OS for each instance of your app, which can be slow and costly. Now, with app engine you get access to programming services. You only need to write your code in self-contained workloads that use these services and include any dependent libraries. This means that if demand for your app increases, the platform scales your app seamlessly and independently by workload and infrastructure. This scales rapidly, but there's no option to fine tune the underlying architecture to save cost. A container is an invisible box around your code and its dependencies with limited access to its own partition of the file system and hardware. It's only requires a few system calls to create, and it starts as quickly as a process. All that's needed on each host is an OS kernel that supports containers and a container runtime. In essence, the OS is being virtualized. It scales like PaaS, that gives you nearly the same flexibility as IS. This makes code ultra portable and the OS and hardware can be treated as a black box. You can go from development to staging, to production, or from your laptop to the Cloud without changing or rebuilding anything. As an example, let's say you want to scale a web server. With a container, you can do this in seconds and deploy dozens or hundreds of them, depending on the size of your workload on a single host. That's just a simple example of scaling one container running the whole application on a single host. However, you'll probably want to build your applications using lots of containers, each performing their own function like microservices. If you build them this way and connect them with network connections, you can make them modular, deploy easily, and scale independently across a group of hosts. The hosts can scale up and down and start and stop containers as demand for your app changes or as hosts fail.