Scrivio Interview library
LeadershipPrincipal5 min read · updated 13 November 2026

The architecture group proposes a standard: every new service must be horizontally partitioned, with sharded storage, from day one, because 'we will need it eventually'. Several teams object that their services will never exceed a few hundred requests per second.

As the senior technical leader, how do you decide on this standard?

I would not mandate sharding from day one. Sharding costs every team complexity, harder transactions and reporting, and slower delivery, while most services fit on one well-sized database for years. Instead I would standardise the cheap things that keep partitioning possible later, such as stateless app tiers and a partition key in the data model, set measurable thresholds that trigger a scaling review, and give the teams that do need sharding a shared platform for it.

Why this question is asked

Standards set by an architecture group affect every team for years, so a wrong one is very expensive. 'We will need it eventually' sounds prudent, but it hides a real trade: certain costs today against uncertain benefits later. Interviewers ask this to see how a senior leader weighs those, listens to the objecting teams, and turns a debate into a rule people can follow. In this answer, we will recap what sharding involves, count what it costs, look at how far a single database goes today, define a standard that keeps options open, and describe the thresholds and platform support that make it work.

1A Quick Recap of Sharding

Sharding, or horizontal partitioning of storage, means splitting one logical dataset across several databases, each holding the rows for a range or hash of a partition key such as tenant id or customer id. Each shard is smaller and handles a share of the writes, so the system can grow by adding shards.

The price is that the application, or a layer under it, must always know which shard holds which row. Queries that touch many keys must visit many shards, and changes that span shards lose the simple guarantee of a single database transaction.

2What Sharding From Day One Really Costs

Every team that shards pays for it whether or not it ever reaches the scale that needs it. Transactions that were one BEGIN and COMMIT become sagas or two-phase protocols. Joins across tenants become scatter-gather queries. Reporting needs a separate warehouse because no single database holds all the data. Schema migrations must run on every shard, and operations has N databases to back up, monitor and upgrade instead of one.

These costs show up as slower delivery and more incidents, and they land on the teams that objected: those at a few hundred requests per second. For them the standard buys nothing and costs a lot.

What changes when a service is sharded
ConcernOne databaseSharded
Multi-row transactionBEGIN ... COMMITsaga or cross-shard protocol
Query across customersone SQL queryscatter-gather over every shard
Reportingread replicaseparate warehouse pipeline
Schema migrationrun oncerun and verify on each shard
Operationsone cluster to runN clusters, rebalancing tools

3How Far One Database Goes Today

Before mandating anything, we should ask for evidence. A single PostgreSQL or MySQL server on current hardware, with dozens of cores, hundreds of gigabytes of memory and fast NVMe storage, comfortably handles thousands of writes per second and data sets of several terabytes, with read replicas taking much of the read load. A service at a few hundred requests per second uses a small fraction of that.

So for most services the honest forecast is that they will not need sharding within the life of their current design. Some will, such as event ingestion, a user activity store or multi-tenant data with very large tenants, and those teams can usually see it coming from their growth curves.

4A Standard That Keeps Options Open

Instead of mandating the expensive thing, I would standardise the cheap things that make sharding possible later. Application tiers are stateless, so they can scale out freely. Every data model carries a natural partition key, such as tenant_id, on every table where it applies, even when there is only one database, so a later split does not require rewriting every query. Designs avoid relying on global ordering or global sequences where they do not need them, and use keys such as UUIDs or ULIDs that can be generated anywhere.

These cost almost nothing on day one, and they turn a future sharding project from a rewrite into a migration. That is a much better trade than paying the full cost everywhere up front.

5Thresholds That Trigger a Scaling Review

A standard needs a trigger, otherwise 'later' becomes 'too late'. I would define thresholds such as projected data size above a few terabytes, or projected write rate above a set share of a tested single-node limit, within the next 18 months. Teams report these numbers in their yearly architecture review, and crossing a threshold starts a scaling review, which is when a team plans partitioning with time to do it well.

Eighteen months matters because sharding an existing service with live traffic takes many months. A trigger that fires only when the database is at 90 percent CPU fires too late.

Step throughDeciding whether a service must partition
  1. Projected data or write rate crosses the threshold within 18 months?
    YesStart a scaling review nowNoKeep one database, follow the cheap standard
  2. Can vertical scaling and read replicas cover it?
    YesScale up, review again next yearNoPlan partitioning with the platform library
  3. Migrate in stages with the partition key already in place

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

6Platform Support for the Teams That Need It

When a service does need to partition, it should not build sharding from scratch. The platform team can provide a tested sharding library, a supported distributed SQL database, or a managed option, together with tooling for rebalancing, migrations and cross-shard queries. Centralising that work means it is done well once, and teams that need scale get it faster than if every team had been forced to hand-roll it.

Finally, I would make the decision collaboratively: share the cost analysis with the architecture group and the teams, agree on the thresholds together, and revisit the standard after a year using data on how many services actually crossed them.

7Follow-up questions

What signals would tell you a service has waited too long to partition?

The database is already near its limits during normal peaks, so any growth means an incident. Vertical scaling is exhausted or only one size step remains. Vacuum, index builds or backups no longer finish within their windows. Teams are adding caches and queues mainly to protect the database. And the partition key is missing from the data model, so the migration would need a large rewrite. When several of these appear together, the service is late and the migration will be painful and risky.

How do you avoid looking like you are dismissing the architecture group?

By agreeing with their goal, which is not being caught out by growth, and showing that the cheap standard plus thresholds achieves it at lower cost. I would bring numbers on single-node capacity and on what sharding costs per team, and give the group ownership of the thresholds and the platform support, so they lead the outcome rather than lose the argument.

8Conclusion

In this answer, we saw that sharding from day one charges every team for complexity few will need, while one well-sized database serves most services for years. A better standard requires the cheap enablers, stateless tiers, a partition key in the model and no needless global ordering, sets thresholds that start a scaling review 18 months ahead, and provides shared platform support for the services that truly need to partition.

What to say in the interviewAbout 80 seconds aloud

Open with

I would not approve a blanket sharding mandate. Sharding has real, permanent costs: harder transactions, scatter-gather queries, a separate reporting pipeline, migrations on every shard and more operations work, and every team pays them whether or not it ever needs the scale.

Then, if they want more

Meanwhile a single well-sized PostgreSQL or MySQL server handles thousands of writes per second and terabytes of data, so a service at a few hundred requests per second is nowhere near needing it.

So I would ask for evidence and standardise what is cheap and keeps options open: stateless application tiers, a partition key such as tenant id carried in the data model from the start, globally unique ids, and no reliance on global ordering where it is not needed.

Then I would define thresholds, like projected data size or write rate within 18 months, that trigger a scaling review early enough to plan the migration properly. And for the services that cross them, the platform team would provide a sharding library or a supported distributed database, so nobody builds it alone.

I would agree the thresholds with the architecture group and review the standard after a year with real data.

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 on this standard?": https://scrivio-interview-library.netlify.app/architecture/sd-fundamentals/677e0d3729/