Menu

Monolith vs microservices: fault isolation and its cost
📰

Monolith vs microservices: fault isolation and its cost

DEV Community: microservices·System Design Simple·4 days ago
#xMgH3gEf
#devtomicroservices#devto#dev#checkout#every
Long article (499 words) — no AI summary yet.
Reading 0:00
15s threshold

Splitting an app into services contains damage. A slow feature, a crash loop and a redeploy each hurt checkout badly in one shared app and not at all once checkout ran as its own service. The price on a normal day was about 2.6 ms of extra checkout latency.

One slow feature stopped checkout

Our lab runs a toy shop with checkout, search and recommendations on a virtual clock: 200 requests per second, 16 workers in both designs. When every recommendations call slowed to 2 seconds, it needed 160 workers by Little's law and the shared pool had 16. In the one app, 97.5% of checkouts failed and orders fell from 39.7 to 1.0 per second. In the split version, checkout errors were 0.0% and orders stayed at 39.7 per second.

A monolith can defend against this without splitting. Give each feature its own worker pool, a bulkhead, plus a short timeout, and one slow feature can no longer hold every worker.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.