Quick revision
The short answer
My advice would be to default to mature, widely skilled technologies, today usually a relational database run as a managed service, and to add specialised stores only for needs that have been proven with numbers. Many organisations adopted NoSQL in the 2010s for scale they never reached and paid with lost transactions and query flexibility, while relational databases absorbed most of what made NoSQL attractive: JSON support, horizontal scaling options and managed operations. Because data outlives the applications that write it, the bets that matter most are the ones that keep data accessible and movable: open formats, managed services with exit paths, and standard interfaces.
What to remember
In this answer, we looked back at the NoSQL wave: genuine breakthroughs for the few at extreme scale, and lost transactions, query flexibility and clean data for many who adopted it without that need. Relational databases meanwhile absorbed JSON support, horizontal options and managed operations. For the next decade, we turned this into principles: default to mature, widely skilled technology, add specialised stores only for proven needs, remember that data outlives applications and keep it accessible, and prefer managed services and open formats to reduce operational risk and lock-in.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
My advice would be to default to mature, widely skilled technologies, today usually a relational database run as a managed service, and to add specialised stores only for needs that have been proven with numbers. Many organisations adopted NoSQL in the 2010s for scale they never reached and paid with lost transactions and query flexibility, while relational databases absorbed most of what made NoSQL attractive: JSON support, horizontal scaling options and managed operations. Because data outlives the applications that write it, the bets that matter most are the ones that keep data accessible and movable: open formats, managed services with exit paths, and standard interfaces.
Background to this question
Database choices are among the longest-lived decisions in a company. Applications are rewritten every five to ten years, but the data they hold is often still there twenty years later, moved from system to system. An executive who has watched one technology wave rise and partly recede is asked this kind of question to show judgment: not which product is best today, but how to make decisions that age well. In this answer, we will look at what the NoSQL wave promised and what it cost, how relational databases changed in response, and then turn those lessons into a few principles for the next decade, with an example of applying them.
1What the NoSQL Wave Promised, and Why It Was Attractive
In the early 2010s, web companies were hitting real limits. Single relational servers could not hold the write volume of the largest services, sharding them by hand was painful, and schema changes on big tables took hours of locking. Systems such as Cassandra, MongoDB, DynamoDB and others offered horizontal scaling across many machines, flexible schemas that needed no migrations, and high availability across data centres. For the companies operating at that scale, these were genuine breakthroughs.
The idea spread far beyond them. Many organisations adopted NoSQL stores for ordinary business applications, often because they were fashionable, easy to start with, or promised to avoid schema design. Those organisations rarely came near the scale that justified the trade-offs.
2What It Cost Organisations That Did Not Need the Scale
The costs arrived over years. Without multi-record transactions, teams wrote compensation logic and reconciliation jobs to fix data that a transaction would have kept consistent. Without joins and ad hoc queries, every new report or feature needed new denormalised copies, pipelines or tables designed in advance. Without schema enforcement, collections accumulated documents in many historical shapes that every reader had to handle. And because data models were built around the original access patterns, changing the product meant migrating data.
The lesson is not that NoSQL was a mistake. It is that a specialised tool used for a general purpose gives up general strengths in exchange for strengths that are never used. The trade-off was right for some and wrong for many who made it.
| Promise | What it gave up | Who benefited |
|---|---|---|
| Horizontal write scale | multi-record transactions, joins | the few at very large scale |
| No schema migrations | enforced structure, clean data | fast early prototypes |
| Built-in high availability | simple consistency | global, always-on services |
| Easy to start | flexible queries later | short-lived projects |
3How Relational Databases Absorbed the Lessons
At the same time, relational databases changed. PostgreSQL added jsonb with indexes, and MySQL added a JSON type, so flexible parts of a model can live next to relational columns. Managed services made replication, backups, failover and upgrades a configuration choice rather than a project. Hardware grew enormously, so a single well-sized server with read replicas now serves workloads that once demanded a cluster. Online schema changes became much safer. And distributed SQL databases appeared, offering horizontal scaling while keeping SQL and transactions.
Meanwhile, NoSQL products added transactions, schema validation and SQL-like query languages. The two worlds moved towards each other, and the space where a specialised store is clearly necessary became narrower and better understood.
4Principle 1: Default to Mature, Widely Skilled Technology
For a new system, I would make a mature relational database, run as a managed service, the default. The reasons are practical: it covers most workloads, the hiring market is full of people who know it, tooling for migrations, monitoring and analytics is abundant, and its failure modes are well documented. Choosing it requires no justification; choosing something else does.
Specialised stores remain valuable for proven needs: a search engine for full-text relevance, a cache for sub-millisecond reads, a time-series store for very high-rate metrics, a wide-column store for truly enormous write volume. Proven means measured, for example a load test showing that the default cannot meet a requirement at reasonable cost, not a guess about future scale.
5Principle 2: Data Outlives Applications, So Keep It Accessible
Most of the long-term cost of a database choice is the cost of eventually leaving it. A company may rewrite an application three times while the same customer and order data moves through each version. So I would favour stores whose data can be read with standard tools and exported in open formats, keep business data documented independently of any one application, and ensure every important store has a tested export or replication path, for example change data capture into a warehouse that holds the history in an open table format.
Managed services fit this principle well when chosen carefully. They reduce operational risk dramatically, since backups, patching and failover are handled by people who do it at scale. Their risk is lock-in, which we limit by preferring services built on open engines or standard protocols, avoiding proprietary features unless they bring clear value, and knowing how we would move off them.
- Can a managed relational database meet the need?YesUse it, the defaultNoMeasure the gap with a load test
- Gap proven with numbers?YesConsider a specialised storeNoUse the default
- Open formats, export path, people who can run it?YesAdopt, record the reasonsNoLook for a more portable option
3 steps in order. Play them, or step through them one at a time.
6Applying the Principles: An Example
Imagine the organisation is planning a new loyalty platform and a team proposes a document database because the reward rules vary by partner. Applying the principles, we ask whether a relational database with a jsonb column for partner-specific rules meets the need, and it does. We ask about scale: two million members and a few hundred transactions per second, well within a managed PostgreSQL. The team also needs search over partner offers, a proven need for relevance ranking, so a managed search service is added, fed from the database and rebuildable from it. The data ends up in an engine thousands of engineers know, with a clear export path, and the specialised store holds only derived data. Ten years from now, whoever rewrites the application inherits data that is easy to move.
7Follow-up questions
Is distributed SQL the next default?
For many organisations it is a strong option when a single relational server is truly not enough or when multi-region writes are required. But it brings its own latency and operational characteristics, and most workloads still fit a single managed primary with replicas, so I would treat it as the next step when needed, not the starting point.
How do you avoid this advice becoming an excuse to block innovation?
By keeping a clear, fast path to adopt a specialised store when a need is shown with numbers, and by revisiting the defaults regularly. The goal is that choices are deliberate and owned, not that they are always the same.
What would you say to a board worried about vendor lock-in?
That lock-in is a cost to manage, not a thing to avoid entirely. We choose managed services for their large operational benefits, prefer open engines and formats, keep an export path for every important dataset, and estimate the cost of leaving as part of each decision.
8Conclusion
In this answer, we looked back at the NoSQL wave: genuine breakthroughs for the few at extreme scale, and lost transactions, query flexibility and clean data for many who adopted it without that need. Relational databases meanwhile absorbed JSON support, horizontal options and managed operations. For the next decade, we turned this into principles: default to mature, widely skilled technology, add specialised stores only for proven needs, remember that data outlives applications and keep it accessible, and prefer managed services and open formats to reduce operational risk and lock-in.
Open with
I would start with an honest reading of the last fifteen years. NoSQL solved real problems for companies at extreme scale: horizontal writes, availability across regions, no painful schema changes.
Then, if they want more
But many organisations adopted it for ordinary applications and scale they never reached, and they paid for it over years with compensation logic instead of transactions, pipelines instead of joins, and collections full of old document shapes.
Meanwhile relational databases absorbed most of what made NoSQL attractive: JSON columns with indexes, managed services that handle replication and failover, far bigger hardware, and distributed SQL for the cases that truly need horizontal scale. So my advice has a few principles.
Default to mature, widely skilled technology, which today usually means a managed relational database; using it needs no justification, anything else does. Use specialised stores like search, caches or time-series for needs proven with measurements, not guesses about future scale.
Remember that data outlives applications: the data will probably go through three rewrites, so the long-term cost is the cost of moving it, and I would favour open engines, open formats and a tested export path, for example change data capture into a warehouse.
And prefer managed services, because they cut operational risk a lot, while choosing ones on open engines and knowing the exit path, so lock-in is a managed cost rather than a trap.
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.
- Official documentation
- Spring Data reference
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 "Looking back at the NoSQL wave of the 2010s and the later return of relational databases...": https://scrivio-interview-library.netlify.app/databases/spring-data-nosql/5b367038ef/