Madhurya Gandi

Senior Software Development Engineer
Microsoft · Previously AWS

Distributed systems.
Precisely considered.

I’m interested in the boundaries that make a system reliable: what a write promises, what a failure takes away, and what recovery must preserve.

Read my engineering perspective

Distributed databases Consensus & reliability Fault-tolerant infrastructure

Correctness starts
with the contract.

Three lenses for reasoning about distributed systems. These are technical perspectives—not accounts of employer projects.

An acknowledgement
is a promise.

Replication and durability answer different questions. Several copies in memory can survive a process failure without surviving a shared loss of power. A successful response needs a precise boundary: which state is persisted, where, and against which failures?

Before discussing throughput, specify what the caller is allowed to believe after success—and which recovery path preserves that promise.

What “committed” means

Count failure domains.
Not just replicas.

Five replicas do not imply five independent ways to survive. A common deployment, credential, network path, or power source can remove several at once. Quorum arithmetic describes a membership rule; placement and shared dependencies determine which failures it can tolerate.

The useful question is not only “How many are healthy?” It is “Which members and clients can still communicate after this particular failure?”

Questions for a real system

A timeout is not
an outcome.

A request may commit before its response is lost. Retrying without a stable operation identity can turn uncertainty into a duplicate effect. Safe retry behavior depends on the operation, a deduplication contract, and how long that contract holds.

Make outcome uncertainty explicit at the API boundary. Give callers a way to reconcile an operation rather than treating every missing response as proof of failure.

The client’s side of correctness

Make the boundary visible.

A small experiment to inspect one rule—not a substitute for a distributed protocol. Change the reachable set, attempt a write, and inspect the retained sequence.

A fixed group. A majority gate.

5 members · 3 required

Select a replica to toggle it offline or online. Try two failures, then three.

“Write” is the last sequence held by that replica. Offline replicas retain their value; restoring one immediately catches it up in this model.

Writes available5 reachable · 3 required

0committed writes

What this shows

With three or more reachable members, a write advances one centralized sequence. With fewer than three, it changes nothing. The denominator never shrinks.

What it assumes

A majority-availability model, not a Raft or Paxos simulator. Recovery assumes retained data and immediate catch-up—even without a reachable majority. No elections, latency, disk failures, or competing partitions.

A rejected attempt is never retried in the background. Restore a replica, then explicitly attempt a new write.

Read all model assumptions

Good systems invite
hard questions.

My focus is distributed systems, databases, fleet orchestration, and fault-tolerant infrastructure. For professional background or a conversation about engineering, find me on LinkedIn.

Connect on LinkedIn More about me