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

Definition of "execution boundary" #610

Open
ptbrowne opened this issue May 5, 2024 · 1 comment
Open

Definition of "execution boundary" #610

ptbrowne opened this issue May 5, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@ptbrowne
Copy link

ptbrowne commented May 5, 2024

What is the problem this feature would solve?

I am following the Effect advanced workshop video on Youtube, and multiple times, the term "execution boundary" is used, and I am struggling to find a good definition for that. I get that in an Express server, somehow each request should have their own independent context, and should not be dependent on any other, such that if one request fail, it should not make other requests fail, and maybe that's the definition of execution boundary ?

What is the feature you are proposing to solve the problem?

Having a definition in the glossary would be helpful. Local and distributed workflow definitions could link to it.

What alternatives have you considered?

Maybe it's a known concept from elsewhere that I do not know 😅

@ptbrowne ptbrowne added the enhancement New feature or request label May 5, 2024
@mikearnaldi
Copy link
Member

Execution boundary means any time you need to run an effect, ergo execute it. In an express example you do want to share context between requests, for example you want to share every service to not re-construct it, as the examples in the advanced workshop show. The concept is introduced when we talk about runtimes, https://effect.website/docs/guides/runtime not sure we should re-introduce it in the glossary

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

No branches or pull requests

2 participants