Initial import of zapier-docs-master from zapier monorepo
This commit is contained in:
commit
fbe057a28c
41 changed files with 565 additions and 0 deletions
9
modules/verae-archive-worm/NATS.md
Normal file
9
modules/verae-archive-worm/NATS.md
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
# NATS — verae-archive-worm
|
||||
|
||||
| Direction | Address | From / to | Body |
|
||||
|-----------|---------|-----------|------|
|
||||
| IN | `verae.archive.put` | splitter | `{ sha256, tenantId, kind, record, traceId }` |
|
||||
| IN | `verae.archive.query` | aggregator (broadcast) | `{ correlationId, sha256, tenantId, kinds[], traceId }` |
|
||||
| OUT | `verae.archive.reply.<correlationId>` | aggregator | `{ archiveId, sha256, records[], traceId }` **only if bloom.mightHave(sha256)** |
|
||||
|
||||
Subscribe to query **without** a shared queue group so every archive sees every query.
|
||||
14
modules/verae-archive-worm/SUMMARY.md
Normal file
14
modules/verae-archive-worm/SUMMARY.md
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# verae-archive-worm
|
||||
|
||||
**Job:** Append-only WORM store of metadata and files. Bloom filter: miss → stay silent on NATS.
|
||||
|
||||
**Expects:**
|
||||
- `verae.archive.put` — append record, add sha256 to bloom
|
||||
- `verae.archive.query` — `{ correlationId, sha256, tenantId, kinds[] }` (every node sees this; **not** a shared queue group)
|
||||
|
||||
**Sends:**
|
||||
- `verae.archive.reply.<correlationId>` **only on bloom hit** — `{ archiveId, sha256, records[] }`
|
||||
|
||||
**Does not** write to the blockchain.
|
||||
|
||||
**Test:** `npm test` — miss is `null`; put then query returns records.
|
||||
Loading…
Add table
Add a link
Reference in a new issue