Skip to content

Commit babc777

Browse files
authored
docs(scopes): Add graphics for scope forking (#11702)
1 parent ac9a141 commit babc777

File tree

3 files changed

+3013
-0
lines changed

3 files changed

+3013
-0
lines changed

develop-docs/sdk/miscellaneous/hub_and_scope_refactoring.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,12 @@ This image illustrates the behavior of these new APIs and how scope data is appl
166166

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

169+
The below image is a simplified overview of how the scope forking/inheritance works.
170+
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).
171+
Each new request and each new user gets its own, new isolation scope.
172+
173+
![Scope Inheritance](scope-inheritance.png)
174+
169175
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.
170176

171177
<table>

0 commit comments

Comments
 (0)