[{"data":1,"prerenderedAt":54},["ShallowReactive",2],{"workflow-synchronous-api":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":41,"services":42,"simplicity":45,"stem":46,"testing":47,"type":51,"usecase":52,"videoId":27,"__hash__":53},"workflows\u002Fworkflows\u002Fsynchronous-api.json","Synchronous API",{"headline":7,"text":8},"Cleanup",[9],"1. Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fbenjamin-smith.json",{"text":13},[14],"sam deploy --guided","Trigger via Amazon API Gateway and wait for response","\u002Fassets\u002Fimages\u002Fworkflows\u002Fsynchronous-api.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\u002Fsynchronous-api\u002F","synchronous-api","template.yaml","statemachine\u002Fstatemachine.asl.json",[26],{"headline":27,"payloadURL":27},"",{"headline":29,"text":30},"How it works",[31,32],"API Gateway integrates with Express workflows via asynchronous and synchronous patterns. This workflow implements the Parallel state to create multiple concurrent branches of logic. It is triggerred vua a HTTP POST request to a URL generated by API Gateway.","The Express workflow receives an array of integers as input, and in parallel calculates the sum, the average, and the maximum and minimum values. The state machine returns a JSON object with the responses from each of the parallel tasks.","100",{},{"headline":36,"bullets":37},"Additional resources",[38],{"text":39,"link":40},"The AWS Step Functions Workshop","https:\u002F\u002Fcatalog.workshops.aws\u002Fstepfunctions\u002Fen-US","https:\u002F\u002Fda-public-assets.s3.amazonaws.com\u002Fworkflows\u002Fsynchronous-api\u002Fcloudformation.yml",[43,44],"lambda","apigw","2 - Pattern","workflows\u002Fsynchronous-api",{"headline":48,"text":49},"Testing",[50],"See the GitHub repo for detailed testing instructions.","Express","APIs","FtAM1MZoCfE4OF8zNYMLRWHLfpa7hhBikZtfR2cTpLM",1779532506101]