Skip to main content

What 15 Years of Building Payment Systems Taught Me About Microservices That Nobody Talks About

Anath Bandhu Chatterjee

A payment gateway fails at 2 AM. Thousands of transactions hang in limbo. Post-mortems reveal failures cascading across dozens of services, each technically sound in isolation. The diagnosis takes hours. The fix requires coordinated deployments across teams.

Most writing on microservices focuses on benefits: clean diagrams, elegant service boundaries, teams shipping independently. Production reality at financial institutions looks different. Messier. More expensive. Often slower than the monolithic systems teams replaced.

The Hidden Complexity Tax

At JPMorgan, a single real-time wholesale payment transaction touched over a dozen services owned by different teams across Payments, Treasury Services, Risk, and Compliance. The API Gateway handled ingress. Customer Onboarding verified KYC data. Account Validation checked for frozen accounts. Funds Availability queried real-time ledgers. Funds Control applied exposure limits and sanctions screening. Compliance Screening ran AML pattern matching. The Messaging Orchestrator formatted ISO 20022-compliant messages for the RTP network. Settlement Confirmation awaited central bank acknowledgment. Ledger Posting recorded entries across nostro and vostro accounts. Audit Trail logged everything for SEC 17a-4 compliance.

What appeared linear in architecture diagrams was actually a web of asynchronous callbacks, saga orchestration via Kafka, and conditional logic based on customer risk scores.

The real cost? Incident resolution.

A 2 AM outage occurred after a Funds Control Service deployment introduced problematic risk scoring thresholds. Transactions queued for 45 minutes. Triage required five engineering teams across three geographies in a war room, digging through distributed traces and hunting through  logs. Eighteen engineer-hours on triage alone. Emergency rollback introduced its own downstream consistency risks. Financial impact: $2.5 billion in delayed settlements, approximately $150,000 in opportunity costs from potential client churn and manual interventions.

In a monolith, this would have been a straightforward debugging session. The invisible coordination cost turned a 15-minute fix into a multi-hour ordeal.

When Monoliths Outperform

In monolithic architectures with centralized code bases, one API can perform the same function that numerous APIs perform with microservices. Payment authorization flows in monolithic systems can complete in under 60 milliseconds. The "modernized" microservices equivalent? Often 300+ milliseconds. The difference: network hops adding latency and failure modes.

Amazon Prime Video moved their monitoring system back to a monolith after finding distributed components too expensive at scale. For workloads requiring tight coordination, monolithic architectures simply perform better.

Database Patterns That Break

Conference talks celebrate the Saga pattern: distributed transactions managed through choreographed local transactions with compensating rollbacks. In production, Saga participants commit changes to their databases, so data can't be rolled back. Compensating transactions might not succeed, leaving systems in inconsistent states.

The pattern treats states as binary (success/fail), but reality introduces "pending" limbo from external latencies. Compensators handling only internal state fail to coordinate with external providers. Without circuit breakers on compensators, chains proceed without retries for partial failures. When regulations demand immediate accuracy, eventual consistency becomes eventual liability.

The Hybrid Pattern That Actually Works

At JPMorgan in 2024, building the real-time merchant-acquiring platform for Chase Pay contactless payments, an eight-step transaction flow required atomicity: identity verification, BNPL credit check, inventory validation, inventory reservation, payment authorization, ledger recording, fulfillment triggering, and invoice generation.

A pure choreographed Saga across five services failed in the first week. What shipped instead: the "Fat Service + Thin Satellites" pattern.

Core atomic operations collapsed into a single bounded context called Payment Execution Service, deliberately "fat." It owned its own CockroachDB database with serializable isolation. Inventory reservation, payment authorization, ledger posting, fulfillment trigger, and invoice generation happened inside a single ACID transaction. Only truly independent, eventually-consistent concerns (customer auth, external BNPL credit checks) remained as separate services.

