Monte Carlo Simulations using Durable Azure Functions

%3CLINGO-SUB%20id%3D%22lingo-sub-1833813%22%20slang%3D%22en-US%22%3EMonte%20Carlo%20Simulations%20using%20Durable%20Azure%20Functions%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1833813%22%20slang%3D%22en-US%22%3E%3CP%3EApologies%2C%20this%20question%20is%20rather%20general%20as%20I%20still%20need%20to%20get%20around%20prototyping%20this%2C%20but%20you%20experts%20may%20have%20a%20good%20feel%20for%20whether%20it's%20feasible%20or%20not%2C%20and%20where%20issues%20may%20crop%20up%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAzure%20Batch%20is%20typically%20mentioned%20when%20searching%20around%20for%20running%20Monte%20Carlo%20simulations%20in%20Azure...but%20in%20terms%20of%20PaaS%2C%20would%20using%20the%20Fan%20Out%20pattern%20in%20Azure%20Durable%20Functions%20be%20a%20feasible%20approach%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1833835%22%20slang%3D%22en-US%22%3ERe%3A%20Monte%20Carlo%20Simulations%20using%20Durable%20Azure%20Functions%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1833835%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F850593%22%20target%3D%22_blank%22%3E%40BobbyJ10%3C%2FA%3E%26nbsp%3BI%20work%20with%20a%20number%20of%20customers%20in%20the%20HPC%20space%20and%20Batch%2C%20CycleCloud%20(to%20facilitate%20getting%20HPC%20schedulers%20up%20and%20running)%20or%20VM%20Scale%20Sets%20as%20most%20HPC%20workloads%20need%20much%20more%20memory%20and%20CPU%20horsepower%20to%20complete%20jobs.%26nbsp%3B%20I've%20honestly%20not%20ever%20seen%20a%20customer%20use%20a%20serverless%20path%20but%20if%20the%20CPU%2Fmemory%20requirements%20are%20lightweight%20I%20suppose%20it%20would%20be%20possible.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1833919%22%20slang%3D%22en-US%22%3ERe%3A%20Monte%20Carlo%20Simulations%20using%20Durable%20Azure%20Functions%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1833919%22%20slang%3D%22en-US%22%3E%3CP%3EThank%20you%20for%20the%20advice%20and%20standard%20approaches%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F319411%22%20target%3D%22_blank%22%3E%40CloudyRyan%3C%2FA%3E%2C%20I'll%20be%20sure%20to%20check%20how%20problem%20size%20affects%20performance%20when%20I%20look%20into%20it%20the%20Azure%20Function%20use%20case.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Apologies, this question is rather general as I still need to get around prototyping this, but you experts may have a good feel for whether it's feasible or not, and where issues may crop up :)

 

Azure Batch is typically mentioned when searching around for running Monte Carlo simulations in Azure...but in terms of PaaS, would using the Fan Out pattern in Azure Durable Functions be a feasible approach?

4 Replies

@BobbyJ10 I work with a number of customers in the HPC space and Batch, CycleCloud (to facilitate getting HPC schedulers up and running) or VM Scale Sets as most HPC workloads need much more memory and CPU horsepower to complete jobs.  I've honestly not ever seen a customer use a serverless path but if the CPU/memory requirements are lightweight I suppose it would be possible.

Thank you for the advice and standard approaches @CloudyRyan, I'll be sure to check how problem size affects performance when I look into it the Azure Function use case.

@BobbyJ10 There are a couple ways to approach this. If the simulations can run as an Azure Function, Durable Functions can be a good way to orchestrate them as activity functions. There are some settings that you might need to change to make a CPU-bound workload scale properly.

 

We've also seen customers use Durable Functions to orchestrate workloads running in Batch or Container Instances. That's a good route to go if you need to coordinate compute to do large batches of work.

Thanks @Anthony Chu, it's really great that you can chain these services together in this manner. Will keep all of this is mind when I start taking a look into it.