Design Prime Membership Recurring Billing With Retries and Dunning

Last updated: November 29, 2026

Quick Overview

Design the system that renews tens of millions of Prime memberships monthly or yearly, charges the stored payment method, retries failures intelligently, and suspends benefits only when appropriate.

Amazon
System Design
Software Engineer
Amazon
November 29, 2026
Software Engineer
System Design Round
System Design
Medium

0

0

0 solved


Design the system that renews tens of millions of Prime memberships monthly or yearly, charges the stored payment method, retries failures intelligently, and suspends benefits only when appropriate.

Subscription billing appears in Amazon loops for Prime, Kindle Unlimited and Music teams. The interviewer looks at scheduling of renewals, idempotent charges, retry strategy for declines, and the customer-facing state machine for grace periods.

What the Interviewer Expects
  • Model the subscription lifecycle as an explicit state machine
  • Schedule renewals without a thundering herd on the first of the month
  • Charge idempotently and classify declines (soft versus hard)
  • Design a retry and backup-payment-method schedule
  • Notify customers and keep entitlements consistent
Key Topics to Cover
Subscriptions
State Machines
Scheduling
Idempotency
Payment Retries
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 handle a customer who cancels while a retry is in flight?
  • How do you test pricing changes like a fee increase for existing members?
  • What metrics would tell you the retry schedule is too aggressive?
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: auto-renew at period end; support monthly and annual plans, trials, student discounts; on decline retry and try backup cards; grace period with benefits, then suspend; reactivate on paymen...

High-Level Design

A Subscriptions table stores member_id, plan, current_period_end, state (TRIAL, ACTIVE, PAST_DUE, SUSPENDED, CANCELED) and version. A Renewal Scheduler scans a secondary index on next_action_at ...


Submit Your Answer
Markdown supported