Scrivio Interview library
LeadershipPrincipal6 min read · updated 12 November 2026

Resharding projects at your company have taken 9 to 18 months each, three times in eight years. What would you change in strategy, architecture and organisation so the next growth step does not repeat this?

Three long resharding projects mean that moving data is treated as a rare emergency instead of a routine capability. I would change strategy by making data placement a product: tooling, built or bought, that moves units such as buckets or tenants online as a normal operation. I would change architecture to logical sharding with many units from the start and less cross-shard coupling in the domain model, and organisation by funding a platform team that owns the tooling and runs small rebalancing moves regularly. I would also re-evaluate distributed SQL or managed sharding, which make resharding the vendor's problem at a price.

Why this question is asked

When the same painful project happens three times, the problem is not the project; it is the system that keeps producing it. A resharding effort of 9 to 18 months usually means a frozen roadmap, a tired team and real risk to customer data. Interviewers at this level ask what we would change because they want to hear root-cause thinking across strategy, architecture and organisation, not a better project plan. In this answer, we will look at why resharding keeps taking so long, then go through the changes in strategy, architecture and organisation, the option of buying, and how to measure that the change worked.

1Why Resharding Keeps Taking a Year

Long resharding projects usually share the same causes. The shard count is baked into code, often as hash % N in several services, so changing it means coordinated code changes. Data is moved rarely, so every project starts by rediscovering how to do it and building one-off scripts. The domain model has many relationships that cross shards, such as joins or transactions between entities with different shard keys, so moving data breaks application behaviour and needs code changes. And nobody owns the problem between projects, so the knowledge leaves with the people who did the last one.

Notice that none of these is about the size of the data. A well-designed system can move terabytes online in days. What makes it take a year is that each step is manual, novel and coupled to application changes. So the fix is to make moving data routine, decoupled and owned.

2Strategy: Make Data Placement a Product Capability

The strategic change is to treat 'move a unit of data to another shard, online' as a capability the platform offers, like deploying a service. That means tooling that copies a unit with snapshot plus change streaming, verifies it, cuts over with a short write pause, keeps a rollback path, and cleans up, all driven by one command and observable on a dashboard. Whether we build it or adopt it, for example Vitess for MySQL or Citus's shard rebalancer for PostgreSQL, the goal is the same: the next growth step is adding servers and letting the rebalancer move units, not a project.

3Architecture: Logical Shards and Less Cross-Shard Coupling

The architectural change is logical sharding with many units. Keys map to a large fixed number of buckets, such as 4,096, or to tenants through a directory, and buckets map to physical shards through a table. Physical scaling then becomes rebalancing: adding four shards means moving some buckets to them, with no rehashing and no code change. If the current system routes with hash % N, introducing buckets is the first investment, and it pays for every future step.

The second architectural change is reducing cross-shard coupling in the domain. If a customer's orders, payments and addresses all share the customer's shard key, they move together, and the application never notices the move. Where the domain truly needs cross-shard relationships, such as a buyer's view across sellers, we serve it from read models fed by events rather than from joins across shards. Then moving a unit does not require changing application code, which was a large part of the 9 to 18 months.

Step throughSharding as a platform capability
  1. Application servicestalk to a routing library; never know shard counts
  2. Routing layerkey -> bucket (fixed) -> shard (from a mapping table)
  3. Placement toolingmove bucket or tenant: copy, stream, verify, switch, roll back
  4. Physical shardsadded or removed; rebalanced continuously

4 layers, from the top down. Step through them one at a time.

Each layer hides the one below: growth changes only the bottom two.

4Organisation: A Team That Owns It and Practises It

The organisational change is funding a platform team, perhaps four to six engineers, that owns sharding tooling, the routing library and the runbooks, measured on how safely and quickly data can be moved. Without an owner, the capability decays between uses.

Just as important, that team runs small rebalancing moves regularly, for example moving a few buckets every week to keep load balanced, or moving a growing tenant to a quieter shard. Regular small moves keep the process practised, keep the tooling tested against the current schema and versions, and turn the next growth step into more of the same. A process run once every three years is always a new process; a process run every week is routine.

5Re-evaluate Buying

Before investing years in tooling, I would re-evaluate the market with today's options. Distributed SQL databases such as CockroachDB, YugabyteDB, Spanner or TiDB split and rebalance data automatically, and managed sharding offerings such as Citus on Azure or Vitess-based services (PlanetScale, for example) provide online resharding as a product. They make resharding the vendor's problem. The costs are licence or service fees, migration effort, new failure modes and partial compatibility, so the comparison should be a measured proof on our workload and a total cost over several years, including the platform team we would otherwise need. Either outcome is fine; what is not fine is the current pattern.

6Measuring That It Worked

I would set targets the board and the engineers can both understand. The time to move one bucket or tenant online, from command to cleanup, measured in hours, and ideally falling. The number of moves per month, which should be steady rather than zero. Customer-visible impact per move, such as the length of write pauses, which should stay in seconds. And the headline target: the next capacity step completed in weeks, without a feature freeze. If these numbers improve, the 9 to 18 month projects do not come back.

7Follow-up questions

How do you justify a platform team to leadership?

With the cost of the last three projects: if each took a year and tied up eight engineers and froze parts of the roadmap, that is far more than a team of five working continuously, and the projects carried outage risk. Framing it as removing a recurring year-long cost, not adding headcount, usually lands.

Can you retrofit logical buckets into an existing system?

Yes, usually as the first step of the next growth phase: add a bucket column computed from the hash, build the mapping table so that today's mapping reproduces the current hash % N placement, switch routing to read the table, and only then start moving buckets. Nothing moves on the day buckets are introduced.

What if the domain model cannot avoid cross-shard transactions?

Then we make them explicit and rare: sagas with compensations, ledger designs, or read models for queries. Each such relationship should be a documented exception, because each one makes moves harder.

8Conclusion

In this answer, we saw that repeated year-long resharding projects come from treating data movement as a rare, manual, coupled event. The fix covers strategy, making online placement of buckets or tenants a product capability; architecture, logical sharding with many units and less cross-shard coupling; and organisation, a funded platform team that runs small moves regularly. We also re-evaluate distributed SQL and managed sharding as a way to buy the capability, and we measure success by how routine and quick moves become.

What to say in the interviewAbout 90 seconds aloud

Open with

Three resharding projects of 9 to 18 months tell me the company treats moving data as a rare emergency, so every time it is manual, new and tangled with application changes.

Then, if they want more

I would change three things. Strategy: make data placement a product capability. We need tooling, built or adopted like Vitess or the Citus rebalancer, that moves a unit of data, a bucket or a tenant, online with copy, change streaming, verification, a short write pause and a rollback path, from one command.

Architecture: move to logical sharding with many units, for example 4,096 fixed buckets mapped to shards through a table, so physical scaling becomes rebalancing with no rehashing and no code changes. And reduce cross-shard coupling in the domain, so related data shares a shard key and moves together, and cross-shard views come from read models instead of joins.

Organisation: fund a platform team that owns the tooling and routing library, and have it run small rebalancing moves every week, so the process stays practised and tested.

I would also re-evaluate distributed SQL and managed sharding with a proof on our workload and a multi-year cost comparison that includes the team we would otherwise need, because they make resharding the vendor's problem.

Success would be measured by time per move, moves per month, write pause length, and the next capacity step finishing in weeks without a feature freeze.

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 "Resharding projects at your company have taken 9 to 18 months each, three times in eight...": https://scrivio-interview-library.netlify.app/databases/partitioning-and-sharding/4ae8cff8c7/