Consulting practices

Distributed systems architecture

Designing systems that are split across processes, machines and regions, so that they stay correct, fast and recoverable when parts of them fail.

Every distributed system fails partially: a slow dependency, a lost message, a network that disagrees with itself. The architecture decides whether that becomes a short degradation or a long outage, and whether the data is still right afterwards.

Where we help#

  • A monolith is being broken up and the service boundaries, data ownership and integration style are still open questions.
  • Services call each other in long synchronous chains, and one slow dependency takes the rest down with it.
  • Events and messages are in use, but ordering, duplicates, replays and schema changes are handled case by case.
  • Consistency across services is held together by hope: no sagas, no outbox, no clear story for partial failure.
  • Latency and throughput targets exist on paper but nobody can say which part of the system will break first.

What the work looks like#

  • Domain and boundary analysis: which service owns which data, and which calls should be events instead.
  • Communication design: synchronous APIs, asynchronous messaging, event-carried state and event sourcing, chosen per interaction rather than per fashion.
  • Resilience design: timeouts and deadline propagation, retries with budgets, circuit breakers, bulkheads, rate limiting, load shedding and fallbacks.
  • Data design: replication, partitioning, caching, sagas and the transactional outbox, with an honest account of the consistency each choice gives you.
  • Failure analysis: walking the design through dependency loss, overload, partitions and regional failure before production does it for you.

What you are left with#

A system whose failure behaviour is understood and designed for: architecture decision records, diagrams that match what is running, a prioritised list of risks with the change that retires each one, and where it helps, a working reference implementation your team can build from.