When splitting a monolith pays: resource and failure profiles, not nouns

split -> gain >= hop_cost

A monolith is right until one feature needs different hardware or a different blast radius, and only then does a network hop pay for itself.

Microservices look like the mature default, so teams split every bounded context into its own service with its own queue and database. Splitting pays only in two cases: one part saturates a different resource than its neighbor, or one part should fail without taking the others down. Otherwise each new boundary turns an in-process call into a remote request that can fail, and every hop adds latency plus something new to deploy and page on.

A monolith ships one binary, so every instance carries every feature, and all features share one resource profile and one failure domain. When uploads dominate, the autoscaler sees CPU pegged by transcoding and adds copies of the whole program, including follow handlers that barely run. Splitting changes the unit of scaling. An upload service runs on instances sized for CPU and bandwidth, writing to bulk storage. A follow service runs on small instances doing cheap row writes. Each fleet grows on its own signal. The services talk through a contract: requests cross a network, responses arrive as serialized messages, and each side owns its timeouts. The mechanism is simple. Separate processes with separate resource profiles can be sized and scaled independently.

The abstraction hides the interface. A function call inside one process either returns or throws, and it never returns half a result. A call across a boundary can succeed on the far side while the reply is lost on the near side, so the caller sees a timeout for work that already finished. Take a feed endpoint that calls three services in sequence. Its latency becomes the sum of those calls, and during a deploy of the follow service its responses fill with partial data because the follow lookup times out and the page renders anyway. The bug sits in the caller's missing fallback, not in any one service. Five services also mean five dashboards, five alert rules, and five places a trace can break. The monolith hid all of that behind one stack trace.

Before splitting, write down for each candidate service the resource it saturates, the ratio of its peak load to its average, what breaks elsewhere when it dies, and which services call it. If two candidates saturate the same resource and share a blast radius, keep them together. If they saturate different resources, split and give each fleet its own instance type and scaling rule. If one can fail while the other keeps serving, split only when the caller has a fallback, such as rendering the page without ads. Do not split where every request must call the other side anyway, because the failure just moves onto the critical path as a timeout. Finally, count the hops on the hottest path and reject any split that adds more latency than the autonomy it buys.

orders of magnitude
deployables
1 vs N

A monolith ships one binary. Splitting makes each service its own pipeline and on-call surface.

network hops per call
+1 per boundary

An in-process call becomes a remote request with its own latency and failure mode.

scaling units
1 vs N fleets

Each split service scales only the fleet whose resource signal runs hot.

infrastructure cost
tens of percent

Prime Video moved a distributed monitoring pipeline into one process and reported about ninety percent lower infrastructure cost.

field note

Prime Video's audio and video monitoring service ran as a distributed pipeline, with separate components passing work to each other over the network. Each boundary was a remote request that could fail, and each component needed its own deployment and its own monitoring.

Running the pipeline as many separate components carried infrastructure cost that a single process could avoid. The team moved the work back into one process, which cut infrastructure cost by about ninety percent. Fewer moving parts also meant fewer places for a request to fail between stages.

For this case, the lesson is that the split was worth paying for only when the scaling and failure profiles of the parts really differed. When one profile serves all the traffic, one process is the cheaper and simpler answer, and the hops add cost without adding isolation.