Skip to content
Preptima

Microservices interview questions

Service boundaries, data ownership, saga and outbox patterns, and when a monolith is the right answer.

5 questions in Backend Engineering.

hard5

hardConceptScenarioDesign

A teammate says a saga can just roll everything back if step four fails. What is wrong with that, and what would you tell them to build instead?

A saga has no rollback. Each step already committed in its own database and was visible to everyone, so you can only run new forward transactions that semantically offset it. Compensations are not atomic, some actions cannot be compensated at all, and compensations themselves fail - so a saga needs idempotent handlers and an ordering rule for irreversible steps.

5 minmid, senior, staff