Scrivio Interview library
LeadershipPrincipal5 min read · updated 12 November 2026

Your company adopted Cassandra years ago for scale, and many teams struggle with query-first modeling, leading to repeated rewrites when product needs change. Today, PostgreSQL with partitioning, distributed SQL and managed NoSQL are all options. How would you set the strategy for operational databases?

I would set the strategy from needs, not from history: data size, write rate, multi-region requirements, latency targets and, above all, how often query patterns change. Query-first stores like Cassandra fit stable, very high-scale access patterns; workloads whose queries keep changing fit relational or distributed SQL, where a new query needs only an index. I would count total cost, including operations, expertise, licences or cloud bills and migration effort, offer a small supported menu with guidance and platform support, and migrate only where the current store causes real cost or risk, while keeping data in formats and events that keep future moves possible.

Why this question is asked

Years ago Cassandra may have been exactly right: the company was growing fast, writes were exploding, and relational databases of the time struggled to scale horizontally. Today many teams pay for that choice with repeated rewrites, because every new product question means a new table and a backfill. Interviewers ask this leadership question to see whether we can reset a technology strategy without either defending the past or declaring a costly big-bang migration. In this answer, we will set the criteria, look at why query stability is the deciding factor, count costs honestly, design a supported menu, and plan migrations that are justified one by one.

1Starting From Needs Rather Than Technology

The first step is to describe the workloads, not the databases. For each significant service we capture data size today and in two years, peak write and read rates, whether it must be writable in several regions at once, its latency target, and how often its query patterns changed over the last year. That last number is usually missing from database discussions, and in this situation it is the most important.

Doing this as a short survey with the platform team typically shows that workloads cluster into a few groups: a minority with truly high write rates and stable patterns, a large group of ordinary business services with moderate data and changing features, and a few with special needs such as global writes.

2Why the Rate of Change Decides

Query-first modeling designs a table for each query, keyed so that the query reads one partition. That is what lets Cassandra serve enormous write and read volumes predictably. The cost is paid every time the product asks a new question: a new table, a dual-write period, a backfill of history and a migration of readers. For a team that ships a new filter or report every sprint, that cost dominates, which is exactly the repeated rewrites we see.

In a relational database, or a distributed SQL database that shards automatically, a new query usually means a new index, created online, with the same data. So the strategic question for each workload is not which database is best but whether its access patterns are stable enough to justify query-first modeling.

Matching workloads to stores
Workload profileTypical exampleDefault store
Very high writes, stable queriesTelemetry, messaging, activity feedsCassandra or managed wide-column
Moderate scale, changing queriesOrders, catalog, back officePostgreSQL, partitioned if large
Large, relational, multi-regionGlobal accounts, inventoryDistributed SQL
Key-value, spiky, low opsSessions, carts, user settingsManaged NoSQL (e.g. DynamoDB)
A small menu; each choice comes with guidance and platform support.

3Counting the Total Cost

Every option has a cost profile, and we compare them honestly. Self-run Cassandra costs servers, but mostly people: experienced operators for repairs, upgrades, capacity and incidents, and the modeling expertise every product team must acquire. Managed services shift cost to the cloud bill and remove most operations, though large-scale throughput can become expensive. Distributed SQL may involve licences or a premium managed tier. PostgreSQL is cheap to license and well understood, but large deployments still need skilled operators.

Migration effort is a cost too and is often underestimated: dual writes, backfills, verification, retraining teams and running two systems in parallel for months. A migration has to save more than it costs within a reasonable period, say two to three years, to be worth starting.

4Offering a Small Supported Menu

Leaving every team to choose alone is how a company ends up with eight databases and no expertise in any of them. Prescribing one database for everything is how it ended up here. The middle path is a short menu, usually three or four stores, each with a platform team that provides provisioning, backups, monitoring, client libraries for Spring Boot, and a modeling guide with worked examples.

Each option comes with a one-page guide describing when to choose it, when not to, and who to ask. Teams that want something off the menu write a short proposal explaining the need, which keeps the door open for real exceptions without inviting fashion-driven choices.

5Migrating Only Where It Pays

With the menu in place, existing Cassandra workloads are reviewed against it. Those with stable patterns and high volume stay on Cassandra, and they benefit from the better guidance. Those with frequent rewrites and moderate volume are candidates to move to PostgreSQL or distributed SQL. We rank them by pain, measured as engineering time spent on remodeling, incidents and cost, and migrate the worst first, one service at a time.

Throughout, we keep future moves cheap. Services publish domain events, such as OrderPlaced, to a log like Kafka, so a new store can be built from events. Data stays in documented, open formats, and applications access the database through a repository layer so the store is not spread through business code. The next strategy review, in a few years, should not face the same lock-in.

Step throughDeciding a workload's store
  1. Describe the workloadSize, writes, regions, latency, change rate
  2. Queries stable and writes very high?
    YesCassandra or managed wide-columnNoContinue
  3. Needs multi-region strong consistency?
    YesDistributed SQLNoPostgreSQL or managed NoSQL
  4. Current store causing real cost?
    YesPlan migration, worst firstNoStay, apply guidance

4 steps in order. Play them, or step through them one at a time.

6Follow-up questions

How do you bring Cassandra experts along?

Their knowledge is still needed for the workloads that stay, and their experience of what went wrong is the best input for the guidance. Making them part of the platform team that owns the menu, rather than presenting the strategy as a verdict on their past work, turns potential resistance into ownership.

What if a team insists its use case needs Cassandra?

It can, if its workload profile fits: high write volume, stable patterns, or multi-region writes. The proposal process asks for those numbers. If they support it, the team gets full platform support; if not, the numbers make the conversation about evidence rather than preference.

How do you measure whether the strategy is working?

Track the time teams spend on schema changes and backfills, the number of database-related incidents, cost per workload, and how long a new service takes to get a production database. If those improve over a year, the strategy is working.

7Conclusion

In this answer, we set the operational database strategy from workload needs, with the rate of change of query patterns as the deciding factor, because query-first stores turn every new query into a rewrite. We counted total cost including operations, expertise and migration, offered a short supported menu with guidance and platform support, and migrated only the workloads where the current store caused measurable cost or risk, worst first, while keeping data in events and open formats so the next change is easier.

What to say in the interviewAbout 80 seconds aloud

Open with

I would not start from Cassandra versus something else; I would start from the workloads. For each important service I would collect data size and growth, write and read rates, multi-region needs, latency targets, and how often its query patterns changed in the last year, because that last number explains our rewrites.

Then, if they want more

Query-first modeling pays off when access patterns are stable and volume is very high, like telemetry or messaging; when the product keeps asking new questions, each one costs a new table and a backfill, whereas in PostgreSQL or distributed SQL it is usually just an index.

Then I would compare total cost honestly: operators and modeling expertise for self-run Cassandra, cloud bills for managed services, licences for some distributed SQL, and the real cost of migrating.

From that I would publish a small menu, perhaps Cassandra or managed wide-column for high-volume stable workloads, PostgreSQL as the default for business services, distributed SQL for global relational data, and a managed key-value store for simple cases, each with a platform team, Spring Boot libraries and a modeling guide, plus an exception process.

Finally I would migrate only where the current store causes measurable pain, worst first, and keep future moves cheap with domain events, open formats and a repository layer.

About this answer

Last updated
12 November 2026
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "Your company adopted Cassandra years ago for scale, and many teams struggle with...": https://scrivio-interview-library.netlify.app/databases/cassandra-and-dynamodb/7bf168da38/