Ojasa Mirai

Ojasa Mirai

Cloud

Loading...

Learning Level

🟢 BeginneršŸ”µ Advanced
ā˜ļø Cloud Basics Overviewā“ Why Cloud Computing?šŸ” Providers Comparisonāš™ļø Compute OptionsšŸ—„ļø Database OptionsšŸ’° Cost EstimationšŸ” Security Fundamentals🌐 Networking BasicsšŸ“Š Monitoring & ObservabilityšŸ“ˆ Scaling & AvailabilityšŸš€ Deployment Strategiesāœ… Cloud Readiness
Cloud/Cloud Fundamentals/Database Options

Database Options — šŸ—„ļø SQL, NoSQL, and Data Storage

Cloud databases fall into two main categories: SQL (relational) and NoSQL (non-relational). Each excels in different scenarios.


šŸŽÆ SQL Databases (Relational)

Data organized in tables with rows and columns. Relationships between tables.

Best for: Structured data, transactions, complex queries

Examples:

  • AWS: RDS (MySQL, PostgreSQL, MariaDB)
  • GCP: Cloud SQL
  • Azure: SQL Database
Customers Table:
│ ID │ Name    │ Email         │
ā”œā”€ā”€ā”€ā”€ā”¼ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¼ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¤
│ 1  │ Alice   │ alice@ex.com  │
│ 2  │ Bob     │ bob@ex.com    │

Orders Table:
│ ID │ CustomerID │ Product  │ Amount │
ā”œā”€ā”€ā”€ā”€ā”¼ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¼ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¼ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¤
│ 1  │ 1          │ Laptop   │ $1000  │
│ 2  │ 1          │ Mouse    │ $50    │

Pros:

  • Structured data storage
  • Data integrity (transactions)
  • Complex queries possible
  • Familiar technology

Cons:

  • Scaling is complex (vertical scaling mainly)
  • Fixed schema (hard to change structure)
  • Requires database design planning

šŸ’” NoSQL Databases (Non-Relational)

Flexible document storage. No strict table structure.

Best for: Unstructured data, massive scale, rapid iteration

Types:

  • **Document Stores:** Firestore, MongoDB (store JSON documents)
  • **Key-Value Stores:** DynamoDB (fast lookups)
  • **Time Series:** InfluxDB (metrics, logs)
  • **Graph:** Neo4j (relationships)

Examples:

  • AWS: DynamoDB
  • GCP: Firestore
  • Azure: Cosmos DB
Document Database (Firestore):
{
  "user_id": "123",
  "name": "Alice",
  "email": "alice@ex.com",
  "preferences": {
    "theme": "dark",
    "notifications": true
  }
}

Pros:

  • Schema-less (flexible structure)
  • Scales horizontally (add more servers)
  • Fast reads/writes
  • Handles massive scale (millions of ops/sec)

Cons:

  • No transactions (in traditional sense)
  • Complex queries harder
  • Consistency tradeoffs

šŸ“Š SQL vs NoSQL Comparison

AspectSQLNoSQL
Data StructureTablesDocuments/Key-Value
SchemaFixedFlexible
ScalingVertical (bigger server)Horizontal (more servers)
TransactionsStrong ACIDEventual consistency
Complex QueriesExcellentLimited
SpeedGoodExcellent for lookups
Best ForRelational dataLarge scale, unstructured
LearningMediumLow to medium

šŸŽØ Real-World Examples

SQL (Traditional Applications)

  • Banking system (transactions critical)
  • E-commerce catalog (structured products)
  • Accounting software (relationships important)

NoSQL (Modern Applications)

  • Social media feeds (massive scale, unstructured)
  • Real-time analytics (fast writes)
  • Mobile app backend (flexible schema)
  • IoT sensors (time series data)

šŸ’¾ Other Storage Options

Object Storage (Files)

Store any file type (images, videos, documents). Cheapest storage.

  • AWS: S3
  • GCP: Cloud Storage
  • Azure: Blob Storage

Cost: ~$0.02-0.05 per GB/month

Data Warehousing

Analyze massive datasets (terabytes/petabytes).

  • AWS: Redshift
  • GCP: BigQuery
  • Azure: Synapse Analytics

šŸ”‘ Key Takeaways

  • āœ… SQL for structured, relational data (transactions, complex queries)
  • āœ… NoSQL for flexible, massive scale data (documents, key-value)
  • āœ… Object storage for files (images, videos)
  • āœ… Most applications use both SQL and NoSQL
  • āœ… Data volume and access patterns determine choice

Want optimization strategies? šŸ—„ļø Database Options (Experienced)


Resources

Python Docs

Ojasa Mirai

Master AI-powered development skills through structured learning, real projects, and verified credentials. Whether you're upskilling your team or launching your career, we deliver the skills companies actually need.

Learn Deep • Build Real • Verify Skills • Launch Forward

Courses

PythonFastapiReactJSCloud

Ā© 2026 Ojasa Mirai. All rights reserved.

TwitterGitHubLinkedIn