[{"data":1,"prerenderedAt":55},["ShallowReactive",2],{"workflow-stateless-roundrobin":3},{"id":4,"title":5,"cleanup":6,"contributors":11,"deploy":13,"description":16,"diagram":17,"extension":18,"framework":19,"gitHub":20,"introBox":29,"level":34,"meta":35,"resources":36,"s3URL":42,"services":43,"simplicity":46,"stem":47,"testing":48,"type":52,"usecase":53,"videoId":28,"__hash__":54},"workflows\u002Fworkflows\u002Fstateless-roundrobin.json","Stateless roundrobin",{"headline":7,"text":8},"Cleanup",[9,10],"1. Delete the stack: \u003Ccode>sam delete --stack-name STACK_NAME\u003C\u002Fcode>.","2. Confirm the stack has been deleted: \u003Ccode>aws cloudformation list-stacks --query \"StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus\"\u003C\u002Fcode>",[12],"content\u002Fcontributors\u002Fbenjamin-smith.json",{"text":14},[15],"sam deploy --guided","Selects the next array item in round robin fashion using the Step Functions execution count modulo of the array length.","\u002Fassets\u002Fimages\u002Fworkflows\u002Fstateless-roundrobin.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\u002Fstateless-roundrobin\u002F","stateless-roundrobin\u002F","template.yaml","statemachine\u002Fstatemachine.asl.json",[27],{"headline":28,"payloadURL":28},"",{"headline":30,"text":31},"How it works",[32,33],"The Step Functions `SDK:ListExecutions` task retrieves the total number of successful executions, and passes this onto a Lambda function that finds the remainder when divided by an array length (the modulo).","This workflow pattern Is used in production to assign new serverlessLand pattern pull requests to the DA team via Asana. ","100",{},{"headline":37,"bullets":38},"Additional resources",[39],{"text":40,"link":41},"The AWS Step Functions Workshop","https:\u002F\u002Fcatalog.workshops.aws\u002Fstepfunctions\u002Fen-US","https:\u002F\u002Fda-public-assets.s3.amazonaws.com\u002Fworkflows\u002Fstateless-roundrobin\u002Fcloudformation.yml",[44,45],"sfn","lambda","2 - Pattern","workflows\u002Fstateless-roundrobin",{"headline":49,"text":50},"Testing",[51],"See the GitHub repo for detailed testing instructions.","Express","Team Collaboration","KIGXLpX3L7vfQp8vmOBkXBgh4_9DChWul9yLbf6bCHU",1778846889584]