All jobs / Engineering manager / tech lead

Engineering manager / tech lead interview question · 3–5 years

Placing an order touches inventory, payment and shipping services. How do you keep them consistent without one transaction?

The strongest answer

A saga: a sequence of local transactions with a compensating action for each step — reserve stock, charge, book shipping; if booking fails, refund and release; orchestrated by a coordinator or choreographed by events, with every step idempotent and the state persisted

Why it works

Right. Compensation, persisted state, idempotent steps.

What a good answer covers

Answers that fall short

Who gets asked this

More Engineering manager / tech lead questions