ENع
→IaaS, PaaS, SaaS
الدرس 02 · السحابة

Cloud computing: IaaS, PaaS and SaaS

لم يُترجم بعد؛ يُعرض باللغة الإنجليزية

10 دقائق9 خطوات5 أسئلةBeginner
عن هذا الدرس

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.

ستتعلّم

حدّد ما تشعر بأنك أتقنته. هذا التقييم الذاتي لا يؤثر في درجة الدرس.

شكل 2 · تفاعلي
01 / 09

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
جارٍ تحميل الرسم…
أو ← →
اقرأ الدرس خطوة بخطوة
  1. 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
  2. One 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 it
  3. Six 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 layer
  4. On-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 yourself
  5. IaaS: 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 Machines
  6. PaaS: 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 Service
  7. SaaS: 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, Salesforce
  8. Your 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 management
  9. The 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

اختبار يتاح بعد الخطوة الأخيرة.