Skip to content

Commit b93754a

Browse files
committed
Fixing typo
1 parent 182fad4 commit b93754a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/cosmos-db/change-feed-design-patterns.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ For example, consider a retail application using the event sourcing design patte
9393

9494
1. Customer adds Item A to their shopping cart
9595
2. Customer adds Item B to their shopping cart
96-
3. Customer adds removes Item A from their shopping cart
96+
3. Customer removes Item A from their shopping cart
9797
4. Customer checks out and shopping cart contents are shipped
9898

9999
A materialized view of current shopping cart contents is maintained for each customer. This application must ensure that these events are processed in the order in which they occur. If, for example, the cart checkout were to be processed before Item A's removal, it is likely that the customer would have had Item A shipped, as opposed to the desired Item B. In order to guarantee that these four events are processed in order of their occurrence, they should fall within the same partition key value. If you select **username** (each customer has a unique username) as the partition key, you can guarantee that these events show up in the change feed in the same order in which they are written to Azure Cosmos DB.

0 commit comments

Comments
 (0)