Skip to content

docs(scopes): Add illustration for scope forking #11702

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

Merged
merged 1 commit into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions develop-docs/sdk/miscellaneous/hub_and_scope_refactoring.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,12 @@ This image illustrates the behavior of these new APIs and how scope data is appl

For a zoomable version visit the <a href="https://miro.com/app/board/uXjVNtPiOfI=/?share_link_id=140058397661" target="_blank">Miro Board</a>

The below image is a simplified overview of how the scope forking/inheritance works.
The last item on the timeline shows that there can be multiple active scopes on one server, but they don't share data (except for the global scope).
Each new request and each new user gets its own, new isolation scope.

![Scope Inheritance](scope-inheritance.png)

Here's how the new APIs roughly map to the old-style APIs. In case of `configure_scope` and `push_scope` it's not clear-cut whether to use the current or the isolation scope. The choice essentially depends on how long/for which context the changed/forked scope should be active.

<table>
Expand Down
Loading
Loading