The orchestration became a small, two-phase mini-saga with only three participants. If the first two checks passed, Payment Execution Service ran the entire block inside one database transaction, returning either COMMITTED or REJECTED. Never a partial state.

Production results: end-to-end p95 latency dropped from 480ms to 165ms. Partial failures requiring manual intervention fell from 1 in 800 to 1 in 42,000. Mean time to resolution went from hours to minutes because 95% of the logic lived in one service with one database.

Observability as the Foundation

At JPMorgan, every payment flow carried a 128-bit Payment Correlation ID (PCID) generated at the edge and propagated everywhere: HTTP headers, Kafka message keys, gRPC metadata, database audit columns, even embedded in SWIFT and FedNow message identifiers. External partners were contractually required to echo it back.

The trace ID was made identical to the PCID. One click in the tracing tool revealed the entire 20-service waterfall for that exact payment. A "Payment 360" dashboard let engineers paste a PCID and instantly see latency breakdown per service, error rates, and Kafka lag on that exact key.

Result: triage time dropped 40%. The best engineers could debug a failed $500 million payment in under 15 minutes because the PCID gave them a perfect map of reality, no matter how distributed the system had become. The pattern: one ID to rule them all.

What Actually Works

Microservices aren't a default choice. They're a tradeoff made when specific constraints justify complexity. Start with a well-structured monolith. Extract services only when hitting real constraints. Keep the parts that must be atomic together in one service with one database and one team. Only peel off parts that are truly autonomous or have vastly different scaling or compliance needs.

Most organizations would benefit from 80% fewer services than they currently run. In payment systems, correctness and observability beat theoretical purity every time.

About the Author: Anath Bandhu Chatterjee builds scalable reliable fault tolerant distributed payment systems and cloud-native software architectures for some of the world's largest financial and technology companies. He has spent 15 years designing scalable distributed transactional systems across banking, payments, and telecommunications, with deep technical expertise in microservices, API development, and event-driven architectures. An AWS Certified Cloud Practitioner, he specializes in solutions deployed on AWS and Kubernetes environments.

Anath Bandhu Chatterjee is a Staff Software Engineer for one of the world's largest digital payment platforms

Hot Topics

The Latest

Like most digital transformation shifts, organizations often prioritize productivity and leave security and observability to keep pace. This usually translates to both the mass implementation of new technology and fragmented monitoring and observability (M&O) tooling. In the era of AI and varied cloud architecture, a disparate observability function can be dangerous. IT teams will lack a complete picture of their IT environment, making it harder to diagnose issues while slowing down mean time to resolve (MTTR). In fact, according to recent data from the SolarWinds State of Monitoring & Observability Report, 77% of IT personnel said the lack of visibility across their on-prem and cloud architecture was an issue ...

In MEAN TIME TO INSIGHT Episode 23, Shamus McGillicuddy, VP of Research, Network Infrastructure and Operations, at EMA discusses the NetOps labor shortage ... 

Technology management is evolving, and in turn, so is the scope of FinOps. The FinOps Foundation recently updated their mission statement from "advancing the people who manage the value of cloud" to "advancing the people who manage the value of technology." This seemingly small change solidifies a larger evolution: FinOps practitioners have organically expanded to be focused on more than just cloud cost optimization. Today, FinOps teams are largely — and quickly — expanding their job descriptions, evolving into a critical function for managing the full value of technology ...

Enterprises are under pressure to scale AI quickly. Yet despite considerable investment, adoption continues to stall. One of the most overlooked reasons is vendor sprawl ... In reality, no organization deliberately sets out to create sprawling vendor ecosystems. More often, complexity accumulates over time through well-intentioned initiatives, such as enterprise-wide digital transformation efforts, point solutions, or decentralized sourcing strategies ...

Nearly every conversation about AI eventually circles back to compute. GPUs dominate the headlines while cloud platforms compete for workloads and model benchmarks drive investment decisions. But underneath that noise, a quieter infrastructure challenge is taking shape. The real bottleneck in enterprise AI is not processing power, it is the ability to store, manage and retrieve the relentless volumes of data that AI systems generate, consume and multiply ...

