Add production async proximity map lifecycle - #63
Merged
Conversation
…-map # Conflicts: # bindings/api/parity.json
forhappy
marked this pull request as ready for review
August 3, 2026 07:37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
AsyncProximityMaplifecycle overAsyncStore: canonical build/load, reads, scans, mutation/rebuild, verification, native search, membership proofs, structural proofs, and search proofsAsyncProximityHeadfor validated named opens, build/publish-if-absent, shared runtime reuse, expected-head CAS, and bounded conflict retryWhy
The synchronous proximity implementation already had localized immutable mutation, but the async implementation rebuilt all proximity routing whenever vectors changed. Remote applications also had to compose decoder context, caching, typed-root validation, publication, CAS, retry, and accelerator maintenance themselves. Those shallow seams amplified remote round trips and made correct service integration unnecessarily difficult.
This change makes the async path a first-class service interface while preserving canonical byte/CID equivalence with the synchronous implementation and clean-rebuild oracle.
Developer impact
load_with_runtimeandload_with_search_ioderive decoder context from the authenticated descriptorValidation
cargo test --features async-store --lib— 502 passedcargo test --features async-store --doc— 74 passedcargo clippy --features async-store --lib -- -D warningscargo +1.89.0 check --features async-storeThree-run PostgreSQL medians:
Localized vector mutation was 4.5× faster than the same-run clean rebuild and used 22 SQL calls. In a representative managed-head run, cached open took 3.2 ms and 2 SQL calls versus 431.7 ms and 144 calls for a generic fully validated named-root load.
Build and verification values are totals for the complete 1,000-record map, not per-record latency.
Known upstream baseline
The repository-wide
cargo test --features async-storecommand still encounters pre-existing stale secondary-index imports intests/async_store.rsonmain. Library, documentation, focused proximity, PostgreSQL E2E, clippy, and MSRV checks above pass.