From the course: Java EE: Design Patterns and Architecture

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

The three variants

The three variants

From the course: Java EE: Design Patterns and Architecture

Start my 1-month free trial

The three variants

- [Instructor] There are three variants of the command query separation architecture. The first is a single-database structure that splits the application and persistence layer down the middle into a query stack and a command stack. They are then connected to one database. The command stack is tuned for writing data to the database, while the query stack is tuned for reading. So commands will perform the update, create, and delete functionality of the application and the query performs the read functionality. In the CQRS structure, the database can be relational SQL data store or a non-SQL data store. In fact, it can be any type of data store and such concerns are implementation details, which are not affected by the actual CQRS architecture. The result of this separation is to increase the performance of each stack as each one is optimized to perform its own function. This is the simplest of the three database structures and may not be the most optimal, as the same database is used…

Contents