Repository navigation
feat: kv-store over IPC; aztec-kvdb binary; LMDBStore NAPI scaffold [PR 4] - #23698
Closed
charlielye wants to merge 0 commit into
Closed
charlielye wants to merge 0 commit into
charlielye wants to merge 0 commit into
Conversation
charlielye
requested review from
IlyasRidhuan,
MirandaWood and
jeanmon
as code owners
May 29, 2026 14:10
charlielye
force-pushed
the
cl/ipc-5-avm-cutover
branch
from
May 29, 2026 14:19
1c8d4f9 to
a4e2e70
Compare
charlielye
force-pushed
the
cl/ipc-6-kvdb
branch
2 times, most recently
from
May 30, 2026 13:39
e183c42 to
f441723
Compare
charlielye
force-pushed
the
cl/ipc-5-avm-cutover
branch
2 times, most recently
from
May 30, 2026 16:57
0df283e to
42d8d4f
Compare
charlielye
force-pushed
the
cl/ipc-5-avm-cutover
branch
from
May 30, 2026 18:30
42d8d4f to
7f602eb
Compare
charlielye
force-pushed
the
cl/ipc-6-kvdb
branch
2 times, most recently
from
May 30, 2026 22:27
874f090 to
73fc07f
Compare
charlielye
force-pushed
the
cl/ipc-5-avm-cutover
branch
from
May 30, 2026 22:27
7f602eb to
498b1ca
Compare
charlielye
force-pushed
the
cl/ipc-5-avm-cutover
branch
from
May 31, 2026 13:23
498b1ca to
4597920
Compare
charlielye
force-pushed
the
cl/ipc-5-avm-cutover
branch
2 times, most recently
from
June 1, 2026 11:39
4a53618 to
af3dc85
Compare
charlielye
force-pushed
the
cl/ipc-6-kvdb
branch
2 times, most recently
from
June 1, 2026 11:54
c90eded to
aaf3af1
Compare
charlielye
force-pushed
the
cl/ipc-5-avm-cutover
branch
7 times, most recently
from
June 4, 2026 10:55
ce6510f to
00868aa
Compare
charlielye
force-pushed
the
cl/ipc-5-avm-cutover
branch
3 times, most recently
from
June 9, 2026 16:15
05272f6 to
33b2454
Compare
charlielye
force-pushed
the
cl/ipc-5-avm-cutover
branch
18 times, most recently
from
June 18, 2026 20:17
2ff99c6 to
d69bd93
Compare
charlielye
force-pushed
the
cl/ipc-5-avm-cutover
branch
11 times, most recently
from
June 24, 2026 17:57
bb3a456 to
d7662c1
Compare
charlielye
force-pushed
the
cl/ipc-5-avm-cutover
branch
from
June 26, 2026 12:43
beff275 to
25da297
Compare
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.
Summary
Stacked on PR 3b (#23196). Adds an out-of-process `aztec-kvdb` binary that owns LMDB and serves it over UDS / MPSC SHM with the same `TypedMessage
` wire format `yarn-project/native/MsgpackChannel` already speaks. AztecLMDBStoreV2 will be migrated from `NativeLMDBStore` (NAPI) to `KvdbBackend` (IPC) in a follow-up commit on this same PR.
This first commit is inert: the binary builds and is shipped, but nothing in yarn-project uses it yet.
Why
After PR 3b lands, only one load-bearing NAPI consumer remains: the LMDB store used by archiver, p2p, pxe, slasher, and validator-ha-signer. Moving it out of NAPI removes the last embedding of a C++ subsystem in the Node.js process. The NAPI module is reduced to a thin SHM transport stub (`MsgpackClient`/`MsgpackClientAsync`, ~400 LOC) — pure IPC plumbing, no domain logic.
SHM is the production transport (~1–10 µs round-trip via futex doorbell); UDS is the dev/test fallback. This also activates the SHM code-path that has been dead in production since PR 1.
What's in this PR (so far)
C++:
TypeScript (bb.js):
What's still ahead in this PR
Stack
Test plan
Recreated from original PR #23238. Same realignment caveats as PR above.