Docsity

Cloud computing scheme, Schemes and Mind Maps of Distributed Programming and Computing

Toggle sidebar
bg1
What is cloud computing(CC)?
In simple terms, it is like having your computer on the internet. Whatever you can do on your
PC can be done on the cloud, unlocking a treasure chest of possibilities.
If cloud computing is the same as having a personal computer then why use cloud
computing?
The PC you use often will have 8 to 16 GB’s of RAM , possibly more and a single
processor. This works well for personal use, but fails when you have to scale and serve
millions of users . In order to do that you would need a Chonky System , Powerful
processors , High capacity Ram , High speed storage , GPU’s etc. Well building it yourself
would be good if you were a crypto bro and earning millions but realistically speaking it’s not
feasible for a single person to do and maintain it , hence we offload all our troubles to cloud
providers which massively helps us .Along the course you will learn the advantages and
disadvantages of using cloud services .
This document provides an overview of what can be achieved with cloud computing. Before
diving into practical examples, we will first explore the different models of cloud services
Prerequisite for this lab is a github account and some Coffee.
Services available to us
Iaas Infrastructure as a service
Here the cloud providers offer the infrastructure for you to work on. You will need to
configure your resources such as ram, cpus, operating system [ maybe more ]. Basically you
will get to customize your PC on the internet and use it however you want.
A good example for that is an EC2 instance of AWS.
Paas Platform as a service
Here the cloud providers hide away the hardware configuration and most of the other stuff,
and just provide the service that you would want, for example you would need a database.
Well, here you don't have to worry about allocating ram, disk space, or networking. You
would need to worry about the schema of the tables, the constraints and stuff.
Saas Software as a service
Here they directly provide you the service, no need to worry about configuring anything. Just
directly use it. Good example would be your gmail, google drive etc. Sign up on
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Cloud computing scheme and more Schemes and Mind Maps Distributed Programming and Computing in PDF only on Docsity!

What is cloud computing(CC)? In simple terms, it is like having your computer on the internet. Whatever you can do on your PC can be done on the cloud, unlocking a treasure chest of possibilities.

If cloud computing is the same as having a personal computer then why use cloud computing? The PC you use often will have 8 to 16 GB’s of RAM , possibly more and a single processor. This works well for personal use, but fails when you have to scale and serve millions of users. In order to do that you would need a Chonky System , Powerful processors , High capacity Ram , High speed storage , GPU’s etc. Well building it yourself would be good if you were a crypto bro and earning millions but realistically speaking it’s not feasible for a single person to do and maintain it , hence we offload all our troubles to cloud providers which massively helps us .Along the course you will learn the advantages and disadvantages of using cloud services.

This document provides an overview of what can be achieved with cloud computing. Before diving into practical examples, we will first explore the different models of cloud services Prerequisite for this lab is a github account and some Coffee.

Services available to us

Iaas Infrastructure as a service Here the cloud providers offer the infrastructure for you to work on. You will need to configure your resources such as ram, cpus, operating system [ maybe more ]. Basically you will get to customize your PC on the internet and use it however you want. A good example for that is an EC2 instance of AWS.

Paas Platform as a service Here the cloud providers hide away the hardware configuration and most of the other stuff, and just provide the service that you would want, for example you would need a database. Well, here you don't have to worry about allocating ram, disk space, or networking. You would need to worry about the schema of the tables, the constraints and stuff.

Saas Software as a service Here they directly provide you the service, no need to worry about configuring anything. Just directly use it. Good example would be your gmail, google drive etc. Sign up on

Practice Time…

A >> IAAS - Infrastructure Backend as a service

One of the widely used cloud services is object store, so unlike your traditional file system where data is stored as files and folders here you store data as blobs or objects, these objects are associated with a variable amount of metadata, and a globally unique identifier. Object storage systems allow retention of massive amounts of unstructured data in which data is written and read. Here for object store we are going to use Supabase, supabase is open source baas (backend as a service), it provides a lot of free services such as Authentication, postgresql database, realtime database and object store.

  1. Sign up for Supabase account https://supabase.com/ Once you do, you should see a page like this
  2. When you create a new project for the first time it will ask you to create an organization, go ahead and do it under personal and free tier.
  1. Once you create the new project your screen will display something similar to the first image below. This would be the first Screenshot(SS1) required. Once you create the new project you will also get the Project api Keys and Project URL [ Scroll down a bit]. Copy those 2 and paste it somewhere that's easy to access.

(You don't need to copy the shown api key and url, by the time you see this docs the project would have been deleted XD)

  1. You can explore any services, for now we will focus on object store.

Well here you can create a bucket, and store data by uploading them by using the ui, but since that is not suitable for large projects, We will do it through automated script.

  1. For the supabase api, you would need to install the supabase module for python. pip install supabase
  2. Next open up the supabase_object_store.py file, now you need to add your api key and project url. You can change the bucket name or the image path.
  3. Run each step individually by commenting and uncommenting the other step. Code is extensively commented so that you understand what each part of the code does. At the end you should see a bucket created, cat image uploaded, and a public url to view the image. (Note you can upload the portfolio image here, and can use the public url for the upcoming practical. The Screenshots and Links required for evaluation are mentioned below. - SS3 - Successful bucket creation - SS4 - Successful image upload

- Paste the public URL of the image obtained from running step4 of the python file given to you. - Example : https://lvxhhflqjupwgezviuqh.supabase.co/storage/v1/obje ct/public/images/cat.jpeg

  1. You can just remove the default boiler plate code on Napkin and paste in the code we provided(or any code of your own. BE CREATIVE ). Run the code to check if the code is error free.
  2. Go ahead and deploy it.
  3. Once that’s done copy the URL generated and paste it on a browser. Take a Screenshot(SS6). Make sure the URL is visible for evaluation.
  1. Next we are going to signup for vercel https://vercel.com/login, ideally use the same github account.

(if you use different email, then you need to connect to the GitHub explicitly)

  1. Now we will import project from github and deploy

Go to dashboard

Import project

Install

Select the repository

6.Finally the project is deployed. This would be the final Screenshot(SS8). Additionally, also paste the link of the deployed site. Example : https://portfolio-ywnr.vercel.app/

🎉 Congratulations on completing your first lab session. Hurray!

If you are interested to explore even more cloud services for free here is the extensive list https://free-for.dev/#/