SpinTheMic
Pro

Interview practice question

Aggregate too large causes contention

Backend Engineering · OOP and Design Patterns · Experienced

Your Event aggregate in a ticketing system contains all seats, and during popular sales, concurrent bookings constantly fail with optimistic locking conflicts. How do you redesign?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Aggregate boundary too large.
  • Split: seat or section as own aggregate.
  • Invariant only needs per-seat consistency.
  • Event-level rules via eventual checks.
  • Reduce lock scope.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics