A company is building an image processing system where a user uploads a high-resolution photo, and the system needs to generate three different resized versions (thumbnail, mobile, and desktop) simultaneously. Once all three resizing tasks are finished, a final task must combine them into a single zip archive and notify the user. Which Durable Functions pattern is best suited for this workflow?
- Fan-out/fan-inCevap
- BFunction chaining
- CMonitor
- DHuman interaction
Cevap
Fan-out/fan-in
The Fan-out/fan-in pattern is the correct choice because the scenario requires executing multiple tasks (generating thumbnail, mobile, and desktop versions) in parallel and then waiting for all of them to complete before performing a final aggregation step (creating a zip archive).
Adım Adım Çözüm
Anahtar Kavram
Durable Functions Patterns