Handle a Short Payment Traffic Surge through a Third-Party Processor

Read the full interview experience this question came from →

Quick Overview

Design a burst-tolerant payment flow above a third-party processor. Connect idempotency, queues, retry policy, reconciliation, and storage choices to duplicate-charge prevention and realistic completion delays.

Handle a Short Payment Traffic Surge through a Third-Party Processor

Company: DoorDash

Role: Software Engineer

Category: System Design

Difficulty: medium

Interview Round: Onsite

Design a payment flow on top of a third-party processor for a short event with high concurrent traffic. Cover idempotency, prevention of duplicate charges, retries with exponential backoff, dead-letter handling, and queues that absorb the surge. Define APIs and data models, estimate QPS, and compare SQL with NoSQL storage. ### Clarifying Questions No attendee count, event duration, processor quota, or completion deadline is supplied. State numerical examples as hypothetical capacity calculations. Clarify the processor's idempotency and status-query guarantees, accepted payment methods, and what users see while processing is pending. ### What a Strong Answer Covers Durable acceptance, one logical payment identity across retries, transactional state changes, queue backpressure, ambiguous processor outcomes, reconciliation, and capacity reasoning tied to the downstream bottleneck. ### Follow-up Questions - What happens if the processor charges successfully but the worker times out before recording success? - Why is moving a payment to a dead-letter queue not equivalent to proving it was never charged?

Overview: Design a burst-tolerant payment flow above a third-party processor. Connect idempotency, queues, retry policy, reconciliation, and storage choices to duplicate-charge prevention and realistic completion delays.

Read the full DoorDash Software Engineer interview experience this question came from

DoorDash logo
DoorDash
Oct 23, 2026
mediumSoftware EngineerOnsiteSystem Design
0
0

Design a payment flow on top of a third-party processor for a short event with high concurrent traffic. Cover idempotency, prevention of duplicate charges, retries with exponential backoff, dead-letter handling, and queues that absorb the surge. Define APIs and data models, estimate QPS, and compare SQL with NoSQL storage.

Clarifying Questions Guidance

No attendee count, event duration, processor quota, or completion deadline is supplied. State numerical examples as hypothetical capacity calculations. Clarify the processor's idempotency and status-query guarantees, accepted payment methods, and what users see while processing is pending.

What a Strong Answer Covers Guidance

Durable acceptance, one logical payment identity across retries, transactional state changes, queue backpressure, ambiguous processor outcomes, reconciliation, and capacity reasoning tied to the downstream bottleneck.

Follow-up Questions Guidance

  • What happens if the processor charges successfully but the worker times out before recording success?
  • Why is moving a payment to a dead-letter queue not equivalent to proving it was never charged?