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

Schemas -> Live<Schema> #1671

Merged
merged 2 commits into from
Jun 28, 2024
Merged

Schemas -> Live<Schema> #1671

merged 2 commits into from
Jun 28, 2024

Conversation

AhmedSoliman
Copy link
Contributor

@AhmedSoliman AhmedSoliman commented Jun 27, 2024

Schemas -> Live

This changes how we pass Schema around, instead of implying being updateable, we invert control to allow users to decide when and how to look at a consistent snapshot of the schema.


Stack created with Sapling. Best reviewed with ReviewStack.

Copy link

github-actions bot commented Jun 27, 2024

Test Results

102 files  ±0  102 suites  ±0   20m 39s ⏱️ -13s
 84 tests ±0   84 ✅ ±0  0 💤 ±0  0 ❌ ±0 
215 runs  ±0  215 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 777b3cc. ± Comparison against base commit 8ca625f.

♻️ This comment has been updated with latest results.

Copy link
Contributor

@tillrohrmann tillrohrmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. +1 for merging :-)

crates/invoker-impl/src/lib.rs Outdated Show resolved Hide resolved
- Automatic caching and redesigned interface
- Nodes configuration is not optional anymore. Node configuration is empty with an INVALID version before loading.
- Updateable<T> provides a readonly live view of an updateable. Namely, it hides all access to the underlying ArcSwap.
- Use updateable config in networking and avoid metadata()
- Efficient access to metadata and nodes configuration in performance-sensitive networking code
- Easy to map and around as owned types
- Supports projections and type erasure
This changes how we pass Schema around, instead of implying being updateable, we invert control to allow users to decide when and how to look at a consistent snapshot of the schema.
@AhmedSoliman AhmedSoliman merged commit 1e5d334 into main Jun 28, 2024
8 checks passed
@AhmedSoliman AhmedSoliman deleted the pr1671 branch June 28, 2024 08:48
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

Successfully merging this pull request may close these issues.

2 participants