Back

Cloud Computing: From Virtual Machines to Serverless

Cloud Computing: The Evolution from Virtual Machines to Serverless

 

1. The Heavyweight: Virtual Machines (VMs)

Before the cloud as we know it, companies realized that running one app per physical server was a massive waste of resources. The solution was the Virtual Machine.

  • How it works: Software called a “hypervisor” slices a single physical server into multiple, independent virtual servers.

  • The Catch: Every single VM requires its own complete Operating System (OS) to function.

  • The Result: VMs are highly secure and isolated, but they are “heavy.” Booting them up takes minutes, and they consume a lot of memory and CPU just to keep their individual operating systems running.

2. The Lightweight Revolution: Containers

If VMs virtualize the hardware, containers virtualize the software. This phase completely changed how modern applications are built and shipped.

  • How it works: Instead of installing a heavy OS for every app, containers share the host system’s OS kernel. They package the application code (like a Python backend or a custom WordPress environment) with only the exact libraries it needs to run.

  • The Game Changer: The rise of Docker made this standard practice. Because containers are stripped of the OS bloat, they boot in milliseconds.

  • The Result: Ultimate portability. A containerized app runs exactly the same way on a massive cloud cluster as it does locally on a Mac.

3. The Ultimate Abstraction: Serverless (FaaS)

Containers are incredibly efficient, but you still have to manage, update, and scale the underlying infrastructure (usually with tools like Kubernetes). Serverless computing, also known as Function-as-a-Service (FaaS), removes the infrastructure entirely from your view.

  • How it works: You just write a piece of code and upload it to the cloud provider (like AWS Lambda or Google Cloud Functions). The cloud handles all the routing, server management, and scaling invisibly in the background.

  • Event-Driven: The code sits dormant until an event triggers it—like a user uploading a photo or submitting a form.
  • The Result: You reach a true “pay-for-what-you-use” model. If your function is executed a million times, it scales automatically. If nobody uses your app for a month, you pay exactly zero dollars.
luna
luna
http://192.168.1.39:5999

Leave a Reply

Your email address will not be published. Required fields are marked *