[{"data":1,"prerenderedAt":52},["ShallowReactive",2],{"workflow-lambda-orchestration-sam":3},{"id":4,"title":5,"cleanup":6,"contributors":10,"deploy":12,"description":15,"diagram":16,"extension":17,"framework":18,"gitHub":19,"introBox":28,"level":33,"meta":34,"resources":35,"s3URL":38,"services":39,"simplicity":43,"stem":44,"testing":45,"type":49,"usecase":50,"videoId":27,"__hash__":51},"workflows\u002Fworkflows\u002Flambda-orchestration-sam.json","Lambda Orchestration",{"headline":7,"text":8},"Cleanup",[9],"1. Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fmike-ellis.json",{"text":13},[14],"sam deploy --guided","Orchestrate a series of Lambda Functions","\u002Fassets\u002Fimages\u002Fworkflows\u002Flambda-orchestration-sam.png","json","AWS SAM",{"template":20,"payloads":25},{"repoURL":21,"templateDir":22,"templateFile":23,"ASL":24},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fstep-functions-workflows-collection\u002Ftree\u002Fmain\u002Flambda-orchestration-sam\u002F","lambda-orchestration-sam","template.yaml","statemachine\u002Fstatemachine.asl.json",[26],{"headline":27,"payloadURL":27},"",{"headline":29,"text":30},"How it works",[31,32],"This workflow simulates a stock trading process.  The first state simulates checking a stock price by generating a random number representing the price of a stock.  The stage passes this price to the Generate Buy\u002FSell recommendation state which determines if the trader should buy or sell the stock.  The recommendation is passed to an SQS queue simulating a trader verifying the recommendation and approving it.","This decision is passed to the Buy or Sell choice state which directs the flow to the proper buy or sell Lambda function.  The result of the trade is sent to an SNS Topic.","100",{},{"headline":36,"bullets":37},"Additional resources",[],"https:\u002F\u002Fda-public-assets.s3.amazonaws.com\u002Fworkflows\u002Flambda-orchestration\u002Fcloudformation.yml",[40,41,42],"sns","lambda","sqs","2 - Pattern","workflows\u002Flambda-orchestration-sam",{"headline":46,"text":47},"Testing",[48],"See the GitHub repo for detailed testing instructions.","Standard","Microservices","JaGI7sDk0VP7tXjeOp8PEihk8aWgnBZF5vwCYvOsFpc",1778846889236]