Cloud computing
Облачные вычисления
A way to get computing resources such as servers and storage over a network, when you need them. You can add or release capacity without buying hardware for each project.
Also known as: облако, IaaS, PaaS, SaaS
What makes computing a cloud service?
Suppose your team needs ten servers for a week of testing. Instead of ordering hardware or filing a ticket for someone to set it up, you request the servers through a console or API. When the test ends, you can release them. That combination of self-service, pooled capacity, and the ability to add or remove resources is what distinguishes cloud computing from simply renting a server in someone else's data center.
What happens when you request a resource?
The cloud platform allocates capacity from a pool. A virtual machine, for example, gets CPU time and memory from a physical host that may run other isolated machines. The platform meters usage, but what you pay for depends on the service and pricing plan. An idle VM can still incur compute charges, and deleting it may leave behind billable disks or snapshots.
Cloud computing doesn't have to happen on the public internet. A public cloud serves multiple customers, each with their own access controls. A private cloud is dedicated to one organization and may run in its own data center. A collection of servers in that data center isn't automatically a private cloud: teams still need a way to provision and release resources on demand.
IaaS, PaaS, and SaaS: who runs what?
- Infrastructure as a Service (IaaS): You provision infrastructure such as VMs, disks, and networks. The provider maintains the physical hosts and virtualization layer; you patch the guest OS and run your application.
- Platform as a Service (PaaS): You deploy your application to a managed runtime. The provider operates the infrastructure, OS, and runtime, while you manage your code, configuration, and access to application data.
- Software as a Service (SaaS): You use a finished application, such as hosted email. The vendor operates the application; your organization still decides who can sign in and what they're allowed to do.
Example: handling a daily traffic spike
A ticketing site expects a rush at noon. Its load balancer spreads requests across several application instances. With an autoscaling policy, the platform can start more instances as demand rises and remove them when traffic drops. But if every request waits on a saturated database, adding application instances may make things worse by sending the database more concurrent queries. Check where requests spend their time before choosing what to scale.
What interviewers look for
A common prompt is to choose between running an app on VMs and deploying it to a managed platform. If the app needs a custom kernel module, VMs may give you the control you need. If it uses a supported runtime and the team wants to spend less time patching hosts, a managed platform may be a better fit. In either case, explain what the team still owns: access controls, monitoring, and a recovery plan. Deploying a single instance in the cloud doesn't make it highly available.