Backend-for-Frontend (BFF) in Production — GraphQL Federation, tRPC, and Edge BFFs Without the Anti-Patterns (2026)


Event sourcing for production microservices in 2026 — aggregate boundaries, append-only stores, snapshot strategy, projection rebuilds, and schema evolution.
The 2026 architecture for database-per-service plus cross-service joins via Debezium CDC, Kafka, and ksqlDB / Flink materialised views — with the operational runbook.
The Saga and Outbox patterns are most often essential when combined. This article is the production recipe for combining them: the five invariants you must preserve, the schemas, the state machine, six failure modes the combination survives, common implementation mistakes, observability, and an incremental migration path from a synchronous chained-call implementation. With four Mermaid diagrams, full SQL schemas, and a 30-question FAQ.
Two-phase commit is the wrong default for distributed microservices: it blocks on coordinator failure, requires XA on every participant, holds locks across third-party-API latency, and breaks under network partitions. This article is a decision matrix for the five patterns that have replaced it — Saga, Try-Confirm-Cancel, Outbox, Reservation-Then-Commit, and Idempotency-with-Retry — including a deep treatment of TCC (the alternative most often misimplemented), the four-layer composition stack that production systems actually use, anti-patterns that recreate the 2PC problems, a multi-vendor travel-booking case study, and the trade-off summary that takes a workload description and points at the right combination.
Advertise and partner
Reach engineering leaders and CTOs reading about AI, mobile and cloud architecture.
Sponsored mentions and co-authored articles or technical deep-dives. Relevant products only, always disclosed.