Cloud computing: IaaS, PaaS and SaaS
لم يُترجم بعد؛ يُعرض باللغة الإنجليزية
عن هذا الدرس
Cloud computing means renting computers over the internet instead of owning them. Every app runs on six layers: hardware, virtualization, operating system, runtime, the app and its data, and someone has to run each one. Take one tiny Python web app through four ways of running it, on-premises, IaaS, PaaS and SaaS, and watch the line between what the provider runs and what you run climb up the stack.
Computers you rent
Cloud computing means renting computers over the internet instead of owning them. NIST, the US standards body, defines it as on-demand network access to a shared pool of servers, storage and services that you can take and release quickly.
cloud computing (NIST SP 800-145): on-demand network access to a shared pool of computing resources taken and released quickly five traits: on-demand self-service, broad network access, resource pooling, rapid elasticity, measured service three service models: IaaS, PaaS, SaaS
اقرأ الدرس خطوة بخطوة
Computers you rent
Cloud computing means renting computers over the internet instead of owning them. NIST, the US standards body, defines it as on-demand network access to a shared pool of servers, storage and services that you can take and release quickly.
cloud computing (NIST SP 800-145): on-demand network access to a shared pool of computing resources taken and released quickly five traits: on-demand self-service, broad network access, resource pooling, rapid elasticity, measured service three service models: IaaS, PaaS, SaaSOne small web app
Our worked example is app.py, a tiny Python web app. A web server calls the function app for every visit, and it answers 200 OK with the text Hello, cloud! We will run this same file four different ways.
def app(environ, start_response): h = [("Content-Type", "text/plain")] start_response("200 OK", h) return [b"Hello, cloud!"] a visit → app() → "200 OK" + "Hello, cloud!" the same file, four ways to run itSix layers under every app
Running app.py takes six layers, bottom to top: hardware, virtualization (software that splits one machine into several virtual ones), an operating system, a runtime (here Python), the app itself and its data. Someone must keep every layer working.
6 Data what the app stores and its users 5 App the program itself 4 Runtime what runs the code: here, Python 3 Operating system Linux or Windows on each machine 2 Virtualization software that splits one machine into virtual ones 1 Hardware the physical servers, disks and network someone has to run every layerOn-premises: you run everything
Before the cloud, the usual way was on-premises: you buy the servers, keep them in your own building and run all six layers yourself, from swapping broken disks to installing Python. The most control, and the most work.
on-premises provider runs: nothing you run: all 6 layers buy, rack, power and cool the servers install and patch everything yourselfIaaS: rent the machine
Infrastructure as a Service (IaaS): the provider runs the hardware and virtualization and rents you a virtual machine. You still install and patch (update) the operating system, Python and app.py. Examples: Amazon EC2, Google Compute Engine, Azure Virtual Machines.
IaaS Infrastructure as a Service provider runs: hardware, virtualization you run: OS, Python, app.py, data you get: a virtual machine e.g. Amazon EC2, Google Compute Engine, Azure Virtual MachinesPaaS: hand over the code
Platform as a Service (PaaS): you upload app.py and look after its data. The platform supplies the operating system and Python, starts your app and keeps it running. Examples: Google App Engine, AWS Elastic Beanstalk, Azure App Service.
PaaS Platform as a Service provider runs: hardware … runtime (Python) you run: app.py, data you upload: your code e.g. Google App Engine, AWS Elastic Beanstalk, Azure App ServiceSaaS: just use the app
Software as a Service (SaaS): the provider runs the whole app, and you simply use it, often in a web browser. You write no code, so app.py is not needed here. Examples: Gmail, Microsoft 365, Salesforce.
SaaS Software as a Service provider runs: everything up to the app you run: your data and accounts you write no code: you use theirs e.g. Gmail, Microsoft 365, SalesforceYour data stays yours
Some jobs never move to the provider. Microsoft's shared responsibility guide says you always keep your data, your devices, your accounts and who may access them, whichever model you choose. The provider guards its layers; you guard yours.
always yours, in every model (Microsoft: shared responsibility) data endpoints (your devices) accounts access managementThe line moves up
Left to right, the line between the provider and you moves up the stack. The provider runs more and you run less: less to patch, but less control over the layers below the line. Choose the model that fits what you need to control.
On-prem provider 0 · you 6 IaaS provider 2 · you 4 PaaS provider 4 · you 2 SaaS provider 5 · you 1 more provider → less work, less control
أسئلة سريعة: 5
اختر إجابة واحدة لكل سؤال. يمكنك تغيير اختياراتك قبل التحقق منها.
01You rent a virtual machine and install Python and your app on it yourself. Which model is that?
With Infrastructure as a Service the provider runs the hardware and virtualization; you get a virtual machine and run the operating system, the runtime and the app yourself.
02With PaaS, what do you still look after?
A platform supplies the operating system and the runtime and keeps your app running. You hand over your code and stay in charge of the app and its data.
03Which of these is an example of SaaS?
Gmail is a finished app that you simply use. EC2 and Azure Virtual Machines rent you machines (IaaS); App Engine runs your code for you (PaaS).
04In every cloud model, which of these always stays your responsibility?
Microsoft's shared responsibility guide says you always keep your data, endpoints, accounts and access management, whichever model you choose.
05Going from on-premises to IaaS to PaaS to SaaS, what happens?
The line between the provider's layers and yours climbs up the stack: less to patch and repair, but less control over the layers below the line.
المسرد
- Cloud computing
- Renting computing over the internet. NIST defines it as on-demand network access to a shared pool of configurable computing resources that can be taken and released quickly.
- On-premises
- Running your own servers in your own building, where you are responsible for every layer.
- Virtualization
- Software (a hypervisor) that splits one physical machine into several virtual machines, each with its own operating system.
- Runtime
- The software that runs your code, such as the Python interpreter for a Python app.
- IaaS (Infrastructure as a Service)
- The provider runs the hardware and virtualization and rents you virtual machines; you run the operating system and everything above it. Example: Amazon EC2.
- PaaS (Platform as a Service)
- The provider runs everything up to the runtime; you upload your code and look after your app and its data. Example: Google App Engine.
- SaaS (Software as a Service)
- The provider runs a complete app that you simply use, often in a web browser. Example: Gmail.
- Shared responsibility
- The split of jobs between the cloud provider and you. Some jobs, such as your data and accounts, always stay with you.
الملاحظات والمصادر
- The six-layer stack is a common teaching picture; providers draw it with more rows (networking, storage, middleware, identity) and the exact split differs from service to service.
- The lines blur in practice: AWS Elastic Beanstalk, for example, runs your app on EC2 virtual machines you can still log into, and many services sit between the three classic models (containers as a service, serverless functions).
- Microsoft's shared responsibility guide says that in every model you keep responsibility for your data, endpoints, accounts and access management; AWS describes the same split as security 'of' the cloud (the provider) and 'in' the cloud (you).
- NIST SP 800-145 also names four deployment models (private, community, public and hybrid cloud); this lesson is about the three service models.
- app.py is a real WSGI app (PEP 3333), the standard interface between Python web apps and web servers. Python's own wsgiref module can serve it, and on PaaS a server such as Gunicorn calls app() for you.
- NIST SP 800-145: The NIST Definition of Cloud Computing
- Microsoft Learn: Shared responsibility in the cloud
- AWS: Shared Responsibility Model
- AWS: Types of cloud computing
- Google Cloud: PaaS vs. IaaS vs. SaaS vs. CaaS
- AWS: What is virtualization?
- Amazon EC2 User Guide: concepts
- Google App Engine: an overview
- AWS Elastic Beanstalk Developer Guide
- Azure App Service overview
- PEP 3333: Python Web Server Gateway Interface v1.0.1
- Python docs: wsgiref, WSGI utilities and reference implementation
اختبار يتاح بعد الخطوة الأخيرة.