A microservices powered e-commerce shopping cart sample - based on SOA principles. Demos and sample for my "All our Aggregates are Wrong" talk
https://milestone.topics.it/talks/all-our-aggregates-are-wrong.html β// readme
All our Aggregates are Wrong - Demos
A microservices-powered e-commerce shopping cart sample based on SOA principles. These are the demos for my All our Aggregates are Wrong talk.
The demo showcases a shopping cart and its associated behaviors. Add items to the cart and observe the log messages printed in the various service terminal windows as events are processed. Leave the cart inactive for a few seconds and observe the stale cart policy kick in: after 30 seconds of inactivity a ShoppingCartGotStale event is published, and after 60 seconds the cart is deleted and a ShoppingCartGotInactive event is published.
Solution overview
The solution is organized into four business domains, each owning its own data and communicating asynchronously via NServiceBus over RabbitMQ.
Marketing
Manages the product catalog. The Marketing.Api exposes product data (names, descriptions) used to compose product listing and shopping cart views. Marketing.Data provides the EF Core data access layer backed by a dedicated PostgreSQL database.
Sales
Manages the shopping cart lifecycle. Sales.Api exposesβ¦