Google Cloud Platform: Introduction To Cloud Computing
Google Cloud Platform: Introduction To Cloud Computing
• The Cloud platform provides on demand services that are always on,
anywhere, anytime and anyplace.
Page | 1
Google Cloud Platform
• Organizations become agile because they are able to grow as well as shrink
computing resources as per the demand, paying only for the resources they
actually use. This prevents excess payments which may have been there
for bigger infrastructure in order to handle the occasional demand on the
servers.
• Applications can be managed from Remote places through the Internet from
any geographical location.
Cloud Characteristics
• Remotely hosted: Services or data are hosted on remote infrastructure but
available globally.
• Rapid elasticity: A user can utilize as much or as little of the cloud capability
as required by them. For example, resources (ex: webserver of a site on
the cloud) can be scaled to meet high traffic in peak times or scaled down
in times of less traffic.
Page | 2
Google Cloud Platform
• Fully managed by the provider: The user is abstracted from the details of
how the service is managed in the cloud. For example, the user need not
worry about aspects such as hardware used, software updates/patches,
plug-ins, firewall security. There is optimum utilization of resources and as
well as sharing of resources. Everything is taken care of by the provider.
• Saves enterprises the costs of buying and maintaining their own hardware.
• Since the data is on the cloud, there can be no single point of failure. e.g.:
Amazon Web Services (AWS), Google Cloud Platform (GCP), Microsoft
Azure, Rackspace Cloud.
• Provides the developers with the necessary tools to create, test, host and
maintain applications. Enables organizations to focus on development
without having to worry about underlying infrastructure. Facilitates
collaborative work even if teams work remotely.
Page | 3
Google Cloud Platform
• Data is secure in the cloud; equipment failure does not result in loss of
data.
The following figure summarizes the functionality of the three service models
of the cloud.
Page | 4
Google Cloud Platform
• Cost efficiency
• Ease of use
• Improved Performance
• Reduced Software Cost and Instant Software Updates
• Unlimited Storage Capacity
• Durability of data
• High availability of the data
• Device Independence
• Cloud providers are quite competitive and they constantly expand their
services to differentiate themselves from their competition.
• This has led public laaS providers to offer far more than common compute
and storage instances.
• With serverless computing, developers simply create code and the cloud
provider loads and executes that code in response to real-world events, so
users do not have to worry about the server or instance aspect of the cloud
deployment.
• Users only pay for the number of transactions that the function executes.
AWS Lambda, Google Cloud Functions and Azure Functions are examples of
serverless computing services.
Page | 5
Google Cloud Platform
When we discuss cloud computing, we generally talk about one of three possible
deployment choices for application code: Infrastructure as a Service (laaS),
Platform as a Service (PaaS) or Software as a Service (SaaS). Which one is right
for our project depends on our specific needs for the code base that we are working
on.
1) Public Cloud:
• These are the cloud networks which are open for use by general public and
they exist beyond the firewall of an organization, fully hosted and managed
by cloud service providers.
• Our data is stored in the provider's data center and the provider is
responsible for the management and maintenance of the data center.
• Note: Even though we don't control the Security of a public cloud, all of our
data remains separate from others and security breaches of public clouds
are rare.
2) Private Cloud:
• A private cloud hosting solution, also known as an internal or enterprise
cloud, resides on company's intranet or hosted data center where all of our
data is protected behind a firewall.
• This can be a great option for companies who already have expensive data
centers because they can use their current infrastructure.
• Organizations go for a private cloud when they have strict security and data
privacy issues.
Page | 6
Google Cloud Platform
• The main purpose is to gain the benefits of cloud architecture without giving
up the control of maintaining own data center.
• The main drawback people see with a private cloud is that all management,
maintenance and updating of data centers is the responsibility of the
company
3) Hybrid Clouds:
• They consist of external and internal providers, namely a mix of public and
private clouds.
• Secure & critical apps are managed by an organization and the not-so-
critical & secure apps by the third-party vendor. For example, you can use
a public cloud to interact with the clients but keep their data secured within
a private cloud. Most companies are now switching to Hybrid clouds.
Page | 7
Google Cloud Platform
Compute Engine
Login to VM
• First switch to root user before installing any packages / softwares by using
sudo -i command.
• Install nginx web server and jdk 8 using below command.
apt get update && apt-get install nginx openjdk-8-jdk -y
• To Check if nginx is properly installed or not, open browser and type
http://<Instance_External_IP_Address> Make sure it is not https.
You will get home page of nginx.
• To check if Java 8 is properly installed or not, execute below command.
java -version
Page | 8
Google Cloud Platform
<html>
<head>
<title>Home Page</title>
</head>
<body>
<h1>Hello World!!!!</h1>
</body>
</html>
• You can access page by http://<Instance_External_IP_address>
Page | 9
Google Cloud Platform
• Click on create.
• Keep default region and zone.
• Keep default machine configuration.
• Boot disk -> Change. Select Snapshots. Select snapshot that we have
created in previous step.
• Keep default Boot Disk type and size.
• Keep default Identity and API access.
• Under Firewall section, select both Allow HTTP traffic and Allow HTTPS traffic
options.
• Click on Create.
P a g e | 10
Google Cloud Platform
P a g e | 11