I'm building up an ecommerce app based on microservices and almost every article points out to use async communication. But I'm facing a situation that I think is better use sync communication. So, how control inventory using async communication?
Let's say I've a bus with 1k messages for decreasing the quantity of a product (and I've only 1k pieces of it), while not all messages are processed I still have those quantities and meanwhile another 500 orders are being placed, how handle that using bus service? I mean, this 500 orders should be refused...
Just for clarification, I'm starting with microservices.