Design an ERP Sync Scheduler With Per-Customer Rate Limits

Last updated: November 29, 2026

Quick Overview

Design the system that continuously syncs Ramp transactions, bills and reimbursements into thousands of customers' accounting systems, respecting each ERP's API rate limits, ordering constraints and month-end bursts.

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

0

0

0 solved


Design the system that continuously syncs Ramp transactions, bills and reimbursements into thousands of customers' accounting systems, respecting each ERP's API rate limits, ordering constraints and month-end bursts.

Accounting automation is core to Ramp: transactions should flow into NetSuite, QuickBooks or Xero coded correctly, and month-end close turns a trickle into a flood. The interviewer is checking job scheduling and queues, fairness across tenants, per-connection rate limiting, retries with backoff, and visibility for customers when a sync fails.

What the Interviewer Expects
  • Models sync work as idempotent jobs keyed by object and version
  • Provides per-tenant fairness so one huge customer cannot starve others
  • Enforces per-connection rate limits with a token bucket shared across workers
  • Respects ordering (vendor before bill) via dependencies or per-entity sequencing
  • Retries transient failures with backoff and parks permanent ones for user action
  • Exposes sync status and errors to customers
Key Topics to Cover
Job queues
Rate limiting
Multi-tenant fairness
Retries and backoff
Idempotency
Dependency ordering
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 an ERP that is down for six hours at month end?
  • How do you prevent a transaction from being exported twice if the ERP times out after accepting it?
  • How would you prioritize a manual 'sync now' over background work?
  • How would you add a new ERP connector without touching the scheduler?
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: when an object becomes ready to export (transaction coded and approved, bill approved), create or update it in the customer's ERP; support manual 'sync now'; show per-object status and act...

High-Level Design

Domain services emit object.ready_for_export events. The Sync Planner writes a sync_jobs row (connection_id, object_type, object_id, version, depends_on, status, next_run_at) and resolves pr...


Submit Your Answer
Markdown supported

Related Questions