Design a Highly Available Card Authorisation Gateway

Last updated: November 29, 2026

Quick Overview

Design the service that accepts a merchant's payment request, runs risk checks, routes it to the right acquirer or card network connection, and returns an authorisation result within a strict latency budget, without ever double-charging.

Adyen
System Design
Software Engineer
Adyen
November 29, 2026
Software Engineer
System Design Round
System Design
Hard

0

0

0 solved


Design the service that accepts a merchant's payment request, runs risk checks, routes it to the right acquirer or card network connection, and returns an authorisation result within a strict latency budget, without ever double-charging.

Authorisation is the hot path of Adyen's single platform, and the company runs it largely in its own data centres with PostgreSQL behind Java services. Interviewers probe availability targets, idempotency, how a timeout to a scheme is reconciled, and how routing decisions are made per transaction.

What the Interviewer Expects
  • Set clear latency and availability targets and a request budget per hop
  • Make the API idempotent and explain where the key is enforced
  • Separate a stateless edge from the transaction store and the scheme connectors
  • Handle ambiguous timeouts with reversals or status inquiries
  • Discuss multi data centre deployment and what happens when one is lost
  • Mention PCI scope and tokenisation of card data
Key Topics to Cover
Idempotency
Timeout reconciliation
Multi data centre availability
Routing
PCI tokenisation
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • How would you route between two acquiring connections to maximise approval rate?
  • A scheme connection is slow but not down. How do you detect and shed it?
  • How do you deploy a new version of the gateway several times a day without dropping in-flight authorisations?
  • How would you keep card data out of most services?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Functional: accept an authorise request (amount, currency, payment method, merchant reference, idempotency key), run risk scoring, send to an issuer through a card scheme connection, return Authorised...

High-Level Design

Merchant traffic hits load balancers in at least two data centres. A stateless API tier authenticates the merchant and validates the payload. The card number is swapped for a token by a small PCI-scop...


Submit Your Answer
Markdown supported

Related Questions