GCP Study Hub

Databases

Firestore

Serverless NoSQL document database

AWS equivalent

DynamoDB

NoSQLDocument DBServerless
🔄

AWS → GCP: Key Differences

  • Document model (like MongoDB) rather than DynamoDB's key-value/wide-column hybrid.

  • Real-time listeners: clients can subscribe to query results and get updates instantly.

  • Fully serverless: no capacity mode to choose, no read/write units to configure.

📌

Key Concepts to Know

  • 1

    Document model: collections → documents → fields. Supports nested subcollections.

  • 2

    Automatic scaling: handles millions of concurrent connections.

  • 3

    Strong consistency for single-document reads in Native mode.

  • 4

    Transactions and batch writes for atomic multi-document operations.

  • 5

    Free tier: 1GB storage, 50K reads, 20K writes per day — good for prototyping.

💡

DCE Interview Tips

  • Use Firestore for: mobile/web app backends, user profiles, real-time features (chat, live dashboards), session data.

  • Firestore vs Bigtable: 'Firestore for transactional, document-oriented workloads needing real-time sync. Bigtable for analytics and high-throughput operational workloads.'

⚠️

Common Gotchas

  • !

    Firestore has a 1 write/second per document limit. For high-frequency counter updates, use distributed counters.

  • !

    Not ideal for analytical queries — use BigQuery for that.