Loading…
Loading…
4 карточек
What is CQRS and when should it be used?
нажми, чтобы перевернуть
CQRS splits the system into Command (write) and Query (read) sides with different data models. The write model is optimized for consistency (normalized DB). The read model is optimized for performance (denormalized, materialized views). Synchronization happens through events. Often used with Event Sourcing.
Когда да
Read/write ratio > 10:1, different requirements for read and write models
Когда нет
Simple CRUD, small applications (overhead is not justified)
Совет на собеседовании
CQRS is not for everyone. Apply it only when there's a clear need
Свайп вправо — знаю, влево — не знаю
