Sub topic 1
What cloud computing is
Cloud computing is a way of using computing resources, such as servers, storage, databases, and software, over a network. You rent them from a provider instead of buying and running the hardware yourself. This chapter defines the term and sets up the ideas the rest of the tutorial builds on.
Prerequisites
This chapter assumes you already know:
- What a server, an operating system, and an application are.
- How to use web applications.
- Basic networking terms such as IP address and HTTP.
You do not need any experience with a specific cloud provider.
A working definition
The US National Institute of Standards and Technology (NIST) defines cloud computing as a model for enabling convenient, on-demand network access to a shared pool of configurable computing resources. Those resources can be provisioned and released quickly with minimal management effort.
Three parts of that definition matter most:
- Shared pool. Many customers draw on the same large set of hardware owned by the provider.
- Network access. You reach the resources over the internet or a private network, not by touching a machine.
- Quick provisioning. You request resources and get them in minutes, usually through a web console, a command-line tool, or an API.
An API (application programming interface) is a set of requests that programs can send to a service. Because the cloud is controlled through APIs, you can create and delete infrastructure with code.
Cloud versus running your own servers
With on-premises computing, your organization buys servers, installs them in a room it controls, and staffs the people who maintain them. You pay up front and you must guess how much capacity you will need.
With the cloud, the provider owns and runs the data centers. You request capacity when you need it and release it when you do not. The following diagram shows the difference in who owns the hardware.
A first look at the cloud in practice
The command below asks AWS to create one small virtual machine. A virtual machine (VM) is a software-simulated computer that runs on a provider's physical hardware.
# The AMI ID below is a placeholder; use an image ID that exists in your region.
aws ec2 run-instances \
--image-id ami-0123456789abcdef0 \
--instance-type t3.micro \
--count 1Nothing was shipped to you and no one installed a machine. A single request produced a running computer. You could delete it with another request and stop paying for it.
Why this matters for the rest of the tutorial
Not all cloud services give you the same thing. Some hand you a bare virtual machine. Others hand you a place to run your code, or a finished application. The three classic service models, IaaS, PaaS, and SaaS, describe these differences by how much of the technology stack the provider manages for you. Later chapters cover the characteristics that make the cloud work, the layers of the stack, and each model in turn.
Common misunderstandings
- "The cloud is someone else's computer" is only half true. The hardware is theirs, but the defining features are self-service, pooling, and metered use.
- Cloud does not mean automatic security or low cost. You still make choices that affect both, and later chapters on shared responsibility and billing cover them.
- Cloud is not one product. It is a family of services at different levels of abstraction.
Exercise
A company orders ten physical servers, waits six weeks for delivery, and installs them in its own server room. Which parts of the NIST definition of cloud computing does this setup fail to meet?
Show answer
It is not on-demand or quickly provisioned, because delivery takes weeks. It is not a shared pool run by a provider, because the company owns and maintains the hardware itself. It also lacks quick release of resources, because the company cannot return the servers when it no longer needs them.
Exercise
In the aws ec2 run-instances example, what makes this a cloud interaction rather than a traditional server purchase?
Show answer
A single API request, made over the network, provisioned a virtual machine from the provider's shared pool in minutes. No hardware was bought or installed, and the instance can be released with another request.