Scrivio Interview library
ScenarioIntermediate7 min read · updated 12 November 2026

Two years after a team chose MongoDB for an order service, a new tech lead wants to move to PostgreSQL, and nobody remembers why MongoDB was chosen. How would ADRs have helped, and how do you handle the decision now?

An ADR would have recorded why MongoDB was chosen and under which conditions, so the team could simply check whether those forces still hold. Without one, we first reconstruct the original context from git history, old tickets, incidents and the people who were there, then write a new ADR for the move to PostgreSQL with options, costs and migration risks. If it is accepted, we mark the reconstructed old decision as superseded and link the two, and we avoid calling the old choice wrong just because the situation has changed.

Why this question is asked

Database migrations are among the most expensive changes a team can make, and they are often proposed by someone new who sees today's pain without yesterday's reasons. Interviewers ask this question to see two things: whether we understand what decision records are for, and whether we can handle a disagreement about the past without turning it into blame. In this answer, we will see what an ADR would have given the team, how to rebuild the missing context, how to evaluate the proposal properly in a new ADR, how to link the old and new decisions, and the mindset that keeps the discussion fair.

1What an ADR Would Have Told Us

An architecture decision record captures one decision together with its context: the problem, the constraints and the forces at the time. Suppose the team had written one in 2024. It might have said that orders came from five sales channels with very different shapes, the schema was expected to change weekly during launch, the team had run MongoDB before, and reporting was handled by a separate data warehouse.

With that record, the new tech lead's question becomes concrete. Are order shapes still varied, or have they settled into one structure? Is the schema still changing weekly? Has reporting moved into the service? If the answers are 'settled, rarely, yes', the original forces no longer hold, and the case for PostgreSQL is strong. If order shapes are still wildly different, the case is weaker. The record does not decide for us, but it turns a debate about opinions into a check of facts.

2Reconstructing the Lost Context

Since no record exists, the first job is archaeology, and it should come before any decision. We look at the git history around the first commits of the service, including the first pull requests and their discussions. We search old tickets, chat channels and design docs for the word MongoDB. We read incident reports, because they often reveal what the team was worried about. And we talk to people: the original developers may have moved to another team but are usually happy to spend thirty minutes explaining.

The output is a short written summary of what we think the original forces were, marked clearly as reconstructed. This is worth doing even if the decision seems obvious, because it often surfaces a hidden reason. For example, we might learn that MongoDB was chosen because a downstream team consumes its change streams, which a migration would break.

Step throughHandling the proposal when nobody remembers
  1. Reconstruct the original contextgit history, tickets, incidents, people
  2. Do the original forces still hold?
    YesChange is hard to justify; fix pain locallyNoEvaluate the move to PostgreSQL
  3. Write a new ADR with optionsstay, improve MongoDB use, migrate
  4. Estimate costs and migration risksdata volume, downtime, consumers, rollback
  5. Accepted?
    YesMark the old decision superseded, link bothNoRecord why we stay, with review triggers

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

Either outcome ends with a written decision, so the next person does not face the same blank page.

3Writing a New ADR for the Proposed Change

The new tech lead's proposal becomes a new ADR, status proposed. Its context section explains today's forces: perhaps orders now have a fixed structure, finance needs joins across orders, payments and refunds, and the team spends time writing consistency checks that a relational schema with foreign keys would give for free.

The options section should not be a single option. A fair set might be: stay on MongoDB as it is, stay on MongoDB but fix the specific pains (for example with schema validation and multi-document transactions, which MongoDB has supported since version 4.0), or migrate to PostgreSQL. Each option gets its costs written out. For a migration, that means the data volume to move, whether we can tolerate downtime or need a dual-write or change-data-capture period, which consumers read from the database directly, how long the team will be slowed down, and how we roll back if the new path misbehaves.

Concrete numbers help a lot here. 'We have 400 million order documents, about 2 TB, and the order API serves 1,500 requests per second at peak' leads to a very different plan from 'we have a few gigabytes'. A migration of that size might take a quarter of the team's capacity for six months, and the ADR should say so.

