The interview problem
A customer needs a historical backfill while daily sync must remain responsive under one provider quota.
Original practice, not a reported company interview. Scenarios and numbers are illustrative. Interview date: not applicable. Sources retrieved October 1, 2026.
1. Scope and worked approach
Assume a provider documents a shared requests-per-minute limit and retry headers. Measure pages, records per page and normal sync demand. Reserve capacity for current updates and use a checkpointed low-priority backfill with bounded concurrency. Persist page cursors only after durable processing and honor provider backoff. Agree an estimated completion range and report progress using completed records, not merely scheduled requests.
2. Trace the design or derivation
Estimate page work → reserve live capacity → checkpoint backfill → honor backoff → reconcile completion
The customer plan should distinguish an optimistic lower bound from a delivery commitment. Add measured retry rates, processing latency and provider quiet periods only after observation. If the source changes during the backfill, use a reconciliation pass or snapshot contract so finishing every page is not mistaken for a consistent historical snapshot.
3. Calculate the example
For 1 million records at 100 per page, at least 10,000 page requests are needed. A 120 requests/minute quota with 20 reserved for live sync leaves 100/minute, giving a best-case 100 minutes before retries and processing overhead.
4. Failure cases and trade-offs
Quotas may be account-wide or weighted by endpoint, so separate workers can still collide. Increasing concurrency cannot exceed a hard rate budget. A faster backfill risks starving live work; a fixed reservation is simple but can waste idle capacity, motivating safe borrowing with priority preemption.
5. Validation, follow-ups and self-review
Simulate throttling, cursor expiration and a live-demand spike. Follow-up: how do you recover when pagination is not snapshot-consistent? Self-review: state quota scope, checkpoint semantics and the lower-bound nature of the estimate.
Sources and related practice
Technical reference: docs.github.com — Provider rate-limit handling as an example; the 120/min quota is hypothetical.
Source publication/update: Not established. Retrieved October 1, 2026. The workflow, calculations and review exercises are original; this reference is not evidence that a company asked this question.
Continue with Recover records missed during a paginated customer import; Design a distributed rate limiter.
Continue your preparation
Choose a connected learning path or browse more FDE interviews questions. Read our editorial method and attribution policy.