The 2026 Observability Survey from Grafana Labs paints a vivid picture of an industry maturing fast, where AI is welcomed with careful conditions, SaaS economics are reshaping spending decisions, complexity remains a defining challenge, and open standards continue to underpin it all ...

The observability industry has an evolving relationship with AI. We're not skeptics, but it's clear that trust in AI must be earned ... In Grafana Labs' annual Observability Survey, 92% said they see real value in AI surfacing anomalies before they cause downtime. Another 91% endorsed AI for forecasting and root cause analysis. So while the demand is there, customers need it to be trustworthy, as the survey also found that the practitioners most enthusiastic about AI are also the most insistent on explainability ...

In the modern enterprise, the conversation around AI has moved past skepticism toward a stage of active adoption. According to our 2026 State of IT Trends Report: The Human Side of Autonomous AI, nearly 90% of IT professionals view AI as a net positive, and this optimism is well-founded. We are seeing agentic AI move beyond simple automation to actively streamlining complex data insights and eliminating the manual toil that has long hindered innovation. However, as we integrate these autonomous agents into our ecosystems, the fundamental DNA of the IT role is evolving ...

AI workloads require an enormous amount of computing power ... What's also becoming abundantly clear is just how quickly AI's computing needs are leading to enterprise systems failure. According to Cockroach Labs' State of AI Infrastructure 2026 report, enterprise systems are much closer to failure than their organizations realize. The report ... suggests AI scale could cause widespread failures in as little as one year — making it a clear risk for business performance and reliability.

The quietest week your engineering team has ever had might also be its best. No alarms going off. No escalations. No frantic Teams or Slack threads at 2 a.m. Everything humming along exactly as it should. And somewhere in a leadership meeting, someone looks at the metrics dashboard, sees a flat line of incidents and says: "Seems like things are pretty calm over there. Do we really need all those people?" ... I've spent many years in engineering, and this pattern keeps repeating ...

What 15 Years of Building Payment Systems Taught Me About Microservices That Nobody Talks About

Anath Bandhu Chatterjee

A payment gateway fails at 2 AM. Thousands of transactions hang in limbo. Post-mortems reveal failures cascading across dozens of services, each technically sound in isolation. The diagnosis takes hours. The fix requires coordinated deployments across teams.

Most writing on microservices focuses on benefits: clean diagrams, elegant service boundaries, teams shipping independently. Production reality at financial institutions looks different. Messier. More expensive. Often slower than the monolithic systems teams replaced.

The Hidden Complexity Tax

At JPMorgan, a single real-time wholesale payment transaction touched over a dozen services owned by different teams across Payments, Treasury Services, Risk, and Compliance. The API Gateway handled ingress. Customer Onboarding verified KYC data. Account Validation checked for frozen accounts. Funds Availability queried real-time ledgers. Funds Control applied exposure limits and sanctions screening. Compliance Screening ran AML pattern matching. The Messaging Orchestrator formatted ISO 20022-compliant messages for the RTP network. Settlement Confirmation awaited central bank acknowledgment. Ledger Posting recorded entries across nostro and vostro accounts. Audit Trail logged everything for SEC 17a-4 compliance.

What appeared linear in architecture diagrams was actually a web of asynchronous callbacks, saga orchestration via Kafka, and conditional logic based on customer risk scores.

The real cost? Incident resolution.

A 2 AM outage occurred after a Funds Control Service deployment introduced problematic risk scoring thresholds. Transactions queued for 45 minutes. Triage required five engineering teams across three geographies in a war room, digging through distributed traces and hunting through  logs. Eighteen engineer-hours on triage alone. Emergency rollback introduced its own downstream consistency risks. Financial impact: $2.5 billion in delayed settlements, approximately $150,000 in opportunity costs from potential client churn and manual interventions.

In a monolith, this would have been a straightforward debugging session. The invisible coordination cost turned a 15-minute fix into a multi-hour ordeal.

