What Is Cloud Computing? Explained Simply for Beginners

Originally published on CodingCush.
It is Saturday morning, and Meera's small saree shop is having its first big online sale. She posts the link at 9 am. By 9:05, five hundred people are trying to open her website at the same time, and the page just spins. By 9:10 the site is down, and the customers are gone. The shop did nothing wrong. Its website lived on one small server in one room, and that server could only handle so many visitors at once. Cloud computing fixes exactly this problem. Cloud computing is the on-demand delivery of IT resources over the Internet with pay-as-you-go pricing. Instead of buying, owning, and maintaining your own servers, you rent computing power, storage, and databases from a provider, use only what you need, and pay only for what you use.
Why One Server of Your Own Breaks
A server is just a computer that answers requests, one after another, with fixed memory and processing power, like a shop with only three chairs. Ten visitors are fine. Five hundred at once form a queue, the answers slow down, and sooner or later the machine gives up. That is what happened on sale day: a server sized for a quiet Tuesday met a Saturday crowd.
Buying a bigger server sounds like the fix, but it has three problems. First, you pay for the big machine all year, though you only need it on a few busy days. Second, buying takes time, while the sale is already over. Third, one machine is still one machine: if its hard disk dies or the power goes out, your website goes out with it. This is the problem the cloud was built to solve. Instead of owning the chairs, you rent a hall that grows and shrinks with the crowd.
Three Mistakes Beginners Make With the Cloud
Before we go further, the three mistakes that cause most beginner cloud trouble. First, many people think moving to the cloud means their site can never go down. It does not. Microsoft says data can be mirrored at multiple redundant sites for backup and disaster recovery, but you have to set that up. A backup you never tested is just a hope, so test a restore once, before you need it for real.
Second, many people think the cloud is cheap, so they leave everything running. It is cheap only when you use what you need, because you pay for what you use. A forgotten test server still bills you on Sunday. Turn off anything you are not using, and set a billing alert on the very first day.
Third, many people think the cloud handles all security. It handles part of it. The provider secures its own buildings and machines, but you still secure your side: strong passwords and access only for people who need it.
What the Cloud Actually Is
Amazon Web Services puts it like this: cloud computing is the on-demand delivery of IT resources over the Internet with pay-as-you-go pricing, and instead of buying, owning, and maintaining physical data centers and servers, you can access technology services such as computing power, storage, and databases on an as-needed basis. The AWS cloud computing page explains this in full. On-demand means you ask and you get it in minutes, not weeks. Microsoft's cloud computing guide agrees: most cloud services are provided self service and on demand, so even large amounts of computing resources can be provisioned in minutes. Pay-as-you-go means the bill follows your use. A quiet week and a busy Saturday cost what they use, not a giant machine all year. Rented, not owned, means the provider buys the buildings, the power, the cooling, and the machines. You already use it daily: webmail, photo backup, and streaming all run on someone else's computers. The cloud is not a place in the sky. It is other people's computers, in data centers, rented by the minute.
IaaS, PaaS, and SaaS: Three Ways to Rent
Cloud services come at three levels, and your level decides how much work stays yours. Infrastructure as a Service, or IaaS, gives you the basic building blocks: virtual computers, storage, and networking. Amazon says IaaS gives you the highest level of flexibility and management control. You still look after the operating system and software, but the hardware is someone else's problem. Platform as a Service, or PaaS, goes one step further: it removes the need to manage the underlying infrastructure, so you can focus on your applications. You write code, upload it, and the platform runs it. Software as a Service, or SaaS, is a complete product run and managed by the provider. Webmail is the classic example. If your team runs apps in containers, Kubernetes, explained simply, shows how teams manage lots of them at once.
| Model | What you rent | Who manages the machine |
|---|---|---|
| IaaS | Virtual computers, storage, networking | Provider: hardware. You: the rest |
| PaaS | A platform to build and run apps | Provider: hardware and operating system |
| SaaS | A finished app you just use | Provider: everything |
Clouds also come in three flavours: public, private, and hybrid. A public cloud is run by a third-party provider and shared by many companies, and it is the normal starting point for a small shop. A private cloud is owned by one organization, and a hybrid mixes the two.
Amazon Web Services' "What is cloud computing" page, with its definition of cloud computing.
A Two-Minute Check That Your Site Is Alive
Moving to the cloud does not mean you stop checking on your site. The simplest health check is one curl command: it asks your site for its front page and reports the answer and how long it took. Run it after any move or deploy, and again on sale day. Here it is, run against this very site:
curl -s -o /dev/null -w "HTTP status: %{http_code}\nTime taken: %{time_total} seconds\n" https://codingcush.com HTTP status: 200 Time taken: 1.294668 seconds The number 200 means the site answered fine. A number like 500 means the server is sick, and no connection at all means the site is down. Save this command in your notes. It costs nothing, and it is the first thing to run whenever someone says the site is not working.
How a Small Shop Would Actually Move to the Cloud
So how would Meera's shop move? Not all at once, and not in one scary weekend. Move the easy parts first: the shop's photos and pages. Put them behind a content delivery network, so copies of the site sit close to customers, and read what a CDN does, explained simply, before you set one up. That alone helps on the next busy day.
Next, move the app itself to a platform service, a PaaS. You upload the same code, the platform runs it, and you can raise the number of running copies for a sale, then lower it after. Then, if the shop grows, pack the app into containers, and learn what Docker Compose does to run them together on your own machine first. Keep the two habits from earlier: tested backups, and a billing alert set on day one. Google Cloud says new customers get $300 in free credits, and AWS and Microsoft both publish free tier pages, so try it with small test projects first.
Questions Beginners Actually Ask
What is cloud computing in simple words?
Cloud computing is renting computers, storage, and software over the internet instead of buying and looking after your own machines. You use what you need and pay for what you use.
Is cloud computing free?
Not forever, but trying it costs little or nothing. Google Cloud says new customers get $300 in free credits, and AWS and Microsoft both publish free tier pages. Check the provider's own free tier page before you start, and set a billing alert on day one.
Do I need the cloud for a small website?
Not always. A quiet blog or a small shop page can live happily on simple shared hosting. The cloud earns its keep when your traffic jumps around, when you want data copied to more than one place, or when you are tired of fixing servers yourself.
Is my data safe in the cloud?
Safer than on one machine in one room, if you do your part. Microsoft notes that cloud providers offer a broad set of policies, technologies, and controls that strengthen your security posture. Your part is strong passwords, access only for people who need it, and tested backups.
A Short Ending
Meera's sale failed because one small server met five hundred visitors at once, and the fix was never a bigger box in the same room. The cloud rents you as much computer as the moment needs. Start with the free tier, test your backups, and set a billing alert. Your next sale day will still be busy. This time, the website will be ready.
原文:https://www.a8q9.cn/en/article/what-is-cloud-computing-explained-simply-for-beginners-01a28b.html