Skip to content

Commit ff85cd0

Browse files
committed
[README] Add link to DDD aggregate.
1 parent 0261d1f commit ff85cd0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ Thanks to this small library, you can create relatively simple code without the
2020

2121
Normally a web application is using following pattern to modify data in the database:
2222

23-
1. **Load resource** from database. Resource is some portion of data
24-
such as set of records from relational database, document from Document-oriented database or value from KV store.
23+
1. **Load resource** from database. **Resource** is some portion of data
24+
such as set of records from relational database, document from Document-oriented database or value from KV store
25+
(in Domain-Driven Design terms it is called an [aggregate](https://martinfowler.com/bliki/DDD_Aggregate.html)).
2526
Lock the entire resource pessimistically or optimistically (by reading version number).
2627
2. **Apply change** to data in plain Go
2728
3. **Save resource** to database. Release the pessimistic lock. Or run

0 commit comments

Comments
 (0)