When Monoliths Outperform

In monolithic architectures with centralized code bases, one API can perform the same function that numerous APIs perform with microservices. Payment authorization flows in monolithic systems can complete in under 60 milliseconds. The "modernized" microservices equivalent? Often 300+ milliseconds. The difference: network hops adding latency and failure modes.

Amazon Prime Video moved their monitoring system back to a monolith after finding distributed components too expensive at scale. For workloads requiring tight coordination, monolithic architectures simply perform better.

Database Patterns That Break

Conference talks celebrate the Saga pattern: distributed transactions managed through choreographed local transactions with compensating rollbacks. In production, Saga participants commit changes to their databases, so data can't be rolled back. Compensating transactions might not succeed, leaving systems in inconsistent states.

The pattern treats states as binary (success/fail), but reality introduces "pending" limbo from external latencies. Compensators handling only internal state fail to coordinate with external providers. Without circuit breakers on compensators, chains proceed without retries for partial failures. When regulations demand immediate accuracy, eventual consistency becomes eventual liability.

The Hybrid Pattern That Actually Works

At JPMorgan in 2024, building the real-time merchant-acquiring platform for Chase Pay contactless payments, an eight-step transaction flow required atomicity: identity verification, BNPL credit check, inventory validation, inventory reservation, payment authorization, ledger recording, fulfillment triggering, and invoice generation.

A pure choreographed Saga across five services failed in the first week. What shipped instead: the "Fat Service + Thin Satellites" pattern.

Core atomic operations collapsed into a single bounded context called Payment Execution Service, deliberately "fat." It owned its own CockroachDB database with serializable isolation. Inventory reservation, payment authorization, ledger posting, fulfillment trigger, and invoice generation happened inside a single ACID transaction. Only truly independent, eventually-consistent concerns (customer auth, external BNPL credit checks) remained as separate services.

The orchestration became a small, two-phase mini-saga with only three participants. If the first two checks passed, Payment Execution Service ran the entire block inside one database transaction, returning either COMMITTED or REJECTED. Never a partial state.

Production results: end-to-end p95 latency dropped from 480ms to 165ms. Partial failures requiring manual intervention fell from 1 in 800 to 1 in 42,000. Mean time to resolution went from hours to minutes because 95% of the logic lived in one service with one database.

Observability as the Foundation

At JPMorgan, every payment flow carried a 128-bit Payment Correlation ID (PCID) generated at the edge and propagated everywhere: HTTP headers, Kafka message keys, gRPC metadata, database audit columns, even embedded in SWIFT and FedNow message identifiers. External partners were contractually required to echo it back.

The trace ID was made identical to the PCID. One click in the tracing tool revealed the entire 20-service waterfall for that exact payment. A "Payment 360" dashboard let engineers paste a PCID and instantly see latency breakdown per service, error rates, and Kafka lag on that exact key.

Result: triage time dropped 40%. The best engineers could debug a failed $500 million payment in under 15 minutes because the PCID gave them a perfect map of reality, no matter how distributed the system had become. The pattern: one ID to rule them all.

What Actually Works

Microservices aren't a default choice. They're a tradeoff made when specific constraints justify complexity. Start with a well-structured monolith. Extract services only when hitting real constraints. Keep the parts that must be atomic together in one service with one database and one team. Only peel off parts that are truly autonomous or have vastly different scaling or compliance needs.

Most organizations would benefit from 80% fewer services than they currently run. In payment systems, correctness and observability beat theoretical purity every time.

About the Author: Anath Bandhu Chatterjee builds scalable reliable fault tolerant distributed payment systems and cloud-native software architectures for some of the world's largest financial and technology companies. He has spent 15 years designing scalable distributed transactional systems across banking, payments, and telecommunications, with deep technical expertise in microservices, API development, and event-driven architectures. An AWS Certified Cloud Practitioner, he specializes in solutions deployed on AWS and Kubernetes environments.

