Skip to content
System Design Explorer

Comparison

Stripe vs Adyen: Two Ways to Never Lose a Payment

By Ankur NayakReviewed

Stripe and Adyen both move enormous amounts of money for businesses around the world, and both have written about the engineering behind it. They agree on the fundamentals: every request must be safe to retry, and every movement of money must land in a double-entry ledger that sums to zero.

Where they differ is in what they optimise when something goes wrong. Stripe's public writing centres on a consistent API with layered protection and a central record it checks continuously. Adyen's centres on an edge that keeps accepting payments even when everything behind it is unavailable, and reconciles afterwards.

Stripe architecture diagramComponents: Customer's Browser (Stripe.js), Merchant Backend, API Edge, Payments API (PaymentIntents), Radar (DNN), Card Networks & Banks, DocDB (MongoDB-based), Ledger, Webhooks. Connections: Customer's Browser to Merchant Backend (checkout); Merchant Backend to API Edge (POST /v1/payment_intents); Customer's Browser to API Edge (confirm (client secret)); API Edge to Payments API; Payments API to Radar (score); Payments API to Card Networks & Banks (authorise); Payments API to DocDB (PaymentIntent + idempotent result); Payments API to Ledger (money-movement events); Payments API to Webhooks (payment_intent.succeeded); Webhooks to Merchant Backend.Customer's BrowserStripe.jsMerchant BackendServiceAPI EdgeAPI gatewayPayments APIPaymentIntentsRadarDNNCard Networks & BanksExternal APIDocDBMongoDB-basedLedgerSQL databaseWebhooksWorker
Adyen architecture diagramComponents: Shopper, Merchant Systems, Payments Acceptance Layer (Java, stateless), Idempotency Store (CockroachDB), Risk Checks, Card Networks & Banks, Local Payment Queue (PostgreSQL), Accounting System, Accounting Database (PostgreSQL clusters), Reporting (Custom streaming on PostgreSQL), Merchant Dashboard & Reports. Connections: Shopper to Payments Acceptance Layer (pay); Merchant Systems to Payments Acceptance Layer; Payments Acceptance Layer to Idempotency Store (seen this payment?); Payments Acceptance Layer to Risk Checks; Payments Acceptance Layer to Card Networks & Banks (authorise); Payments Acceptance Layer to Local Payment Queue (save payment); Local Payment Queue to Accounting System (forward when possible); Accounting System to Accounting Database (balanced records); Accounting Database to Reporting; Reporting to Merchant Dashboard & Reports (reports).ShopperClientMerchant SystemsServicePayments Acceptance LayerJava, statelessIdempotency StoreCockroachDBRisk ChecksML modelCard Networks & BanksExternal APILocal Payment QueuePostgreSQLAccounting SystemServiceAccounting DatabasePostgreSQL clustersReportingCustom streaming on PostgreSQLMerchant Dashboard & ReportsClient

Side by side

Stripe compared with Adyen
DimensionStripeAdyen
Entry pointAPI edge with four kinds of rate limiter and load shedder; limiters fail openStateless Payments Acceptance Layer that scales linearly and may not write to central databases
Safe retriesIdempotency-Key on every POST; the first status code and body are saved and replayedCockroachDB integrated with the acceptance layer so payment data for idempotency is available locally
Payment modelPaymentIntents: a server-side state machine that also covers 3D Secure and asynchronous methodsPayments accepted at the edge and forwarded to accounting asynchronously from a durable local queue
LedgerImmutable double-entry event log, ~5B events a day (2024), with clearing, timeliness and completeness checksDouble-entry accounting written only through mathematically verified templates; ~50 rows per payment
Primary databasesDocDB: in-house sharded service on MongoDB, 2,000+ shards behind Go proxiesPostgreSQL clusters (accounting sharded round-robin), plus CockroachDB at the edge
Changing the database without downtimeA Data Movement Platform migrates chunks between shards with a traffic switch under two secondsTraffic is paused and queued while PostgreSQL is upgraded from snapshots; payment acceptance is unaffected
When the core is unavailableShed non-critical traffic to keep capacity for requests that move moneyKeep accepting at the edge and queue payments for accounting until it is back
Scale (latest public)$1.9T total volume in 2025€803.8B processed volume in H1 2026

Verdict

Both designs make retries safe and money provable; they differ in where they absorb failure. Stripe protects a single consistent API and its central stores with limiters, shedding and continuous ledger checks. Adyen moves the guarantee to the edge: accept and record locally, then account asynchronously. If you're designing a payment system, decide first which failure you must survive while still taking money, and let that choose between the two shapes.

Frequently asked questions

Do Stripe and Adyen both use double-entry ledgers?

Yes. Stripe's Ledger is an immutable double-entry log of money movement that it checks for balances that fail to clear, and Adyen's accounting system writes double-entry records only through templates verified to sum to zero.

Which is more available during an outage, Stripe or Adyen?

Their public designs aim at different failures. Adyen's acceptance layer is built to keep taking payments while central accounting is down, queuing them locally. Stripe's limiters and load shedders keep capacity for the requests that move money when its fleet is overloaded. Neither company publishes figures that would settle a head-to-head comparison.

More comparisons