8000 add a description of the pattern · armdev/java-design-patterns@7ae9e3e · GitHub
[go: up one dir, main page]

Skip to content

Commit 7ae9e3e

Browse files
committed
add a description of the pattern
1 parent c572fe8 commit 7ae9e3e

File tree

1 file changed

+7
-1
lines changed
  • cqrs/src/main/java/com/iluwatar/cqrs/app

1 file changed

+7
-1
lines changed

cqrs/src/main/java/com/iluwatar/cqrs/app/App.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,13 @@
3838

3939
/**
4040
* CQRS : Command Query Responsibility Segregation. A pattern used to separate query services from commands or writes
41-
* services.
41+
* services. The pattern is very simple but it has many consequences. For example, it can be used to tackle down a
42+
* complex domain, or to use other architectures that were hard to implement with the classical way.
43+
*
44+
* This implementation is an example of managing books and authors in a library. The persistence of books and authors is
45+
* done according to the CQRS architecture. A command side that deals with a data model to persist(insert,update,delete)
46+
* objects to a database. And a query side that uses native queries to get data from the database and return objects as
47+
* DTOs (Data transfer Objects).
4248
*
4349
*/
4450
public class App {

0 commit comments

Comments
 (0)
0