4Superseding and Linking the Records

If the team accepts the migration, we also write the missing record for the original decision, marked as reconstructed and with status superseded, and link it to the new ADR. Each record links to the other. A reader in 2030 can then follow the chain: why MongoDB was chosen, when and why that changed, and what replaced it.

If the team decides not to migrate, the new ADR is still valuable. Its status becomes rejected, or it is accepted as 'stay on MongoDB', and it records the conditions that would make us revisit the question, such as 'if cross-entity reporting moves into this service' or 'if consistency incidents exceed two per quarter'. That prevents the same debate from starting from zero every year.

Text
docs/adr/
0003-use-mongodb-for-orders.md # Status: Superseded by 0019 (reconstructed 2026-11)
0019-move-orders-to-postgresql.md # Status: Accepted, supersedes 0003

Notice the word reconstructed. Being honest that the old record was rebuilt after the fact keeps the history trustworthy.

5Not Treating the Past as a Mistake

There is a trap in this situation: assuming the original team was wrong. Two years ago they had different requirements, a different team and a different deadline. A choice that fitted those forces was a good decision, even if it no longer fits. If the new tech lead frames the proposal as fixing a mistake, the people who made the original choice become defensive, and the discussion becomes about reputations instead of facts.

So we judge a decision by the information available when it was made, and we judge a change by today's information. That framing is also what ADRs encourage: the record says 'given these forces, we chose this', which makes it natural to say later 'the forces changed, so we choose differently'.

6Follow-up questions

What if the original developers have all left the company?

Then we rely more on artifacts: commit messages, pull request discussions, tickets, incident reports, early design documents and the data itself. The shape of the stored documents often tells us a lot, for example whether they really are varied or all follow the same structure. We write down what we found and say clearly which parts are guesses.

How do you migrate safely if the move is accepted?

Usually incrementally: write to both stores or stream changes from MongoDB with change data capture, backfill historical data, compare reads between the two in shadow mode, then switch reads gradually, for example by sales channel, keeping the ability to switch back until confidence is high. Only after that do we retire the MongoDB collections.

How do you stop this from happening again?

Make ADRs a normal part of the team's work for decisions that are hard to reverse, keep them in the repository, and reference them in reviews. The cost is thirty minutes per decision; the saving is weeks of archaeology like the one in this scenario.

7Conclusion

In this answer, we saw that an ADR would have preserved the reasons for choosing MongoDB, letting the team check whether those forces still hold. Without one, we reconstruct the context from history, people and incidents, evaluate the move in a new ADR with real options, costs and migration risks, mark the old decision superseded and link both if we change course, and treat the past decision as reasonable for its time rather than as a mistake.

What to say in the interviewAbout 90 seconds aloud

Open with

If the team had written an ADR when they chose MongoDB, we would know the context: maybe order shapes varied a lot across channels, the schema was changing weekly, and the team knew MongoDB well.

Then, if they want more

Then the new tech lead's proposal would be a simple check: do those forces still hold? Since nobody remembers, I would start by reconstructing the context before deciding anything.

I would read the early commits and pull requests, search tickets and chat for the original discussion, look at incident reports, and talk to the original developers if they are still around. I would write that down as a reconstructed record.

Then I would ask the tech lead to write a new ADR for the move, with real options: stay as we are, stay on MongoDB but fix the specific pains, or migrate to PostgreSQL.

For the migration, I want the costs spelled out, like data volume, downtime tolerance, who reads the database directly, how long the team slows down, and how we roll back. If we accept it, the old record is marked superseded and both link to each other. If we reject it, we write down what would make us revisit.

And throughout, I would be careful not to frame the original choice as a mistake. It was probably right for its time; the context changed, and that is a normal reason to change a decision.

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 official documentation for the version you use. 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 "Two years after a team chose MongoDB for an order service, a new tech lead wants to move...": https://scrivio-interview-library.netlify.app/architecture/architecture-decisions/729d14b403/