Trigger via Amazon API Gateway and wait for response
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.
Ben is a senior developer advocate for Serverless Applications at Amazon Web Services based in London, UK. Prior to joining AWS Ben worked in a number of different technical roles specializing in workflow Automation and web development.