...

/

Map State Configuration

Map State Configuration

Learn to configure the Map state in workflow.

Now, we want to simulate the mixing process for each ingredient independently, and a Map state helps achieve this by processing each ingredient in parallel. We will update the serverless.yml file to include the Map state in the productionLineStateMachine definition. We'll connect the Map state to the Lambda function that calculates the mixing time for each ingredient.

Configuration of the Map state

Under the IngredientPreparation, we'll add MixingIngredients:

Access this course and 1400+ top-rated courses and projects.