[{"data":1,"prerenderedAt":54},["ShallowReactive",2],{"workflow-process-high-volume-messages-from-sqs-cdk":3},{"id":4,"title":5,"cleanup":6,"contributors":10,"deploy":12,"description":15,"diagram":16,"extension":17,"framework":18,"gitHub":19,"introBox":28,"level":36,"meta":37,"resources":38,"s3URL":41,"services":42,"simplicity":45,"stem":46,"testing":47,"type":51,"usecase":52,"videoId":27,"__hash__":53},"workflows\u002Fworkflows\u002Fprocess-high-volume-messages-from-sqs-cdk.json","Process High-Volume Messages from Amazon SQS",{"headline":7,"text":8},"Cleanup",[9],"1. Delete the stack: \u003Ccode>cdk destroy\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fzainab-allawi.json",{"text":13},[14],"cdk deploy","This sample project demonstrates how to use an AWS Step Functions Express Workflow to process messages or data from a high-volume event source, such as Amazon Simple Queue Service (Amazon SQS).","\u002Fassets\u002Fimages\u002Fworkflows\u002Fprocess-high-volume-messages-from-sqs-cdk.png","json","AWS CDK",{"template":20,"payloads":25},{"repoURL":21,"templateDir":22,"templateFile":23,"ASL":24},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fstep-functions-workflows-collection\u002Ftree\u002Fmain\u002Ftext-processing-sqs-express-cdk","text-processing-sqs-express-cdk","\u002Flib\u002Fprocesshighvolumemessages-sqs-express-stack.ts","\u002Fstatemachine\u002Fstatemachine.asl.json",[26],{"headline":27,"payloadURL":27},"",{"headline":29,"text":30},"How it works",[31,32,33,34,35],"When messages are sent to the SQS queue, a Lambda function that has event source mapping to the SQS queue will invoke the state machine.","The state machine will then invoke a Lambda function that will decode the base64 string recieved from the SQS queue. The Lambda function's output will be sent to the next state. ","Next, the state machine will invoke a Lambda function that will generate statistics based on the string input recieved. Statistics include text length, average word length, number of digits and number of special characters. The Lambda function's output will be sent to the next state.","Next, The state machine will invoke a Lambda function that will remove special characters from the string input recieved. The Lambda function's output will be sent to the next state.","Finally, the state machine will invoke a Lambda function that will tokenize and count the occurance of each word in the string input recieved.","100",{},{"headline":39,"bullets":40},"Additional resources",[],null,[43,44],"sqs","lambda","1 - Fundamental","workflows\u002Fprocess-high-volume-messages-from-sqs-cdk",{"headline":48,"text":49},"Testing",[50],"See the GitHub repo for detailed testing instructions.","Express","Data Processing","FR9kwQ8MFQPjS9kEwhkzBAHdlZjpfuaf6tnNEWmhFn0",1778846889340]