diff --git a/spec/diagrams/ntf-router.svg b/spec/diagrams/ntf-router.svg index fb35fe804..b42429459 100644 --- a/spec/diagrams/ntf-router.svg +++ b/spec/diagrams/ntf-router.svg @@ -52,14 +52,19 @@ net - TNEW, TVFY, TRPL, TDEL - SNEW, SCHK, SDEL + TNEW, TVFY, TCHK, TRPL, TDEL, TCRN + SNEW, SCHK, SDEL, PING - + store + + + pushQ + @@ -104,9 +109,9 @@ pushQ - - store + store subscriberSubQ - tokens / subscriptions / tokenLastNtfs - (in-memory TMap + PostgreSQL) + (PostgreSQL) StoreLog (optional) + + + NtfStore (STM TMap) + - Command Processing (FNEW, FADD, FPUT, FGET, FACK, FDEL) + Command Processing (FNEW, FADD, FPUT, FGET, FACK, FDEL, PING) Disk Storage - filesPath / senderId / data + filesPath / base64(senderId) quota-managed via usedStorage TVar diff --git a/spec/routers.md b/spec/routers.md index f146ca8af..b66c52ce4 100644 --- a/spec/routers.md +++ b/spec/routers.md @@ -95,10 +95,11 @@ sequenceDiagram HS->>S: server DH key + version S->>CP: FNEW (create data packet) - CP->>FS: create FileRec, reserve quota + CP->>FS: create FileRec CP->>S: sender ID + recipient IDs S->>CP: FPUT (send encrypted data) + CP->>FS: reserve quota CP->>D: write to disk CP->>FS: commit filePath CP->>S: OK