Menu

1 / 5

Choosing the Right Database on GCP: Ask What the App Does With the Data

DEV Community: gcp·Vishwa·4 days ago
#KFRkGX57
#devtogcp#devto#dev#cart#stock
Long article (734 words) — no AI summary yet.
Reading 0:00
15s threshold

Orders in Cloud SQL, the cart in Redis or Firestore, reports in BigQuery, and why one database is rarely enough

Picture a shopping app. A customer adds shoes to the cart on her phone and expects to see them on the laptop a second later. She pays, and stock must drop by exactly one. That evening, a manager asks for sales by category for the whole month.

These are three different questions, and I would not answer all of them with the same database.

The problem

The easy choice is "put everything in one database". It works on day one. Then it breaks in quiet ways:

The month-end sales report scans millions of order rows on the same primary that is taking payments, and checkout slows down.

Cart updates, which happen constantly and matter only for a short time, compete with orders for the same connections.

A product catalog where a phone has RAM and a shirt has a size gets forced into a table full of empty columns.

The real question is not "which database is popular".…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.