Sub topic 2
The essential characteristics: on-demand, elastic, measured
This chapter assumes you know what a server, an operating system, and an application are. It also assumes you are comfortable with basic networking terms such as IP address and HTTP. The previous chapter defined cloud computing as renting computing resources over a network instead of owning them. Here we look at the properties that make a service count as "cloud" and not just "hosted somewhere else."
The five characteristics
The US National Institute of Standards and Technology (NIST) defines cloud computing by five essential characteristics. This chapter groups them under three ideas: on-demand, elastic, and measured.
| Characteristic | What it means in practice |
|---|---|
| On-demand self-service | You provision resources yourself, without talking to a person. |
| Broad network access | Resources are reached over the network with standard protocols such as HTTPS. |
| Resource pooling | The provider serves many customers from a shared pool of hardware. |
| Rapid elasticity | Capacity grows and shrinks quickly, often automatically. |
| Measured service | Usage is metered, so you can monitor it and are billed for what you use. |
Resource pooling depends on virtualization, which a later chapter covers. Here we concentrate on the three properties you notice every day as a user.
On-demand self-service
In a traditional data center, getting a server means filing a request, waiting for approval, ordering hardware, and waiting for it to be installed. That can take weeks. In the cloud, you call an API or click a button, and the resource exists in seconds or minutes.
# Ask for one small virtual machine. The AMI ID is a placeholder.
aws ec2 run-instances \
--image-id ami-0123456789abcdef0 \
--instance-type t3.micro \
--count 1No ticket and no human on the provider's side is involved. Everything the console can do is also available through an API, which is why cloud infrastructure can be automated with scripts and tools.
Rapid elasticity
Elasticity means capacity follows demand. When traffic rises, you add resources. When it falls, you release them. To you, the supply looks close to unlimited.
Compare this with owning hardware. You must buy enough servers for your busiest day, and they sit idle the rest of the year. With elasticity you pay for the peak only while the peak lasts.
Two terms are often confused:
- Scaling out (horizontal) adds more machines.
- Scaling up (vertical) uses a larger machine.
Elasticity is usually discussed in terms of scaling out, because it can be done without stopping the application.
Measured service
The provider meters your use of each resource, such as compute hours, gigabytes stored, or requests served. This has two effects. You can see your usage in dashboards and alarms. You are also billed from those measurements, so cost follows consumption. The billing models themselves are a later chapter.
Metering also has a downside. A forgotten resource keeps running and keeps billing.
Common errors
- Treating a hosted server as cloud. If a vendor needs a contract and a week to give you a machine, it fails the on-demand test.
- Assuming capacity is infinite. Providers apply quotas to your account, and some regions run short of particular machine types.
- Forgetting to release resources, which turns elasticity into a surprise bill.
- Expecting elasticity without designing for it, as in the warning above.
Exercise
A company runs its web shop on its own servers. Every November it buys extra servers for the holiday peak, and they sit idle in January. Which essential characteristic would address this problem, and what must the company still do to benefit from it?
Show answer
Rapid elasticity. The company could add capacity during the peak and release it afterward, paying only while the extra capacity runs (measured service). To benefit, it must design the application so it can run on several servers, and it must configure autoscaling or scale manually, because elasticity is not automatic.