There is a specific kind of dread that comes at 11:47 PM when a transaction is stuck in an ambiguous state. Not failed. Not successful. Just... hanging. Money has left one account. It has not arrived in another. And somewhere between those two facts is a gap you now own. I have sat with that feeling more times than I would like to count, and it changed how I think about building software in ways that no engineering textbook ever did.
The Textbook Version of Failure
Before operating a live money system, I thought about failure the way most engineers do. A service is either up or down. A request either succeeds or times out. You write retry logic, you add monitoring, you set up alerts. The mental model is essentially binary: things work, or they break, and when they break you fix them.
That model is fine for a content platform. It is dangerously incomplete for anything touching real money.
What actually happens in production financial systems is a third state that the binary model has no room for: partial completion. The payment gateway confirms the debit. The downstream bank's API returns a 200. But the beneficiary's account never gets credited because a queue somewhere backed up, or a reconciliation job silently skipped a record, or a bank's CBS went into maintenance at exactly the wrong millisecond. Nobody errored. Everybody succeeded. And yet money is missing.
India's Infrastructure Makes This Weirder
Building in India adds a layer of complexity that I genuinely did not appreciate until I was inside it. The banking infrastructure here is a fascinating patchwork. You have a relatively modern real-time payments layer sitting on top of core banking systems of wildly varying vintage. Some of those CBS platforms were built in the 1990s. They have maintenance windows. They have undocumented behaviours. They return success codes that sometimes mean "I will try later" rather than "I have done it."
UPI is a good example. It is genuinely impressive technology, and the transaction volumes it handles are staggering. But the failure taxonomy is rich. You get deemed declines, pending states that resolve hours later, and timeout responses where the transaction may or may not have gone through. The spec exists. The actual behaviour in the wild is a different document entirely, one written in production incidents and support tickets.
Add to this the sheer diversity of devices, connectivity conditions, and user behaviour across India. A payment flow designed for a user in Bangalore on a stable WiFi connection will encounter very different conditions when someone in a tier-3 town initiates a transaction on 2G that drops halfway through. The failure modes multiply not just in type but in frequency.
How My Mental Model Actually Changed
The shift I went through was from thinking about failure as an exception to treating it as the default state that success occasionally interrupts.
This sounds dramatic, but it has very practical consequences. When you design assuming success is the norm, your error handling is an afterthought. You build the happy path first, then bolt on retries and error messages. When you design assuming failure is the norm, idempotency becomes a first-class concern from day one. Every operation needs an answer to the question: what happens if this runs twice? What happens if the response never comes back but the action completed?
I also started thinking much more carefully about the difference between a system that fails loudly and one that fails silently. Loud failures are actually fine. A hard error that surfaces immediately is a gift. You know something is wrong. You can act. Silent failures, where the system continues operating while producing incorrect results, are the ones that keep you up at night. In money systems, silent failures often mean reconciliation breaks that you discover days later, sometimes with regulatory implications.
The third shift was around human fallback. Before operating live systems, I thought of support operations as a cost centre you try to minimise through automation. Now I think of the operations team as a load-bearing part of the system architecture. When edge cases happen, and they always happen, a well-trained operations team is the difference between a recoverable incident and a customer disaster. Designing for operability, meaning building tools that let a human understand system state and intervene safely, became as important to me as the core product logic.
The Reconciliation Religion
If there is one practice that separates teams who have operated money systems from those who have not, it is their attitude toward reconciliation. Reconciliation is the process of comparing what your system believes happened with what the bank or payment network says actually happened. It is tedious. It is unglamorous. Early-stage teams almost always underinvest in it.
I now think of reconciliation as the immune system of a financial product. You can go weeks without it mattering. Then one day it catches something that would have compounded into a serious problem, and you are very glad you built it properly. The teams I respect most in Indian fintech run reconciliation continuously, not as a nightly batch job. They treat mismatches as high-priority incidents, not as routine cleanup. That posture comes from having been burned.
There is also something worth saying about the cultural dimension here. Building a reconciliation-first culture in an engineering team takes deliberate effort. Engineers want to build features. Reconciliation infrastructure feels like plumbing. The founder or tech lead has to make the case, repeatedly, that this plumbing is what the whole building stands on.
What I Would Tell Someone Starting Out
A few things I wish I had internalised earlier, offered in the spirit of one practitioner to another rather than as any kind of prescription.
- Read the failure taxonomy documentation for every payment rail you integrate with. Not the success path. The failure codes, the timeout behaviours, the edge cases. That is where the real specification lives.
- Build idempotency keys into every mutation from the start. Retrofitting them later is painful and error-prone.
- Design your operations dashboard before you design your user dashboard. If your team cannot understand system state at a glance, you will be slow when incidents happen, and incidents will happen.
- Run reconciliation from day one, even when volumes are tiny. The habit matters more than the volume.
- Treat every ambiguous transaction state as a first-class entity in your data model. "Pending" is not a temporary condition to be ignored. It is a state that requires resolution logic.
Operating live money systems in India is a genuinely humbling experience. The infrastructure is more complex than it appears from the outside, the failure modes are more varied than any spec document captures, and the consequences of getting it wrong are real in a way that most software simply is not. But the thinking it forces on you, about resilience, about state management, about the relationship between systems and humans, carries over into everything you build afterward.