Node js durable functions out ot memory exception

Muhammad Bilal 0 Reputation points
2023-09-19T21:43:25.6766667+00:00

I am currently running my nodejs project in Azure VM, where my main orchestration function is called and then loop comes like while loop in which i am getting data from Microsoft Graph API using pagination like top,skip , in each iteration it fetches 500 emails and then mapped and process data using other Activity functions , then create my MSG files of those 500 emails and upload to the storage server and in database as well, when almost 2,3 iteration work good the it shows a Out.Of.Memory.Exception error , i have also reduce my batch size from 500 to 10, but still the database have almost between 1000-1500 entries , it shows memory error, i am so disturb about this, give me some good solution, please!

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,909 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,804 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.