All challenges
Multiple ChoiceIntermediate 45s

Repository vs Unit of Work roles

How do Repository and Unit of Work patterns differ in responsibility?
Options
  1. 1Repository commits transactions; Unit of Work queries data and exposes read methods
  2. 2Repository manages collections of aggregates; Unit of Work tracks changes and commits them atomically
  3. 3They are interchangeable, as both simply wrap the same underlying persistence session
  4. 4Unit of Work is only for read models; Repository handles all of the write-side concerns

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle