Show HN: NodusDB – Zanzibar-style authorization, embedded like SQLite github.com...
Show HN @show
Show HN: NodusDB – Zanzibar-style authorization, embedded like SQLite github.com · 3 points · 0 comments · HN thread
TL;DR NodusDB is an open-source Python library (pip install nodusdb, 0.1.1 beta, Apache 2.0) that runs Zanzibar-style relationship-based permission checks in the process's own memory instead of a networked service. Its author reports checks at about 14 microseconds median against 4 ms for SpiceDB and OpenFGA, and says every write is also stored in a signed, hash-linked log in an S3 bucket that doubles as an Iceberg table.
- Checks run in-process against an in-memory relationship graph; the author reports 14 µs p50 at 100 checks/s over 560,497 relationships, versus 3.7 to 4.6 ms for SpiceDB 1.57.0 and OpenFGA 1.22.1 over the network.
- Benchmarks were run with the author's own AuthzBench tool on two c5.2xlarge machines; all engines had to match a reference evaluator on 50,001 checks before timing.
- Every write goes to a signed (Ed25519), hash-chained log in a user's S3 bucket, which serves as durability, the replication stream for followers, and an Iceberg v2 table queryable with DuckDB, Spark or pyiceberg.
- Revocation staleness is reported per mode: NodusDB followers without a token can grant a revoked permission for up to 0.30 s, while the OpenFGA cached mode showed 10.0 s.
- Known gaps: no LookupResources/LookupSubjects, union-only schema language, one writer at a time, manual failover, Python-only API, and each process holds the whole graph in memory.
- The engine is Java compiled with GraalVM Native Image into a C library called through ctypes, with wheels for Linux (glibc 2.34+), macOS 11+ and Windows x86_64.
Discussion The Show HN post has 3 points and no comments at the time of this digest, so there is no discussion to summarize yet.
#authorization #zanzibar #embeddedDatabase #python #benchmarks