A separate subscribes to inventory_changes :
They implement a for reliable messaging: A separate subscribes to inventory_changes : They implement
# During checkout (simplified) MULTI HINCRBY product:1001 stock -1 RPUSH pending_inventory_updates '"product_id":1001,"delta":-1,"order_id":777' EXEC PUBLISH inventory_changes '"product_id":1001,"action":"sold","quantity":1' A separate subscribes to inventory_changes : They implement
HMSET product:1001 name "Wireless Headphones" price 79.99 stock 250 Maya updates stock using HINCRBY (atomic decrement): A separate subscribes to inventory_changes : They implement