CQRS (Command Query Responsibility Segregation) tách biệt thao tác ghi (command) và đọc (query) thành các handler riêng. MediatR implement pattern Mediator — in-process messaging bus. Command thay đổi state; query chỉ trả về dữ liệu.
Lợi ích: scale độc lập, DTO khác nhau cho read/write, pipeline middleware cho cross-cutting concerns. Sai lầm phổ biến: dùng CQRS cho CRUD đơn giản — chỉ nên áp dụng khi độ phức tạp thực sự yêu cầu model read/write khác nhau.