Business Capabilities
Each user has his/her owned shopping cart. The shopping cart will be saved as long as the user not checkout.
User can add/remove items from shopping cart. These action will be tracked for
recommendation
andshopper tracking
perpose.
Dev Machine Url : http://localhost:5000
Port:5000
Name | Url |
---|---|
Shopping Cart | /shoppingcart/ |
Events | /events/ |
Name | Description |
---|---|
ItemsAddedToCartEvent | happend when user add items into cart |
ItemsRemovedFromCartEvent | happend when user remove items from cart |
Shopping Cart
Name:
Params:
Result:
EventStore
Name:
Params:
Result:
Shopping Cart
Name:
Params:
Result:
EventStore
Name:
Params:
Result:
The purpose of caching:
To eliminate the need, in many cases, to request information the caller already has
To eliminate the need, in many other situations, to send full HTTP responses
Replacing a query to another microservice with a query to the microservice’s own database by creating a
read model
: a data model that can be queried easily and efficiently.Read models are often based on events from other microservices.
Read models can also be built from responses to queries to other microservices