Scrivio Interview library
LeadershipPrincipal6 min read · updated 13 November 2026

A company runs a home-grown key-value store built eight years ago. It holds 2 PB for 300 services, and the team that knows it has shrunk to four engineers. Incidents in it are rare but long, and hiring for it is hard.

As the senior technical leader, how do you decide whether to keep investing in the home-grown store, migrate to an open-source store, or move to a managed cloud service?

First I would measure the real situation: incidents and recovery times, the feature backlog, the bus-factor risk of four engineers, and whatever the store does that alternatives cannot. Then compare keeping it, an open-source store and a managed service on five-year total cost, staff, hardware, fees, migration effort per service and risk, against the latency, durability and consistency each service needs. A managed service removes operations but costs more at volume and limits tuning; open source brings a community and hiring pool but still needs a platform team. Migrating 2 PB across 300 services is a multi-year program, and whatever we choose, we fix the immediate risk with runbooks, cross-training and a feature freeze.

Why this question is asked

Every long-lived company eventually owns a system like this: built by talented people for a real need, it worked for years, and now the people who understand it are few and the alternatives have matured. Interviewers ask this to see whether a senior leader can make a balanced, evidence-based decision about a critical system without either sentimental attachment or a rush to rewrite. In this answer, we will measure the current situation, find what is genuinely special about the store, compare the three options on total cost, weigh managed against open source, plan a migration that can actually finish, and deal with the immediate risk.

1Measuring the Real Situation

Opinions about home-grown systems are strong, so the first job is data. How many incidents did the store cause in the last two years, and how long did each take to resolve? Rare but long incidents, as the question says, are a sign that only a few people can debug it. What is the backlog of features that services need, such as encryption at rest, multi-region replication or better observability, and how long have they waited? And what is the bus factor, the number of people who could leave before nobody can run it? With four engineers, perhaps one or two who know the replication code deeply, the honest answer may be one or two.

2What the Store Does That Alternatives Cannot

Before comparing options, we must know what we would lose. Home-grown stores often exist because of a specific guarantee: a particular consistency model, a latency target at the 99.9th percentile, a custom data type or an operational feature like instant snapshots. Some of the 300 services may depend on that behaviour without knowing it.

So we inventory the API features and guarantees actually used, by instrumenting the client library to record which operations and consistency levels each service calls. That list becomes the requirements for any replacement. Often it shows that 90 percent of services use plain get and put and only a handful use the special features, which shapes the migration plan.

3Comparing the Options on Total Cost

We compare the three options over five years, not on this year's budget. For keeping the store: the staff to make it sustainable, likely doubling the team, plus hardware. For an open-source store such as Cassandra, ScyllaDB, TiKV or FoundationDB: hardware, a platform team to run it, any support contracts, and migration effort. For a managed cloud service such as Amazon DynamoDB, Google Cloud Bigtable or Azure Cosmos DB: request and storage fees at our volume, much smaller operations staffing, and migration effort plus possibly moving data to that cloud. Each option is then scored against the latency, durability and consistency each tier of services needs, and against risk.

The three options at a glance
OptionMain costMain riskFits when
Keep and investgrow and retain a teambus factor, slow featuresthe store has a unique, needed guarantee
Open-source storehardware plus platform teammigration, operational learninghigh volume, strong platform team
Managed cloud serviceper-request and storage feescost at volume, vendor lock-inmoderate volume, small ops team
Score each against the inventory of features services actually use.

4Managed Service or Open Source?

A managed service removes nearly all operations work: no hardware, no upgrades, no on-call for the storage engine. That is valuable for a company that struggles to hire storage engineers. But it charges per request and per GB, which at 2 PB and high request rates can be much more than running our own; it limits tuning, since we cannot change compaction strategies or consistency internals; and it ties us to a vendor's API and pricing.

