In this recipe, we will create the following Azure Function triggers:
- One Orchestrator function, named GenerateBARCode
- Two activity trigger functions, as follows:
- GetAllCustomers: To make it simple, this function just returns the array of customer IDs. In your real-world applications, you would have business logic that decides which customers are eligible and based that logic, you would return the eligible customer IDs.
- CreateBARCodeImagesPerCustomer: This function doesn't actually create the barcode; rather, it just logs a message to the console, as our goal is to understand the features of Durable Functions. For each customer, we will randomly generate a number less than 50,000 and simply iterate through it.