0% found this document useful (0 votes)
12 views16 pages

#6 Cloud Computing

Uploaded by

Waqas Ali
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views16 pages

#6 Cloud Computing

Uploaded by

Waqas Ali
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 16

DS-6223, Cloud Computing

Presented by:
Dr. Atta Ur Rahman

1
Week # 6
 Compute Services
 Virtual Machines (VMs)
 Examples
 Functions as a Service (FaaS)
 Examples
 Serverless Computing, Auto-scaling, and Load Balancing
 Examples

2
Virtual Machines

 Virtual Machines (VMs) provide a way to emulate a physical


computer within a virtual environment.
 A VM is a digital version of a physical computer.
 They allow users to run multiple operating systems on a single
physical machine.
 Each VM operates independently and can run its own
applications.
 Users have control over the operating system, applications,
and configurations within the VM.

3
Example

 Example: Consider a scenario where a company needs to host


multiple applications, each requiring different operating systems
and configurations.
 Using VMs, they can create separate virtual environments for
each application.
 For instance, one VM might run a Linux-based web server,
while another VM might run a Windows-based database server.
 This segregation enables efficient resource allocation and
isolation between different applications.

4
Functions as a Service

 Functions as a Service (FaaS): is a serverless


computing model where developers can deploy individual
functions or units of code that are executed in response to
specific events or triggers.

 Developers don't need to manage the underlying


infrastructure; instead, the cloud provider handles the
execution and scaling of these functions.

5
Functions as a Service

 FaaS is a subset of serverless computing that's focused on


event-driven triggers where code runs in response to
events or requests.
 FaaS allows developers to deploy individual functions or
pieces of code in response to events without managing
the underlying infrastructure.
 Popular FaaS platforms include AWS Lambda, Azure
Functions, and Google Cloud Functions.

6
Functions as a Service

 Event-driven (Like HTTP requests) architecture is


often used to design and implement systems that respond
to events in real-time, making it well-suited for
applications that require flexibility, scalability, and
responsiveness.
 FaaS is a specific implementation within the serverless
paradigm that focuses on executing individual functions in
response to events.

7
Example

 Example: Suppose an e-commerce platform wants to resize


and optimize images uploaded by users.
 With FaaS, the platform can create a function that triggers
when an image is uploaded.
 This function automatically resizes the image and optimizes
it for web use.
 The function executes only when an image is uploaded,
scaling as per the demand without the need for managing
servers.

8
Serverless Computing

 Serverless Computing: Serverless computing is a


computing model where infrastructure orchestration is
managed by service providers.
 It allows developers to run code without provisioning or
managing servers.
 In this model, the cloud provider handles the
infrastructure, scaling, and availability, allowing
developers to focus solely on writing and deploying code
in the form of functions.

9
Serverless Computing

 Serverless aims to eliminate the management and configuration


tasks enabling users to solely focus on the application.
 The term 'serverless' is somewhat misleading, as there are still
servers providing these backend services, but all of the server
space and infrastructure concerns are handled by the vendor.
 Serverless means that the developers can do their work
without having to worry about servers at all.
 Serverless computing can include other services like databases,
storage, and more, not just functions.

10
Example

 Example: Consider an application that processes user-uploaded


images.
 With a serverless approach, developers create functions that
process these images when they are uploaded.
 The cloud provider automatically handles the execution of these
functions on the necessary resources.
 The developers do not concern themselves with server
management; they focus on writing the image processing code,
while the cloud provider ensures the functions run and scale as
needed.

11
Auto-scaling

 Auto-scaling is a feature that allows the automatic


adjustment of computing resources based on the current
workload or demand.
 It ensures that the application or system has sufficient
resources to handle varying levels of traffic, preventing
over-provisioning (wasting resources) or under-
provisioning (resulting in performance issues).

12
Example

 Example: Imagine an e-commerce website that experiences


heavy traffic during holiday sales.
 With auto-scaling, the system can automatically increase
the number of instances or servers to handle the increased
load.
 Once the traffic subsides, the system scales down, reducing
the number of instances to save costs.
 This dynamic adjustment ensures that the application
performs optimally without manual intervention.

13
Load balancing

 Load balancing is the process of distributing incoming


network traffic across multiple servers or resources.
 Its primary goal is to optimize resource usage, maximize
throughput, minimize response time, and avoid
overloading any single resource.

14
Example

 Example: In a cloud environment hosting a web


application, load balancers distribute incoming user
requests among multiple servers.
 For instance, if one server receives numerous requests,
the load balancer routes some incoming traffic to other
less busy servers.
 This prevents any single server from being overwhelmed,
thereby ensuring better performance, high availability,
and efficient resource utilization.

15
Thank You!
Any Question

16

You might also like