All jobs / Backend developer / Architecture
Backend developer interview question · 3–5 years
The interviewer asks: “Should this service be CQRS?” Strongest answer?
The strongest answer
Not by default. I split read and write models when they actually diverge — different scale, different shape, or a team boundary — not because a blog post started with a command bus.
Why it works
Exactly. CQRS is a response to pain (read models that crush the write schema, or independent scale). Starting there doubles the moving parts.
What a good answer covers
- CQRS when reads and writes truly diverge.
- Not the default for CRUD.
- Don't conflate it with event sourcing.
- A replica ≠ a read model.
Answers that fall short
- Close, but not the strongest: Yes — every serious backend is CQRS now.
Most CRUD services want one model and a few queries. Fashion is not a requirement. - Weak: CQRS means Event Sourcing; we should do both together.
CQRS and event sourcing are independent. You can have either without the other. Combining them is a further bet. - Red flag: I duplicate every table into a read replica named “query side” and call it CQRS.
A replica is replication, not a read model. CQRS is a different shape you maintain, not a second copy of the same table.
Who gets asked this
More Architecture questions
- The interviewer asks: “Event-driven or request/response for “order placed → email + warehouse”?” Strongest…
- The interviewer asks: “How do you change an event payload that old consumers still read?” Strongest answer?
- The interviewer asks: “Billing keeps importing Order's entity. What's the design problem?” Strongest answer?
- The interviewer asks: “How do you isolate tenants in a multi-tenant backend?” Strongest answer?
- The interviewer asks: “A bad deploy took all regions with it. What architecture would have contained it?”…
- A team proposes ports and adapters for a service that reads a queue, writes to one database, and will never…
- The interviewer asks: “Two years of events, consumers you don't own. How do you evolve the schema?” Strongest…
- The interviewer asks: “Auth, TLS, and WAF — in every service or at the gateway?” Strongest answer?