I’m newbie in cqrs but I like theory and want to try it in practice.
I have already ecommerce system with price, product catalog, inventory sub-systems but which was not done using cqrs.
And my team are going to implement cart module with checkout and place order functionality.
We are going to call all these sub-systems to orchestrate our logic.
So is it fine to implement just this little part – maintain cart, create order and verify payment(s) using cars?
I will appreciate if someone can share his experience.
Also, it’s not clear for me how I should handle calling to this third party sync systems (most of them provide Public Sync REST API only) like checking inventory, adding type of payment or do authorization payment.
Can I do call to third party directly from aggregate or should I try to wrap and put some layer to emulate like I still work with command/events (for example for checking inventory before add item to cart or by place order)?