[{"data":1,"prerenderedAt":55},["ShallowReactive",2],{"workflow-inventory-management-sam":3},{"id":4,"title":5,"cleanup":6,"contributors":10,"deploy":12,"description":16,"diagram":17,"extension":18,"framework":19,"gitHub":20,"introBox":29,"level":33,"meta":34,"resources":35,"s3URL":38,"services":39,"simplicity":46,"stem":47,"testing":48,"type":52,"usecase":53,"videoId":28,"__hash__":54},"workflows\u002Fworkflows\u002Finventory-management-sam.json","Real-time inventory management",{"headline":7,"text":8},"Cleanup",[9],"1. Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fshannon-colavita.json",{"text":13},[14,15],"sam build","sam deploy --guided","This sample inventory management microservice demonstrates how to manage inventory levels by reserving inventory when a new order is received, alerts on low stock, and triggers purchase orders to replenish inventory","\u002Fassets\u002Fimages\u002Fworkflows\u002Finventory-management-sam.png","json","AWS SAM",{"template":21,"payloads":26},{"repoURL":22,"templateDir":23,"templateFile":24,"ASL":25},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fstep-functions-workflows-collection\u002Ftree\u002Fmain\u002Finventory-management-sam\u002F","inventory-management-sam","template.yaml","statemachine\u002Freserve-stock-statemachine.asl.json",[27],{"headline":28,"payloadURL":28},"",{"headline":30,"text":31},"How it works",[32],"The sample inventory management microservice includes an EventBridge Schedule triggering a Lambda function to generate sample order data. An EventBridge rule persists the data in an SQS queue. A reserve-stock Lambda function starts a workflow, checking product availability in DynamoDB and creating purchase orders if needed. The create-purchase-order workflow sends purchase order emails and updates stock levels. The check-inventory-level workflow monitors stock levels via DynamoDB Streams, creating purchase orders for low inventory and updating product status as necessary. This microservice efficiently manages inventory, handles orders, and ensures products are in stock.","200",{},{"headline":36,"bullets":37},"Additional resources",[],null,[40,41,42,43,44,45],"lambda","sns","sqs","dynamodb","sfn","eventbridge","3 - Application","workflows\u002Finventory-management-sam",{"headline":49,"text":50},"Testing",[51],"Please see the github repo README for detailed testing instructions.","Express","Microservices","LLtsgtyaOWTBFw00Vly0mevKhAD2K-ThCVT9WvKsZCc",1782124511650]