Design a Recurring Crypto Buy Scheduler

Last updated: November 29, 2026

Quick Overview

Design the feature that lets users schedule daily, weekly or monthly purchases of an asset with a linked payment method, executing millions of buys reliably at their scheduled times.

Coinbase
System Design
Software Engineer
Coinbase
November 29, 2026
Software Engineer
System Design Round
System Design
Easy

0

0

0 solved


Design the feature that lets users schedule daily, weekly or monthly purchases of an asset with a linked payment method, executing millions of buys reliably at their scheduled times.

Recurring buys are a key retention feature for Coinbase's retail app. This easier design question checks a durable scheduling model, idempotent execution and sensible handling of payment failures and holidays, rather than exotic scale.

What the Interviewer Expects
  • Store schedules with next run time, not cron per user
  • Poll due schedules in batches with leasing to avoid double execution
  • Execute each run with an idempotency key of schedule and period
  • Handle insufficient funds, card declines and paused assets
  • Spread load so millions of runs do not hit at one instant
Key Topics to Cover
scheduling and job queues
idempotency
leasing
payments
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 do you handle time zones and daylight saving time for 'every Monday at 9am'?
  • What happens when an asset is delisted while schedules exist for it?
  • How would you notify users about failed buys without spamming them?
  • How would you let users skip one occurrence?
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

Users create, pause, edit and delete schedules (asset, amount, frequency, payment method). Each occurrence should execute within about 15 minutes of its scheduled time, exactly once. Show history and ...

High-Level Design

A schedules table has (id, user, asset, amount, frequency, payment method, next_run_at, status). A dispatcher runs every minute, selects due schedules with next_run_at <= now in batches using `SELEC...


Submit Your Answer
Markdown supported

Related Questions