Cloud ComputingUnit 314 min read
Cloud Deployment Models: Public, Private, Hybrid, Community
Unit 3 of Cloud Computing explores the four cloud deployment models—Public, Private, Hybrid, and Community—defining each, illustrating their architectures, comparing trade-offs, and analyzing real-world use cases (e.g., NTC’s private cloud, Daraz’s public cloud). Includes a cost-benefit table, a layered model of hybrid
Core Concepts: What is a Cloud Deployment Model?
A cloud deployment model defines where and how cloud resources are hosted, deployed, and managed. Unlike service models (SaaS/PaaS/IaaS), which describe what services are delivered, deployment models focus on ownership, access, and infrastructure control.
Why Does It Matter?
Deployment models determine:
- Security (who controls data?)
- Cost (CAPEX vs. OPEX)
- Scalability (how quickly can resources expand?)
- Compliance (does it meet legal/industry standards?)
mindmap
root((Cloud Deployment Models))
Public
"Hosted by 3rd party (AWS, Google Cloud)"
"Multi-tenant, pay-as-you-go"
"Examples: eSewa, Daraz, WhatsApp"
Private
"Dedicated to single org (NTC, banks)"
"On-premise or hosted private cloud"
"High security, full control"
Hybrid
"Mix of public + private"
"Data-sensitive workloads in private, scalable in public"
"Example: Ncell’s customer data (private) + analytics (public)"
Community
"Shared by orgs with common needs (e.g., hospitals)"
"Cost-sharing, specialized compliance"1. Public Cloud: Shared Infrastructure, Global Scale
Definition
A public cloud is a third-party-owned infrastructure (e.g., AWS, Microsoft Azure, Google Cloud) where resources (servers, storage, apps) are shared across multiple tenants via the internet. Users pay for what they use (pay-as-you-go).
How It Works
- Multi-tenancy: A single physical server hosts multiple virtual machines (VMs) for different customers.
- Elasticity: Resources scale automatically (e.g., Daraz’s Black Friday traffic).
- Managed by provider: No hardware maintenance for users.
Advantages
| Pros | Cons |
|---|---|
| Low cost (no CAPEX) | Limited customization |
| High scalability | Security/privacy concerns |
| No maintenance | Vendor lock-in risk |
| Global reach | Compliance challenges (e.g., GDPR) |
Real-World Example: eSewa’s Public Cloud
- Use Case: eSewa uses AWS for its payment gateway and user authentication.
- Why Public?
- Handles millions of transactions/day without over-provisioning.
- Cost-effective: Pays only for peak hours (e.g., Dashain/Tihar).
- Disaster recovery: AWS’s global data centers ensure uptime.
- Challenge: Sensitive financial data must be encrypted (see Unit 5).
WORKED EXAMPLE: Cost Comparison Suppose a startup hosts its web app on:
- Public Cloud (AWS): $0.05/hr for 1 vCPU, 1GB RAM. Runs 24/7 for 30 days. Cost = 0.05 × 24 × 30 = $36/month.
- Private Cloud: $5,000 one-time for a dedicated server + $200/month maintenance. Cost = $5,200 (Year 1) vs. $432 (AWS over 12 months). Insight: Public cloud wins for startups/small businesses; private cloud for long-term, high-security needs.
2. Private Cloud: Dedicated, Secure, and Customizable
Definition
A private cloud is a cloud environment exclusively for a single organization, hosted either on-premise (in their own data center) or by a third party (e.g., IBM Cloud Private).
How It Works
- Single-tenancy: No shared resources; entire infrastructure is dedicated.
- Control: Organization manages hardware, software, and security.
- Customization: Tailored to specific compliance needs (e.g., banking, healthcare).
Advantages/Disadvantages
| Pros | Cons |
|---|---|
| High security/privacy | High cost (CAPEX + maintenance) |
| Full control | Scalability limits (manual upgrades) |
| Compliance-friendly (e.g., HIPAA) | Skill dependency (needs IT experts) |
| No shared vulnerabilities | Slower innovation (lagging tech) |
Real-World Example: NTC’s Private Cloud
- Use Case: Nepal Telecom (NTC) uses a private cloud for:
- Core network management (SMS, voice routing).
- Customer data (billing, identity verification).
- Why Private?
- Regulatory requirements: Telecom data must stay within Nepal (no public cloud).
- Uptime critical: 99.99% SLA for voice services.
- Custom integrations: Legacy systems (e.g., old billing software) need private cloud compatibility.
WORKED EXAMPLE: Traffic Routing in Kathmandu Imagine NTC’s private cloud manages SMS traffic during a festival:
- Peak load: 10 million SMS/day (vs. 1 million normal).
- Public cloud would scale automatically, but NTC cannot risk latency in emergency alerts.
- Private cloud solution:
- Load balancers distribute traffic across dedicated servers.
- Local caching reduces database load.
- Result: 99.9% delivery rate vs. 95% if using public cloud.
3. Hybrid Cloud: Best of Both Worlds
Definition
A hybrid cloud combines public and private clouds, with orchestration (software) to enable data/application portability between them.
How It Works
- Data classification: Sensitive data (e.g., Ncell customer IDs) stays private; analytics (e.g., usage trends) go public.
- Workload distribution:
- Private: Databases, APIs, internal tools.
- Public: Web apps, CDN, batch processing.
- Orchestration tools: VMware, OpenStack, or cloud-native tools (e.g., AWS Outposts) manage the hybrid setup.
Advantages/Disadvantages
| Pros | Cons |
|---|---|
| Flexibility (choose where to host) | Complexity (hard to manage) |
| Cost optimization | Higher initial setup cost |
| Security + scalability | Vendor compatibility issues |
| Compliance control | Skill-intensive |
Real-World Example: Ncell’s Hybrid Cloud
- Use Case: Ncell uses:
- Private cloud: Stores SIM registration data (mandated by Nepal’s law).
- Public cloud (AWS): Hosts customer app (e.g., Ncell MyAccount) and AI chatbots.
- Data Flow:
- User logs into Ncell app (public cloud).
- App calls private cloud API to verify identity.
- Transaction data (e.g., top-up) is processed in public cloud but linked to private cloud records.
- Benefit: Meets Nepal’s telecom regulations while leveraging AWS’s global reach for app performance.
WORKED EXAMPLE: Pathao’s Hybrid Order Queue Pathao’s ride-hailing system uses a hybrid model:
- Private cloud:
- Driver locations (GPS data) stored encrypted.
- Payment processing (PCI compliance).
- Public cloud:
- Matching algorithm (scales during Diwali).
- User app CDN (faster global load times).
- Result:
- Security: Driver data never exposed.
- Speed: App responds in <1s even with 1M users.
4. Community Cloud: Shared by a Group
Definition
A community cloud is shared by organizations with common concerns (e.g., healthcare, education, government). It can be public, private, or hybrid but is restricted to a specific community.
How It Works
- Shared infrastructure: Hospitals pool resources for Electronic Health Records (EHR).
- Custom compliance: Meets healthcare regulations (e.g., Nepal’s Health Data Protection Act).
- Cost-sharing: Each hospital pays a portion of the total cost.
Advantages/Disadvantages
| Pros | Cons |
|---|---|
| Lower cost than private | Limited to community needs |
| Specialized compliance | Slower decision-making |
| Resource pooling | Less flexibility |
Real-World Example: Nepal’s Education Cloud
- Use Case: KU and TU share a community cloud for:
- Student portals (e.g., TU’s result system).
- Research data repositories.
- Why Community?
- Avoids duplication: Single instance of student database.
- Government funding: Shared cost via MoE scholarship portal.
- Interoperability: KU and TU can exchange transcripts seamlessly.
WORKED EXAMPLE: Kathmandu Traffic Management Imagine a community cloud for Kathmandu Metropolitan City (KMC), NTC, and Pathao:
- Shared data:
- Traffic cameras (NTC) + ride demand (Pathao) fed into a single analytics engine.
- Public cloud: Runs AI traffic prediction (scalable).
- Private cloud: Stores sensitive probe data (e.g., Pathao’s driver routes).
- Outcome:
- Reduced congestion by 15% (as seen in pilot projects).
- Cost: KMC pays 40%, NTC 30%, Pathao 30%.
Comparison Table: Deployment Models
| Feature | Public Cloud | Private Cloud | Hybrid Cloud | Community Cloud |
|---|---|---|---|---|
| Ownership | Third-party (AWS, Azure) | Single org | Mixed | Shared by community |
| Cost | Low (pay-as-you-go) | High (CAPEX) | Medium | Medium (shared) |
| Scalability | High | Low | High (public part) | Medium |
| Security | Medium (shared) | High | High (private + public) | High (community rules) |
| Compliance | Limited (e.g., GDPR) | Full control | Custom per workload | Tailored to community |
| Use Cases | Startups, SaaS, apps | Banks, healthcare | Enterprises, e-gov | Hospitals, universities |
| Example (Nepal) | eSewa, Daraz | NTC, NMB Bank | Ncell, NEPSE | TU/KU portals |
In the Real World
eSewa (Public Cloud)
- Idea Used: Elastic scalability during festivals.
- How: AWS auto-scales servers during Dashain (transactions spike 500%).
- Impact: Avoids crashes and reduces costs vs. over-provisioning.
NMB Bank (Private Cloud)
- Idea Used: Data sovereignty (customer data never leaves Nepal).
- How: Hosts core banking on on-premise private cloud with blockchain for transactions.
- Impact: Meets Nepal Rastra Bank (NRB) regulations while preventing breaches.
NEPSE (Hybrid Cloud)
- Idea Used: Public-facing apps + private data.
- How:
- Public cloud: Stock trading app (scalable for Diwali rush).
- Private cloud: Investor KYC data (encrypted, never exposed).
- Impact: Handles 10K+ trades/day without latency.
Kathmandu Hospitals (Community Cloud)
- Idea Used: Shared EHR system.
- How: 5 private hospitals share a HIPAA-compliant cloud for patient records.
- Impact: Doctors access records in <2s (vs. 10s with paper files).
Exam Tip: How to Score Full Marks
Define Clearly
- Start each answer with one-sentence definitions (e.g., "A hybrid cloud is a deployment model combining public and private clouds...").
- Example: "Private cloud offers single-tenancy, ensuring no resource sharing between tenants."
Use Tables for Comparisons
- Exams often ask to "compare public and private clouds." Always use a table (like above) with 4–5 clear columns.
Real-World Examples Are Mandatory
- Nepal-specific examples (NTC, Ncell, eSewa) fetch extra marks.
- Structure: "[Company] uses [model] for [purpose] because [reason]."
Diagrams > Text
- Draw a hybrid cloud layered diagram or sequence diagram of data flow (e.g., Ncell’s private→public transition).
- Mermaid tip: Use
stateDiagram-v2to show "How data moves between private/public clouds."
Common Pitfalls to Avoid
- ❌ Confusing service models (SaaS/PaaS/IaaS) with deployment models.
- ❌ Saying "public cloud is always secure" (it’s shared, so security depends on provider).
- ❌ Ignoring cost in comparisons (always mention CAPEX vs. OPEX).
WORKED EXAM ANSWER (5 Marks) Question: "Compare public and private clouds with examples from Nepal. Which would you recommend for a bank and why?"
Answer: Public and private clouds differ in ownership, cost, security, and scalability (see table below). In Nepal:
| Feature | Public Cloud | Private Cloud |
|---|---|---|
| Example | eSewa (AWS) | NMB Bank |
| Cost | Low ($36/month for small app) | High ($5K+ for hardware) |
| Security | Medium (shared infrastructure) | High (dedicated, encrypted) |
| Scalability | High (auto-scaling) | Low (manual upgrades) |
| Compliance | Limited (e.g., GDPR) | Full control (e.g., NRB rules) |
Recommendation for a Bank: A private cloud is ideal for banks like NMB because:
- Data sovereignty: Customer records must stay in Nepal (public clouds may host data abroad).
- Regulatory compliance: Nepal Rastra Bank (NRB) requires audit trails and encryption, which private clouds support.
- Security: Banks handle sensitive transactions; shared public cloud risks data breaches (e.g., if another tenant is hacked).
- Legacy systems: Many banks use old COBOL systems that need private cloud integration.
Visual Aid:
sequenceDiagram
participant Bank as Private Cloud
participant Customer as Customer App (Public Cloud)
participant AWS as Public Cloud
Customer->>AWS: "Login Request"
AWS->>Bank: "Verify KYC (API call)"
Bank-->>AWS: "Return: Authenticated"
AWS-->>Customer: "Grant Access"Note: The bank’s KYC data stays in private cloud, while the app frontend scales via AWS. This hybrid approach balances security and scalability.
Based on the TU BCA syllabus for Cloud Computing (CACS402), unit 3.
Discussion
Loading…