All jobs / Backend developer / Architecture

Backend developer interview question · 3–5 years

The interviewer asks: “Event-driven or request/response for “order placed → email + warehouse”?” Strongest answer?

The strongest answer

If the caller doesn't need those side effects in the HTTP response, publish an OrderPlaced event (via outbox) and let consumers do email and warehouse. If checkout must confirm stock now, that's a request — maybe with a short saga, not a hope that a consumer ran.

Why it works

Exactly. Events decouple facts that already happened. The user-facing “can I buy this?” is still a synchronous policy decision.

What a good answer covers

Answers that fall short

Who gets asked this

More Architecture questions