Cloud service models, elasticity and trade-offs
What is cloud computing?
Cloud computing lets you obtain computing resources and services when needed instead of necessarily purchasing the machines yourself. For our bookstore, this could mean renting a virtual server or using a provider-managed application platform. AWS (Amazon Web Services) is one cloud provider. Resources still run on physical infrastructure, and cloud use can create costs. You can learn the concepts without opening an account.
IaaS, PaaS and SaaS
These traditional categories describe how much the provider manages. With infrastructure as a service (IaaS), you rent building blocks such as a VM and manage its guest OS and application. Amazon EC2 is an example. With platform as a service (PaaS), the provider manages more of the execution environment while you deploy your application; AWS Elastic Beanstalk is a platform-style example, although its underlying resources and configuration still require attention. Software as a service (SaaS) is a finished application you use, such as hosted email. Categories can overlap; check each service contract.
Capacity, scaling and elasticity
Capacity is how much work a system can handle under stated conditions. Scaling changes that capacity; elasticity adjusts capacity to changing demand, including reducing it when demand drops. Assume one healthy worker handles 100 requests per minute, the work divides evenly, and there are no other bottlenecks. At 80 requests per minute, one worker is enough in this simplified model; at 260, at least three are needed. When demand falls, extra capacity can be removed if the application is designed for it. Real systems need measured capacity, headroom and scaling limits.
Hypothetical demand and minimum worker counts
Demand/min Workers80 1260 380 1Public, private and hybrid cloud
A public cloud provider offers cloud services to multiple customers with logical isolation; public does not mean all customer resources are exposed to the Internet. A private cloud provides cloud capabilities for one organization. A hybrid cloud connects distinct environments, such as a private cloud and public cloud, so they can work together. Merely owning a server does not make it a private cloud. On-premises means infrastructure at an organization’s own site.
Cost, control and shared responsibility
Metered consumption means tracking billable usage such as time, storage or requests. It is not a promise that every service charges only for active requests. For a hypothetical worker price of $0.10/hour, three workers for two hours cost $0.60 for compute alone. Storage, transfer and other charges are excluded; this is not an AWS quote. An owned server may suit steady workloads and existing staff; rented VMs offer flexible OS control; a managed platform may reduce operations for a small team. AWS protects the infrastructure of its cloud; customers retain service-dependent duties such as securing their data, access and, for EC2, guest OS updates. Cloud is not automatically cheaper, secure or unlimited.
Practice: pick a hosting model
The bookstore has two developers, traffic spikes on weekends, and no requirement to customize the OS. Choose a managed application platform, rented VM or owned server and explain one advantage and one drawback. Calculate the hypothetical worker count for 180 requests per minute using the earlier assumptions. A managed platform is a reasonable starting point, not a universal answer. Next: AWS accounts and global infrastructure.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Cloud service models, elasticity and trade-offs — knowledge check
Apply the concepts to the fictional bookstore and related scenarios.
The team needs to customize the guest OS. Which traditional service model offers the clearest fit?
Traffic drops after a sale and the app safely releases extra capacity. What does this illustrate?
Each worker handles 100 requests/minute under the stated toy assumptions. Demand is 260. What is the minimum count?
Three workers run for two hours at a fictional $0.10 per worker-hour. What is compute cost alone?
A team runs an application on EC2. Which security task remains the customer’s responsibility?