InterviewTreedInterviewTreed

The question library

Technical interview questions and answers

Explore practical questions, clear explanations, and code examples across developer technologies.

Showing 2593–2604 of 3610 questions

Messaging & Event StreamingAdvanced1 min read

How do you make saga steps idempotent?

Give each step a stable operation ID, persist its status with a uniqueness constraint, and make repeated commands return the known result instead of applying the action again.

Messaging & Event StreamingAdvanced1 min read

How do you handle a saga timeout?

A timeout should move the workflow into an explicit state where the coordinator checks whether the step succeeded, retries safely, or initiates compensation.

Messaging & Event StreamingAdvanced1 min read

What is the inbox pattern?

The inbox pattern records incoming event IDs durably before or alongside business processing so duplicate deliveries can be detected.

Messaging & Event StreamingAdvanced1 min read

How do you increase Kafka throughput?

Increase throughput by tuning batch size and linger, using compression, distributing keys across partitions, and ensuring broker disks and networks are not bottlenecks.

Messaging & Event StreamingAdvanced1 min read

How do you reduce end-to-end message latency?

Reduce latency by minimizing unnecessary hops, tuning batching and acknowledgements to the required durability, keeping handlers efficient, and avoiding saturated downstream services.

Messaging & Event StreamingAdvanced1 min read

How do you handle large messages?

Prefer storing large objects in object storage and publishing a reference with integrity metadata rather than sending huge payloads through the broker.