Interview Q&A · questions with model answers

Messaging & Queues Interview Questions

Part of the study plan for: Backend Engineer · Data Engineer · Site Reliability Engineer (SRE)

Ordered by how often they're asked. Most-asked answers are free to read in full; members see every answer and can rate their confidence on each.

  1. Most asked Compare Kafka and RabbitMQ (and managed queues like SQS).

    Kafka is a distributed, partitioned, replicated log: messages are retained and consumers track offsets, enabling replay, high throughput and ordered processing per partition. RabbitMQ is a message…

  2. What is the difference between a work queue and publish/subscribe?

    In a work queue, each message is processed by exactly one of many competing consumers (load distribution). In pub/sub, each message is delivered to every subscriber group (fan-out), so multiple…

  3. Choreography vs orchestration for multi-service workflows?

    In choreography, services react to each other's events without a central coordinator (decoupled, but flows are implicit and hard to trace); in orchestration, a coordinator (workflow engine or saga…

  4. How do you schedule delayed or future work with queues?

    Use broker features (SQS delay seconds up to 15 minutes, RabbitMQ delayed exchange plugin, BullMQ delayed jobs), a scheduler that enqueues at the right time, or database tables polled for due jobs;…

  5. When is Redis (lists or streams) good enough as a queue?

    For moderate volumes where you already run Redis and can tolerate its durability characteristics, Redis lists (with BLMOVE for reliability) or Streams (with consumer groups, acks and pending…

  6. When would you use a workflow engine like Temporal instead of plain queues?

    When processes have many steps, long waits (days), timeouts, retries with state, human approvals and compensations, a workflow engine persists execution state and resumes after failures, so you…

  7. When should a request be handled synchronously versus asynchronously?

    Handle synchronously when the user needs the result immediately and it's fast and reliable (read profile, validate input); handle asynchronously when work is slow, can fail and retry, or isn't…

Was this page helpful?

Report a mistake