You are developing a user onboarding workflow using Azure Durable Functions. The workflow must execute three tasks in sequence: first, create the user profile in a database; second, generate a welcome PDF document; and third, send a welcome email containing the PDF. The output of each task is required as the input for the subsequent task.
Which Durable Functions pattern should you use to implement this workflow?
- Function chainingCevap
- BFan-out/fan-in
- CAsync HTTP APIs
- DMonitor
Cevap
Function chaining
Function chaining is the correct pattern because it represents a workflow where functions are executed sequentially, and the output of one function is directly passed as the input to the next function. This matches the requirements of creating a profile, generating a PDF from the profile details, and then emailing the generated PDF.
Adım Adım Çözüm
Anahtar Kavram
Durable Functions Patterns - Function Chaining
Tahmini Süre:45s