Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does hof support run node in parallel? #358

Open
lianggengdino opened this issue Dec 20, 2023 · 1 comment
Open

Does hof support run node in parallel? #358

lianggengdino opened this issue Dec 20, 2023 · 1 comment

Comments

@lianggengdino
Copy link

I want to know does hof support run node in parallel?
Like direktiv, it support Parallel State.
If hof support parallel, how to use.

@verdverm
Copy link
Member

Hof supports more parallel work out-of-the-box than cue or the Go API does

There are two problems generally when doing parallel CUE (both will eventually be fixed upstream)

  1. Values from different contexts cannot be used together, we use a singleton, so if you use our loaders and helpers, you'll get this for free.

  2. The CUE evaluator is not concurrency safe. You generally have to use a mutex to protect calls to cue Go SDK functions. value.Unify() and similar.

If you are using hof/flow, the basics are covered. Flow (our cue cmd) also has some building blocks for allowing you to control how that parallelism works.

Can you expand on what you are trying to do, and what parts of hof you are looking at to help with this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants