using helper functions along with durable functions

na 131 Reputation points

Is there any issue with using helper functions/methods along with durable functions.

e.g. if i have 2 durable functions, both have to save a value to a database.
There is a helper method that the durable functions call that saves the value to the database. This method is not a durable function, its likely private within the function app.

Based on how durable functions seem to operate, I want to be sure this practice is acceptable before developing.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,632 questions
0 comments No comments
{count} votes

Accepted answer
  1. MughundhanRaveendran-MSFT 12,451 Reputation points

    @na ,

    Thanks for reaching out to Q&A.

    There doesn't seem to be any problem with this approach, it should work as expected. However, it would be more appropriate, if you could make the helper function as an activity function that orchestrator or sub orchestrator would call as a part of its flow. This would be easier for logging and tracking purposes.

    I hope this helps!

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

0 additional answers

Sort by: Most helpful