Module 5
Module 5
It is the enabling technology that makes the vast scale of IoT possible by providing the means to
store, process, and analyze the massive amounts of data generated by connected devices.
Renting a plot of
Provides the land. You are responsible AWS EC2
IaaS fundamental compute, for the building, (virtual servers),
(Infrastructure network, and storage plumbing, and electricity. S3 (storage),
as a Service) resources. You rent IT The landlord is VPC
infrastructure. responsible for the land (networking)
itself.
Provides a platform
allowing customers to Renting a fully-
develop, run, and equipped commercial AWS IoT Core,
PaaS
manage applications kitchen. You just cook. Azure IoT Hub,
(Platform as a
without the complexity The landlord maintains Google App
Service)
of building and the building, ovens, Engine
maintaining the plumbing, and electricity.
infrastructure.
Eating at a
Provides a complete, restaurant. You just Gmail,
SaaS
functional application consume the meal. The Salesforce,
(Software as a
that is managed by the restaurant owns the Microsoft Office
Service)
service provider. building, kitchen, staff, 365
and menu.
Why this matters for IoT: IoT projects heavily leverage PaaS offerings (like AWS IoT Core) to
handle the massive burden of connecting millions of devices and processing their data streams,
allowing developers to focus on application logic rather than backend infrastructure.
1. Public Cloud: The cloud infrastructure is provisioned for open use by the general public.
It is owned, managed, and operated by a business, academic, or government organization.
o Pros: Cost-effective, highly scalable, no maintenance.
o Cons: Less control over security and compliance.
o Examples: AWS, Azure, GCP.
2. Private Cloud: The cloud infrastructure is provisioned for exclusive use by a single
organization. It could be managed internally or by a third party and hosted on-premises or
off-premises.
o Pros: Greater control, security, and customization.
o Cons: Higher cost, limited scalability, requires IT expertise to maintain.
o Examples: VMware, OpenStack, on-premises data centers.
3. Hybrid Cloud: A composition of two or more distinct cloud infrastructures (private,
public) that remain unique entities but are bound together by standardized technology that
enables data and application portability.
o Pros: Flexibility, balance of control and cost-effectiveness.
o Cons: Can be complex to integrate and manage.
o Example: Running a sensitive database on a private cloud while using the public
cloud for bursty compute needs (e.g., data analytics).
4. Community Cloud: The cloud infrastructure is provisioned for exclusive use by a specific
community of consumers from organizations that have shared concerns (e.g., mission,
security requirements). It may be managed by the organizations or a third party.
o Example: A cloud platform built specifically for a group of government agencies
or healthcare providers to meet shared regulatory requirements.
The Server
• Definition: A server is a powerful computer or software program that provides
functionality, data, services, or programs to other devices or programs, known as clients.
• Function: Servers wait for and respond to requests from clients. Their primary role is to
share resources and distribute work.
• Characteristics:
o Always-On: Servers are typically designed to run continuously.
o Powerful: They possess significant processing power, memory, and storage
capacity.
o Passive: They operate in a passive ("listening") mode, waiting for client-initiated
connections.
• Examples in Cloud: A virtual machine (EC2 instance), a database service (Amazon RDS),
a storage service (Amazon S3), an IoT platform (AWS IoT Core).
The Client
• Definition: A client is a piece of computer hardware or software that accesses a service
made available by a server. The client typically initiates a connection to the server to
request information or a service.
• Function: Clients initiate requests and consume the responses or services provided by the
server.
• Characteristics:
o On-Demand: Clients are typically started by a user and make requests only when
needed.
o Varied Power: Clients can range from powerful workstations to resource-
constrained devices like smartphones or IoT sensors.
o Active: They operate in an active mode, initiating communication sessions with
servers.
• Examples: A web browser (Chrome, Firefox), a mobile app (Instagram, Google Maps), an
IoT device sending sensor data, your laptop accessing a file from Google Drive.
1. Request Initiation: The client initiates a connection to the server and sends a request.
This request is formatted according to a specific protocol (e.g., HTTP, MQTT, CoAP).
2. Request Processing: The server receives the request, processes it (e.g., queries a
database, performs a computation, retrieves a file), and prepares a response.
3. Response Delivery: The server sends the response back to the client that made the
request.
4. Connection Closure: The connection may be closed after the response is delivered
(especially in HTTP/1.1), or kept alive for further requests.
Service Model What the Server Provides What the Client Does / Is
Key Insight: In all cases, the cloud provider operates the server, and the customer uses the
client. The level of abstraction is what changes.
This interaction is often facilitated by lightweight protocols like MQTT, which is designed
specifically for this type of client-server communication in constrained environments.
• Multi-Tier Architecture (N-Tier): Modern applications often break the server into
multiple tiers (e.g., Web Server, Application Server, Database Server), each being a client
to the tier behind it. This improves scalability and separation of concerns.
• Microservices Architecture: This is an evolution where a single application is composed
of many small, loosely coupled, and independently deployable services. Each microservice
is both a server (it provides a specific API) and a client (it consumes APIs from other
microservices). This is the client-server model applied at a granular, service level within
the cloud.
• Centralized Management: Data and resources are centralized on servers, making them
easier to manage, secure, and update.
• Scalability: Servers can be upgraded or scaled out (e.g., in the cloud) to handle more
clients without affecting the clients themselves.
• Accessibility: Clients can access servers and services from anywhere with a network
connection.
Disadvantages:
• Single Point of Failure: If the server goes down, all clients lose access to the service.
(Cloud providers mitigate this with high-availability architectures).
• Network Dependency: The model is entirely dependent on network availability and
performance.
• Potential for Congestion: Too many clients requesting data from a single server can cause
bottlenecks. (Cloud auto-scaling mitigates this).
Cloud providers like AWS, Azure, and GCP operate millions of servers across countless
availability zones and regions worldwide.
• Hypervisor: This is the software that creates and runs virtual machines (VMs). It sits
directly on the physical hardware (Type 1/Bare-Metal) and allows multiple virtual
machines (VMs) to run on a single physical server.
• Virtual Machine (VM): A software emulation of a physical computer. Each VM runs its
own operating system (the guest OS) and applications independently, as if it were a
separate physical machine.
• Benefit: Virtualization allows for resource pooling. The hypervisor dynamically allocates
the physical server's CPU, memory, and storage to the VMs as needed, dramatically
increasing hardware utilization and reducing waste.
Phase 3: The Web 2.0 & Dot-Com Era (Late 1990s - Mid 2000s) - The Precursor
• Model: Internet-centric and collaborative. The commercialization of the internet led to
the first wave of web-based applications and e-commerce.
• Characteristics:
o Application Service Providers (ASPs): Early precursors to SaaS, ASPs offered
businesses access to applications over a network. They often failed due to poor
bandwidth and immature technology.
o Scale Problems: Dot-com companies like Google and Amazon faced
unprecedented, unpredictable scaling challenges. They were forced to innovate and
build massive, efficient, and automated data centers to survive.
o Enabling Technologies: Virtualization technology began to mature, allowing for
better server utilization.
Phase 4: The Cloud Computing Era (2006 - Present) - The Modern Utility
• The Catalyst: Amazon Web Services (AWS) launched its first public cloud services in
2006 (S3 for storage, then EC2 for compute). Amazon, having solved its own scaling
problems, realized it could sell its excess data center capacity as a commoditized utility.
• The Model: Everything as a Service (XaaS). The core concept is the on-demand delivery
of IT resources over the internet with pay-as-you-go pricing.
• Characteristics:
o No CapEx, Only OpEx: Businesses could now avoid large upfront investments in
hardware.
o Massive Scalability: Access to virtually unlimited resources.
o Global Reach: Providers built data centers worldwide.
o The Rise of Hyperscalers: AWS, Microsoft Azure, and Google Cloud Platform
(GCP) emerged as the dominant "hyperscale" cloud providers.
1. Edge Computing:
o Concept: Processing data closer to where it is generated (e.g., on a factory floor,
in a smart car, on a local gateway) instead of sending it all to a centralized cloud
data center.
o Why? To reduce latency (for real-time applications like autonomous driving),
conserve bandwidth (by processing video locally), and enhance reliability (by
functioning offline).
o Relationship to Cloud: A complementary model, often called cloud-edge
continuum, where the cloud handles heavy lifting like big data analytics and ML
model training, while the edge handles real-time response.
2. Serverless Computing (Function-as-a-Service - FaaS):
oConcept: An abstraction beyond servers. Developers simply write and deploy
individual functions without worrying about any underlying infrastructure—not
even virtual machines or containers.
o Example: AWS Lambda, Azure Functions.
o Significance: Represents the ultimate evolution of the "no maintenance" promise
of cloud, focusing purely on business logic.
3. AI-Optimized Cloud:
oThe cloud is becoming the primary platform for developing and deploying artificial
intelligence (AI) and machine learning (ML) models, with providers offering
specialized AI-as-a-Service APIs and hardware.
4. Hybrid and Multi-Cloud as Standard:
o Most enterprises are adopting a mix of on-premises private clouds, public clouds,
and edge locations, requiring management tools that can span these environments.
1. Public Cloud
• Definition: Cloud services are delivered over the public internet and shared across
multiple organizations (tenants). The infrastructure is owned, managed, and
operated by a third-party cloud service provider (CSP) like AWS, Microsoft
Azure, or Google Cloud.
• Key Characteristics:
o Tenancy: Multi-tenant architecture.
o Location: Off-premises (in the CSP's data centers).
o Cost Model: Operational Expenditure (OpEx); pay-as-you-go.
o Management: Managed by the CSP; the consumer manages their
applications and data.
• Advantages:
o Cost-Effective: No capital expenditure; you only pay for what you use.
o High Scalability: Virtually unlimited resources on demand.
o Maintenance-Free: The provider handles all hardware and software
maintenance, security patches, and updates.
o Reliability: Offers massive, resilient infrastructure with built-in
redundancy.
• Disadvantages:
o Less Control: Limited control and visibility over the underlying
infrastructure.
o Security Concerns: Perceived as less secure for highly sensitive data
(though providers offer robust tools).
o Compliance: Must ensure the provider complies with industry-specific
regulations.
• Use Cases:
o Web hosting and SaaS applications.
o Development and testing environments.
o Big data analytics and AI projects.
o Storage and backup solutions.
2. Private Cloud
• Definition: Cloud computing resources are used exclusively by a single business
or organization. The private cloud can be physically located on the company’s
own on-premises data center or hosted by a third-party provider, but its services
and infrastructure are always maintained on a private network.
• Key Characteristics:
o Tenancy: Single-tenant architecture.
o Location: On-premises or off-premises (hosted).
o Cost Model: Capital Expenditure (CapEx) if on-prem; can be OpEx if
hosted.
o Management: Managed by the organization or a third party.
• Advantages:
o High Control & Customization: Full control over hardware, network, and
security settings.
o Enhanced Security & Privacy: Ideal for storing and processing sensitive
data (e.g., financial records, PHI).
o Compliance: Easier to adhere to strict regulatory requirements.
• Disadvantages:
o High Cost: Expensive to acquire, deploy, and maintain.
o Limited Scalability: Scaling requires purchasing and installing new
hardware.
o IT Management: Requires a skilled IT team to manage the infrastructure.
• Use Cases:
o Government agencies and financial institutions with strict data sovereignty
and security mandates.
o Large enterprises running legacy applications that are difficult to migrate.
o Research organizations handling sensitive intellectual property.
3. Hybrid Cloud
• Definition: A computing environment that combines a public cloud and a private
cloud, allowing data and applications to be shared between them. This is the most
common model for enterprises.
• Key Characteristics:
o Orchestration: Uses orchestration and management tools to
enable portability of workloads and data between the two environments.
o Flexibility: "Cloud bursting" – running an application primarily in the
private cloud but "bursting" into the public cloud during peak demand.
• Advantages:
o Flexibility & Control: Keep sensitive data in a private cloud while
leveraging the public cloud for less-sensitive operations.
o Optimized Cost & Performance: Run predictable workloads on-premises
and burst to the cloud for scalable, variable workloads.
o Risk Mitigation: Avoid vendor lock-in by maintaining a portable
infrastructure.
• Disadvantages:
o Complexity: Can be technically complex to integrate, secure, and manage
across different environments.
o Network Latency: The connection between public and private clouds can
introduce latency.
o Cost Management: Tracking costs across multiple environments can be
challenging.
• Use Cases:
o E-commerce websites that run normally on-premises but burst to public
cloud during holiday sales.
o Processing data: collecting data on-premises for compliance, then sending
it to the public cloud for analytics.
o A gradual migration strategy, moving applications piece by piece to the
public cloud.
4. Community Cloud
• Definition: A collaborative, multi-tenant model where the cloud infrastructure is
shared by several organizations with common concerns, such as security
requirements, compliance mandates, or jurisdiction (e.g., specific industries).
• Key Characteristics:
o Tenancy: Multi-tenant, but only within a specific community.
o Cost: Costs are shared among the community members.
o Management: Can be managed by the organizations themselves or a third
party.
• Advantages:
o Shared Costs & Benefits: Lower cost than a private cloud while offering
similar benefits.
o Collaboration: Ideal for joint projects and shared resources within a
community.
o Compliance: Designed to meet the specific regulatory needs of the
community.
• Disadvantages:
o Limited Adoption: Not as widely available as other models.
o Shared Responsibility: Still requires consensus and coordination among
community members.
• Use Cases:
o A group of healthcare providers sharing a cloud platform that is pre-certified
for HIPAA compliance.
o Government agencies within a single country sharing a community cloud
for citizen data.
o A consortium of banks sharing a platform for fraud detection analysis.
Most large enterprises today adopt a hybrid or multi-cloud strategy to meet their diverse
needs.