goflow icon indicating copy to clipboard operation
goflow copied to clipboard

Goflow embedding

Open uded opened this issue 1 year ago • 6 comments

I observed that version 2 uses Gin, while v3 is moving to mux, which is fine. But...

In some cases, it would be beneficial to expose middleware that can be used in other frameworks to embed Goflow with Gin or whatever the project choice is. Otherwise, it isn't easy to manage a large deployment of Goflow in complex enterprise environments.

uded avatar Oct 08 '24 21:10 uded

This is a good point. It would be preferable for the user to have a choice of framework, maybe by exporting the handlers. I will have a think about it. If you have further suggestions, they are more than welcome.

fieldryand avatar Oct 22 '24 16:10 fieldryand

I was just coming across this wanting a dag style workflow but within the same running app much like goflow (very much the core of temporal engine), problem for me is I want to trigger the workflows internally to my app, I wouldn't need the ui just the dag engine itself and looking at the submit route it calls the executor which isn't publicly exposed, would love to see the ability to use the engine without the http server to trigger it

shanehughes1990 avatar Nov 18 '24 00:11 shanehughes1990

@shanehughes1990 Good news! This exact thing is coming in the next version. See: https://github.com/fieldryand/goflow/blob/v.3.0.1/goflow.go#L124

fieldryand avatar Nov 18 '24 15:11 fieldryand

That's wonderful I would love to try it out, is it at all a stable branch yet? Enough for a poc?

shanehughes1990 avatar Nov 18 '24 16:11 shanehughes1990

Yes, stable enough for a poc. That part of the API will not change.

fieldryand avatar Nov 19 '24 01:11 fieldryand

You can try go get github.com/fieldryand/goflow/[email protected]

fieldryand avatar Nov 19 '24 01:11 fieldryand