Anath Bandhu Chatterjee is a Staff Software Engineer for one of the world's largest digital payment platforms

Hot Topics

The Latest

Like most digital transformation shifts, organizations often prioritize productivity and leave security and observability to keep pace. This usually translates to both the mass implementation of new technology and fragmented monitoring and observability (M&O) tooling. In the era of AI and varied cloud architecture, a disparate observability function can be dangerous. IT teams will lack a complete picture of their IT environment, making it harder to diagnose issues while slowing down mean time to resolve (MTTR). In fact, according to recent data from the SolarWinds State of Monitoring & Observability Report, 77% of IT personnel said the lack of visibility across their on-prem and cloud architecture was an issue ...

In MEAN TIME TO INSIGHT Episode 23, Shamus McGillicuddy, VP of Research, Network Infrastructure and Operations, at EMA discusses the NetOps labor shortage ... 

Technology management is evolving, and in turn, so is the scope of FinOps. The FinOps Foundation recently updated their mission statement from "advancing the people who manage the value of cloud" to "advancing the people who manage the value of technology." This seemingly small change solidifies a larger evolution: FinOps practitioners have organically expanded to be focused on more than just cloud cost optimization. Today, FinOps teams are largely — and quickly — expanding their job descriptions, evolving into a critical function for managing the full value of technology ...

Enterprises are under pressure to scale AI quickly. Yet despite considerable investment, adoption continues to stall. One of the most overlooked reasons is vendor sprawl ... In reality, no organization deliberately sets out to create sprawling vendor ecosystems. More often, complexity accumulates over time through well-intentioned initiatives, such as enterprise-wide digital transformation efforts, point solutions, or decentralized sourcing strategies ...

Nearly every conversation about AI eventually circles back to compute. GPUs dominate the headlines while cloud platforms compete for workloads and model benchmarks drive investment decisions. But underneath that noise, a quieter infrastructure challenge is taking shape. The real bottleneck in enterprise AI is not processing power, it is the ability to store, manage and retrieve the relentless volumes of data that AI systems generate, consume and multiply ...

The 2026 Observability Survey from Grafana Labs paints a vivid picture of an industry maturing fast, where AI is welcomed with careful conditions, SaaS economics are reshaping spending decisions, complexity remains a defining challenge, and open standards continue to underpin it all ...

The observability industry has an evolving relationship with AI. We're not skeptics, but it's clear that trust in AI must be earned ... In Grafana Labs' annual Observability Survey, 92% said they see real value in AI surfacing anomalies before they cause downtime. Another 91% endorsed AI for forecasting and root cause analysis. So while the demand is there, customers need it to be trustworthy, as the survey also found that the practitioners most enthusiastic about AI are also the most insistent on explainability ...

In the modern enterprise, the conversation around AI has moved past skepticism toward a stage of active adoption. According to our 2026 State of IT Trends Report: The Human Side of Autonomous AI, nearly 90% of IT professionals view AI as a net positive, and this optimism is well-founded. We are seeing agentic AI move beyond simple automation to actively streamlining complex data insights and eliminating the manual toil that has long hindered innovation. However, as we integrate these autonomous agents into our ecosystems, the fundamental DNA of the IT role is evolving ...

AI workloads require an enormous amount of computing power ... What's also becoming abundantly clear is just how quickly AI's computing needs are leading to enterprise systems failure. According to Cockroach Labs' State of AI Infrastructure 2026 report, enterprise systems are much closer to failure than their organizations realize. The report ... suggests AI scale could cause widespread failures in as little as one year — making it a clear risk for business performance and reliability.

The quietest week your engineering team has ever had might also be its best. No alarms going off. No escalations. No frantic Teams or Slack threads at 2 a.m. Everything humming along exactly as it should. And somewhere in a leadership meeting, someone looks at the metrics dashboard, sees a flat line of incidents and says: "Seems like things are pretty calm over there. Do we really need all those people?" ... I've spent many years in engineering, and this pattern keeps repeating ...