Blog
Deep dives, patterns, and war stories for building resilient microservices.
Backend for Frontend: Should One Slow Service Hold Back the Entire UI?
Five services behind one BFF endpoint. Four answer in 50 ms, one in 500. Does the whole screen wait? One screen, one BFF — not necessarily one HTTP request.
Evolving an API Without Breaking Your Consumers
A field was renamed on a Friday at 16:40. By 17:10 the mobile app showed blank names. What counts as a breaking change, how to make one safely, and how to know who reads what.
Backend for Frontend: The Missing Link
A well-designed domain API is designed for the domain, not for a screen. Here is the piece that goes between them — who owns it, what belongs in it, and what will kill it.
How to Find Your Microservice Boundaries
Splitting by nouns gives you a User Service, an Order Service, and a distributed monolith. Here is how to derive boundaries from business capabilities and bounded contexts instead.
Database per Service: Who Owns the Data?
You drew clean service boundaries, and then somebody ran a JOIN across them. What a shared database really shares, and three honest ways to read data you do not own.
The Dual-Write Problem and the Transactional Outbox
Save the claim, then publish the event. Two lines, and a process that can die between them. Why no ordering of those two lines is safe, and the small table that fixes it.
Timeouts, Retries and Circuit Breakers: How Retries Take a System Down
A database gets slow. Three layers each retry three times. One tap on a phone is now 27 queries against the thing that was struggling. How well-meant retries turn slow into down, and what to put in their place.
Idempotency: Surviving At-Least-Once Delivery
The answer got lost, the sender retried, and the customer was paid twice. Nobody wrote a bug. Three ways to make the second arrival of a message do nothing.
Sagas: Orchestration or Choreography?
The payment failed at step three and there is no ROLLBACK to call. What a saga is, the two ways to run one, and how to choose without starting a religious war.
Sync or Async: When Should a Call Become an Event?
A claim is registered and four other services need to hear about it. Calling them one by one works until the mail server has a bad day. One question tells you which calls should have been events.
The Distributed Monolith: Symptoms and the Way Out
Fourteen services, one release train, and a spreadsheet that says in which order to deploy them. Six symptoms you can measure, and the order in which to fix them.