Cloud Instances: Renting Servers on Demand
Think of a cloud instance as renting a virtual computer. Instead of buying hardware, you launch a pre-configured virtual machine to run your applications, paying only for what you use. This is ideal for applications that need to scale up or down with demand.
WHY IT EXISTS Running applications requires server hardware, which is expensive to buy and maintain. Furthermore, traffic is rarely constant. Cloud instances were created to solve this by allowing companies to rent computing power that can be scaled up or down in minutes, paying only for the time it's active.
THE MENTAL MODEL Think of a cloud instance as renting a virtual computer. You don't own the physical machine, but you get exclusive use of a slice of its resources—CPU, memory, and storage. You can launch an instance with a specific operating system and software, use it for a few hours or years, and then terminate it when you're done, just like returning a rental car.
HOW IT WORKS A user selects a pre-configured template called an Amazon Machine Image (AMI), which contains an operating system and any desired software. Through a web service, the user then launches this AMI on a virtual machine, which is called an instance. The user has full control to create, launch, and terminate these instances as needed, and is billed by the second for the time they are active.
WHEN TO USE IT Use cloud instances for scalable deployment of applications. If you run a website, you can add more instances to handle a surge in traffic and then remove them when traffic subsides. They are also used for latency optimization, as you can choose to launch instances in geographical locations closer to your users.
WHEN NOT TO USE IT If your computing needs are very small, completely static, and don't require high availability or scalability, a single local machine might be simpler. The primary benefit of cloud instances is their elasticity, so workloads that don't need to scale gain less from the model compared to the cost.
ONE CANONICAL EXAMPLE Amazon demonstrated the power and scale of this model by migrating its own massive retail website, Amazon.com, to run entirely on its own EC2 and AWS platform. This showed that instances could handle one of the world's largest e-commerce operations.
Read the original → en.wikipedia.org
Get five bites like this every day.
Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.