The Inventory Adjusted event is triggered whenever there is a change in the inventory levels of a product. This could occur due to various reasons such as receiving new stock, sales, returns, or manual adjustments by the inventory management team. The event ensures that all parts of the system that rely on inventory data are kept up-to-date with the latest inventory levels.
Architecture diagram
Payload example
Event example you may see being published.
Schema (avro)
Producing the Event
To produce an Inventory Adjusted event, use the following example Kafka producer configuration in Python:
Consuming the Event
To consume an Inventory Adjusted event, use the following example Kafka consumer configuration in Python: