Compute refers to cloud services that provide processing power to run applications and workloads.
It allows you to execute programs without owning physical servers.
Cloud compute is delivered mainly through:
Virtual Machines are cloud-based servers that run a full operating system.
Running enterprise applications, databases, and websites.
Containers package an application and its dependencies into a lightweight unit.
Microservices, DevOps pipelines, cloud-native applications.
Serverless allows you to run code without managing servers.
APIs, automation, background jobs, data processing.
You want to deploy a simple web application.
sudo apt update
sudo apt install nginx -y
Upload files to:
/var/www/html
http://your-vm-ip
Step 1: Create Docker Image
FROM nginx
COPY . /usr/share/nginx/html
Step 2: Run Container
docker run -d -p 80:80 mywebapp
Step 3: Access Website
http://your-container-ip
Step 1: Create Function
def handler(event, context):
return "Hello from Serverless Cloud!"
Step 2: Deploy to Cloud Function
Upload code to AWS Lambda or Azure Functions.
Step 3: Access via API Gateway
https://api.example.com/hello
No physical servers
High scalability
Pay-per-use
Flexible deployment models
High availability
Cloud compute provides virtual machines, containers, and serverless functions to run applications.
Each model serves different workloads, offering flexibility, scalability, and cost efficiency.