An open-source store brings a community, documentation, conferences and a hiring pool of people who already know it, which directly addresses the bus-factor problem. But it still needs a platform team to run, upgrade and debug it, smaller than for a home-grown system but not zero. A common outcome is to choose by tier: a managed service for the many small services and an open-source store run by the platform team for the few largest, cost-sensitive ones.

5A Migration That Can Actually Finish

Moving 2 PB used by 300 services is a multi-year program, and most failed migrations fail because they try to move everything at once or never finish the long tail. So the plan has a few key elements. A compatibility client gives services the same interface over both stores, so service code changes little. Services migrate one at a time, each with dual writes or a change stream from the old store to the new one, then a verification phase comparing reads from both, then a switch of reads, and finally removal of the old data.

We start with low-risk services to learn, move to the largest ones once the tooling is proven, and publish a dated retirement schedule so the last services do not linger for years.

Step throughMigrating one service
  1. Switch to the compatibility clientsame API over both stores
  2. Dual write or stream changes to the new storebackfill existing data
  3. Compare reads from both storestrack mismatch rate
  4. Mismatches near zero for two weeks?
    YesSwitch reads to the new storeNoFix and keep comparing
  5. Stop writes to the old storedelete data after a retention period

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

6Fixing the Immediate Risk Whatever We Choose

The decision and the migration take months or years, but the bus-factor risk exists today. So regardless of the choice, I would immediately document runbooks for the known failure modes, cross-train engineers from other teams through shadowing on-call and paired debugging, and freeze new features in the old store so the team's time goes to stability and the migration rather than to growing the system we may leave. If we decide to keep the store, these steps become the foundation of a sustainable team; if we migrate, they keep us safe until the last byte has moved.

7Follow-up questions

How do you handle the four engineers' concerns about the decision?

Involve them from the start: they know the store's real guarantees and pains better than anyone. Make clear that their expertise is needed for the migration or the investment either way, and offer growth paths, such as leading the new platform. Losing them mid-decision is the biggest risk of all.

What if the inventory shows that a few services need a unique guarantee?

Then the plan can keep a small, well-understood piece for those services, or build that feature on top of the new store, while the other 290 services move. Not every service must end on the same store.

How do you keep the migration funded over years?

Show progress in the same terms as the business case: services migrated, data moved, incidents and on-call load falling, and cost per GB. Regular, visible milestones make it hard to cancel and easy to support.

8Conclusion

In this answer, we approached the home-grown store with data first: incidents and recovery times, the feature backlog, the bus factor and the special guarantees services actually rely on. We compared keeping it, an open-source store and a managed service on five-year total cost and on how well each meets latency, durability and consistency needs, noting that managed services remove operations but cost more at volume and limit tuning, while open source brings a hiring pool but needs a platform team. We planned a multi-year, service-by-service migration with a compatibility client, dual writes or change streams and verification, and we fixed the immediate risk with runbooks, cross-training and a feature freeze.

What to say in the interviewAbout 80 seconds aloud

Open with

I would start by measuring the real situation instead of debating opinions: incidents and recovery times, the backlog of features services are waiting for, the bus-factor risk with four engineers, and what the store does that alternatives cannot, such as a special consistency or latency guarantee.

Then, if they want more

I would instrument the client library to see which operations each service actually uses. Then I would compare the three options on total cost over five years: staff, hardware, licences or cloud fees, migration effort per service and risk, plus how well each meets the latency, durability and consistency needs.

A managed service removes operations but costs more per request at high volume and limits tuning; an open-source store brings a community and a hiring pool but still needs a platform team. Often the answer is by tier, managed for the many small services and open source for the largest.

If we migrate, 2 PB across 300 services is a multi-year program: a compatibility client, service by service with dual writes or change streams, read verification, then cut over, starting with low-risk services. And whatever we choose, I would fix the immediate risk now: document runbooks, cross-train engineers, and freeze new features in the old store.

About this answer

Last updated
13 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 "As the senior technical leader, how do you decide whether to keep investing in the...": https://scrivio-interview-library.netlify.app/architecture/system-design-problems/dc506a33dd/