Git Product home page Git Product logo

Comments (2)

rameshjanjyam avatar rameshjanjyam commented on July 19, 2024

Hi.. I am planning to use durable functions and couldn't find a way to use the servicecollection that is built in functionappconfiguration class inside the durable function. is it possible?

from functionmonkey.

joaoantunes avatar joaoantunes commented on July 19, 2024

Hi, I will use durable functions on a project to make function chaining, async flows & monitor (timeouts). For what I see there is no support for all the durable functions concepts right? ActivityFunction, Orchestration, Contexts, Clients, etc,

For now, I see that we will need:
1- Start a new orchestration (from an Http Trigger function) - DurableOrchestrationClient
2- Implement the orchestration flow - using the DurableOrchestrationContext
3- Implement different Activity triggers - we will need the input pass by the Orchestration
4- Resume the orchestration from an Http Trigger

I know that abstract all these concepts in FunctionMonkey, it will take some time since for now is not possible to have them what do you advise if we want to have both Durable functions & FunctionMonkey?

Solution A:

  • Every function that interacts with Durable functions concepts can't be registered using the function monkey approach but needs to use the Microsoft way. If a certain Azure function (using monkey) needs to start an orchestration use a HttpTrigger for another function (no monkey) to start orchestration. To resume use some concept (this will have performance/cost impact)

Solution B:

  • For the orchestrations use Microsoft API
  • Register ActivityTriggers as a special Trigger. Need to be implemented on FunctionMonkey and inject the input to the ICommandHandler (is this hard?
  • Have a simple Client (wrapper of ? DurableOrchestrationClient) just to start an orchestration from a CommandHandler.
  • To be able to resume Orchestration improve the Client wrapper to support also raise events.

Solution C:

  • Don't use durable functions at all, use Service bus to chain functions (?) and for workflows use (what?)

Any suggestion each approach should I use A, B, C (or another one)?

I think the approach B would be the best commitment, but to do that, I would need to have functionalities that don't exist on function monkey. I would like to help to develop them if you are interested, and hope my IT skills would be enough :)

from functionmonkey.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.