Design a Push Task Queue With Dispatch Rate Controls Like Cloud Tasks

Last updated: November 29, 2026

Quick Overview

Design a managed task queue where applications enqueue HTTP tasks that the service later delivers to a target endpoint, honoring per-queue dispatch rates, max concurrency, scheduled delivery times, and retries.

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

0

0

0 solved


Design a managed task queue where applications enqueue HTTP tasks that the service later delivers to a target endpoint, honoring per-queue dispatch rates, max concurrency, scheduled delivery times, and retries.

Cloud Tasks and its App Engine Task Queue ancestor make this a natural Google Cloud question. The interviewer checks durable enqueue, efficient time-ordered dispatch, rate and concurrency enforcement per queue, and honest delivery semantics.

What the Interviewer Expects
  • Persist tasks durably before acknowledging enqueue
  • Index tasks by queue and scheduled time for efficient dispatch
  • Enforce per-queue rate (tokens per second) and max in-flight
  • Specify retry with backoff and maximum attempts
  • Support task names for deduplication
Key Topics to Cover
durable queue
token bucket
at-least-once delivery
deduplication
backoff
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 a queue whose target endpoint is down for an hour?
  • How would you shard one very large queue?
  • How does task name deduplication work after a task completes?
  • How do you pause and resume a queue?
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
  • CreateTask(queue, url, body, schedule_time, name?), DeleteTask, PauseQueue.
  • Each queue has max dispatches per second, max concurrent dispatches, retry config (max attempts, min and max backo...
High-Level Design
  • Frontend API: validates and writes tasks to the task store: Bigtable or Spanner, row key queue_shard / schedule_time / task_id, so a range scan returns due tasks in order.
  • **Dispatcher w...

Submit Your Answer
Markdown supported