Compare / Memorystore vs Firestore
Memorystore vs Firestore
Both are fast, but one is a cache and the other a database. Memorystore is managed Redis or Valkey (and Memcached) in memory, for sub-millisecond reads of data you can rebuild. Firestore is a durable, serverless document database.
In 9 practice questions across 3 practice banks
Your application stores session documents in Firestore and queries them by steps, sessionDuration, and energyBurned. After a 30 day test period, latency is acceptable but costs are high. Which Firestore change would reduce cost while preserving performance and availability?
-
Denormalizing duplicates data, so it increases storage and writes rather than cutting cost.
-
A Memorystore cache adds a new paid service and more to operate.
-
Removing unneeded indexes reduces index storage and write costs without affecting the queries in use.
-
Batched writes group operations atomically but each document write is still billed.
Pick an answer to see why each option is right or wrong.
Try 20 questions freeAt a glance
| Memorystore | Firestore | |
|---|---|---|
| Role | In-memory cache and fast data structures | System of record for application data |
| Durability | In memory; persistence options, but treat as a cache | Durable, replicated storage |
| Access | Key-value and Redis data structures | Documents with indexed queries and transactions |
| Typical use | Session state, caching query results, leaderboards | User profiles, catalogues, app state, mobile sync |
Choose Memorystore when
- You need to cut latency or load on a database by caching hot data.
- You store session data or counters that can be rebuilt.
- Sub-millisecond reads matter more than durability.
Choose Firestore when
- The data must persist and be queried by several fields.
- Web or mobile clients need real-time updates and offline sync.
- You want serverless scaling without managing capacity.
Exam tip
Reducing latency in front of an existing database points to Memorystore; storing the data itself points to Firestore (or another database).
Practice banks covering this comparison
Counts match names or aliases from both sides of the comparison in question text or answer options, including incorrect options. They do not measure how often a decision appears on the official exam.
More comparisons
- Firestore vs Bigtable
- Firestore vs Cloud SQL
- BigQuery vs Bigtable
- Dataflow vs Dataproc
- Spanner vs Cloud SQL
- Cloud Run vs GKE
- Cloud Composer vs Workflows
- Cloud SQL for PostgreSQL vs AlloyDB
- Shared VPC vs VPC Network Peering
- Cloud VPN vs Cloud Interconnect
- Cloud Storage classes: Standard, Nearline, Coldline or Archive?
- Cloud Run functions vs Cloud Run services
- Cloud Armor vs VPC firewall rules
- Looker vs Looker Studio
- Pub/Sub vs Cloud Tasks
- App Engine vs Cloud Run
- Google-managed keys vs Customer-managed keys (CMEK)
- Identity-Aware Proxy vs VPN
- Compute Engine vs GKE
- Spanner vs Bigtable
- BigQuery vs Cloud SQL
- Dataproc vs BigQuery
- GKE Autopilot vs Standard: which mode to choose?
- Vertex AI vs BigQuery ML
- VPC Service Controls vs IAM
- Private Google Access vs Cloud NAT