Open-source software has had a powerful effect on computing. When the ARPANET/NSFNET was sold to different companies in the 1990s to create the commercial internet, nobody expected it to grow as fast as it did. It was the open-source Apache web server running on the open-source Linux (and BSD UNIX) operating system that ultimately allowed the Internet to grow quickly and attract the attention of the world.
Apache on Linux allowed anyone with a computer and internet connection to implement a web server to serve webpages as part of the World Wide Web of internet resources. In short, if there was no open-source web server or operating system freely available in the 1990s, the rise of the internet would have been dramatically slower or even non-existent until the 2000s. The internet and the World Wide Web grew up around open source and Linux.
3 Ways to Host Web Apps in the Cloud
Two decades later, we find ourselves running a plethora of complex web apps (and the associated data) on millions of servers across the internet in a wide variety of weird and wonderful ways. These web apps and the servers that host them are now referred to as the cloud instead of the World Wide Web, and just like the internet of the 1990s, today’s cloud technologies grew up around, and continue to revolve around, Linux and open source.
The public cloud consists of servers on the internet that can be rented commercially by anyone, whereas the private cloud consists of servers within an organization’s private data center. Regardless of whether you are connecting to a public or private cloud provider, there are three main ways that you can host web apps on a cloud server.
Software as a Service (SaaS)
The simplest way is to pay a cloud provider to run your custom web app on their servers, or create a private cloud in your organization specifically to run a web app; this is often called software as a service (SaaS). Facebook, Google, Twitter, Instagram, Steam and Netflix are all examples of SaaS.
Platform as a Service (PaaS)
Another method involves paying a cloud provider to run your containerized web apps within the cloud. A container is a subset of an existing operating system that contains just enough operating system software to run a specific web app.
Programs such as Docker can be used to execute hundreds or thousands of these containers on a single operating system installed on a cloud server. This type of structure is often called platform as a service (PaaS) since you are paying to run your containers on someone else’s platform. Amazon Web Services (AWS), Microsoft Azure and Google App Engine are examples of PaaS cloud providers.
Infrastructure as a Service (IaaS)
A third method involves renting hardware from a cloud provider to run your own virtualized operating systems. You must then configure these operating systems and the Web apps that they run, as well as provide ongoing security and maintenance for them. This approach is called infrastructure as a service (IaaS).
Linux in the “As a Service” Model
So where does Linux fit into SaaS, PaaS and IaaS? Since Linux doesn’t require expensive operating system licensing in addition to the cloud provider costs, it’s the operating system most commonly used by SaaS, PaaS and IaaS.
Hosting operating systems within the cloud that require expensive licensing will drive up the cost of the service that the web app provides to customers and reduce its competitiveness in the market. Since Linux is easily customizable, you can create very small Linux containers that use a minimal amount of resources in a cloud data center, and many PaaS providers allow you to choose from a large selection of small, pre-configured Linux containers that have the supporting open-source software needed by your web app. Additionally, most IaaS providers offer several free pre-configured Linux operating system templates that you can easily copy to create your virtual operating systems on their cloud.
In other words, the zero-cost nature of Linux makes it an easy choice for a cloud container or operating system. Plus, the abundance of open-source software available for Linux allows developers to build rich web apps. When combined, these factors made Linux the premier cloud operating system a decade ago, and as cloud technologies (e.g., Docker, Kubernetes, Hadoop, Spark, NoSQL, OpenStack, etc.) were developed over the past decade, they were first or exclusively developed for use on Linux.
Moreover, as the number of cloud-based web apps skyrocketed during the past decade, so did the need for developers to test their web apps within the cloud before making them publicly available. In other words, developers needed the ability to automatically build their apps and push them quickly to pre-configured containers or virtual operating systems within the cloud, often several times a day, to test new web app features. This is called continuous deployment (CD) and can potentially involve several different pieces of cloud management software working together (e.g., Jenkins, Git, Ansible, Puppet, etc.). The IT administrator (a.k.a. system operator or sysop) responsible for supporting these developer needs is called a DevOp today, and it shouldn’t be a surprise that nearly all software that DevOps use to provide continuous deployment run exclusively on Linux.
In summary:
- The open source nature of Linux made it the premier choice for cloud containers and virtual operating systems.
- Most cloud-based web apps run on Linux, using a rich set of open-source web technologies.
- Nearly all cloud-based software technologies were developed for Linux.
- If you work with cloud technologies in any capacity (cloud administration, cloud security, DevOps), you’ll likely be working very heavily with Linux.
In fact, Linux is so pervasive within cloud environments today, that popular culture often equates cloud technologies with Linux:
CompTIA Cloud+ and CompTIA Linux+ validate the skills needed to work with cloud technologies. Download the exam objectives to see what they cover.