golang-app / ecommerce

e-commerce written in Go and HTMX
MIT License
68 stars 16 forks source link

When a product changes its name/price in the product catalog, those changes aren't visible in the cart #24

Open bkielbasa opened 1 year ago

bkielbasa commented 1 year ago

This is the first time that two components/bounded contexts will communicate in an async way.

For the queue implementation/abstraction, we'll use https://watermill.io/ but will use only Go channels for now as it all works in a single process for now.

The product catalog has to publish the following events:

### Tasks
- [ ] Publish `ProductNameChanged` and `ProductPriceChanged` events in the product catalog
- [ ] Handle `ProductNameChanged` and `ProductPriceChanged` events in the cart module and update carts accordingly