frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Aegis-DB – Multi-paradigm database in Rust,in production

https://github.com/AutomataNexus/Aegis-DB
1•AutomataNexus•2h ago

Comments

AutomataNexus•2h ago
Hey HN, I'm Andrew. I built Aegis-DB — a database that handles SQL, key-value, document, time series, graph, and event streaming in a single Rust binary. It's been running in production on 50+ Raspberry Pi edge controllers across commercial buildings for months.

*The real story:* I built an entire building automation ecosystem from scratch. NexusBMS is the central platform (won an InfluxDB hackathon with it — runs InfluxDB 3.0 OSS alongside Aegis-DB). 16+ facilities including Taylor University, Element Labs, Byrna Ammunition, St. Jude Catholic School, Heritage Point Retirement Facilities (two cities), and more. Over 120 pieces of equipment — air handlers, boilers, cooling towers, pumps, DOAS units, natatorium pool units, exhaust fans, greenhouses.

The edge controllers are 50+ Raspberry Pi 4/5s running my custom NexusEdge software — Rust hardware daemons for I2C, BACnet, and Modbus communications, direct HVAC equipment control via analog outputs, 24V triacs, 0-10V inputs, 10K/1K thermistor inputs, and dry contact inputs. Custom control logic per equipment type. Pi 5s have Hailo NPU chips running larger ML models for predictive maintenance, Pi 4s run smaller AxonML Rust inference models (my own ML framework — also open source).

Each Pi runs Aegis-DB locally for sensor data collection, time series storage, equipment state, and real-time alert streaming. Those edge instances replicate to the central Aegis-DB server using CRDTs for conflict-free synchronization. OTA rolling updates push new versions across the fleet without downtime.

The edge deployment is what drove the design, but Aegis-DB isn't just for Pis. It's the primary database for my PWAs, mobile apps, and server-side services too. The central NexusBMS server runs it. My laptop runs it for development. It's a general-purpose multi-paradigm database that happens to also scale down to a Raspberry Pi — which is a harder constraint to satisfy than scaling up.

*What it actually is:*

- Full SQL engine (sqlparser crate) with cost-based planner, volcano-model executor, B-tree/hash indexes, index-accelerated SELECT/UPDATE/DELETE, plan cache (LRU 1024), MVCC with snapshot isolation, WAL, VACUUM/compaction - Direct execution API — closure-based indexed updates that bypass SQL parsing entirely (this is how the fund transfer benchmark hits 758K TPS) - KV store on DashMap (12.3M reads/sec, 203K/sec over HTTP, optional TTL per key) - Document store with MongoDB-style query operators ($eq, $gt, $in, $regex, $and, $or, etc.), collection-level hash/B-tree indexes, sort/skip/limit/projection - Time series with Gorilla compression (delta-of-delta timestamps + XOR floats), retention policies, automatic downsampling, atomic persistence with crash recovery - Graph engine with adjacency lists for O(degree) traversal, label and relationship indexes, property bags on nodes and edges - Pub/sub streaming with persistent subscriptions, consumer groups, CDC with before/after images - Raft consensus + 8 CRDT types (GCounter, PNCounter, GSet, TwoPSet, ORSet, LWWRegister, MVRegister, LWWMap) + vector clocks + hybrid clocks + 2-phase commit + consistent hashing (HashRing, JumpHash, Rendezvous) - OTA rolling updates — followers first, leader last, SHA-256 binary verification, automatic rollback on health check failure - Multi-database isolation — each app gets its own namespace, auto-provisioned on first query, separate persistence - Query safety limits (max rows, query timeout) enforced at executor level - Bulk import (CSV/JSON) for SQL tables, document collections, and KV pairs - Encrypted backups (AES-256-GCM) with restore and backup management - Full web dashboard (Leptos/WASM) — cluster monitoring, data browsers for every paradigm, query builder, user/role management, activity feed, alerts - Python SDK (async, aiohttp), JavaScript/TypeScript SDK (fetch-based), Grafana data source plugin - CLI with interactive SQL shell, node registry with auto-discovery, multi-format output (table/JSON/CSV)

*What makes it different from SurrealDB / other multi-model databases:*

- *Compliance engine.* Built-in GDPR, HIPAA, CCPA, SOC 2, FERPA support with actual REST endpoints — not documentation about how you could do compliance. GDPR right to erasure with cryptographic deletion certificates. HIPAA PHI column-level classification (6 levels). Consent lifecycle management (12 purpose types, full audit trail). Breach detection with anomaly thresholds and incident response workflow. Over 25 compliance endpoints under `/api/v1/compliance/`. - *Edge-first design.* Runs on a Raspberry Pi at ~50 MB RSS. 8 CRDT types for conflict-free edge-to-central replication. OTA rolling updates across a fleet. Offline-first — Pis keep working when network drops, sync when it returns. - *Security from day one.* TLS 1.2/1.3 (rustls), Argon2id (19MB memory-hard), RBAC with 25+ permissions, OAuth2/OIDC + LDAP/AD, MFA (TOTP with backup codes), HashiCorp Vault (Token/AppRole/Kubernetes auth), token bucket rate limiting (30/min login, 1000/min API), security headers (CSP, HSTS, X-Frame-Options), encrypted backups (AES-256-GCM), cryptographic audit log verification, request ID tracing. - *Actually fast.* 758K TPS fund transfers (7x SpacetimeDB). 12.3M KV reads/sec. 203K KV ops/sec over HTTP. Direct execution API for hot paths that bypasses SQL entirely.

*Performance (engine-level, single node):*

- SQL inserts: 223K rows/sec - KV reads: 12.3M ops/sec | KV writes: 3.97M ops/sec | KV over HTTP: 203K ops/sec - Fund transfers: 758K TPS zero contention (7x SpacetimeDB), 2.5M TPS high contention (24x SpacetimeDB) - HTTP API: 80K SQL inserts/sec, 40K reads/sec, 245μs avg KV latency

*License:* BSL 1.1 (free for everything except reselling as a hosted DBaaS). Converts to Apache 2.0 in 2030.

13 Rust crates, ~60K LOC, 634 tests. Happy to answer questions about the edge deployment architecture, the CRDT replication, compliance features, or anything else.

Kansas and AI

https://www.tbray.org/ongoing/When/202x/2026/02/27/Kansas-and-GenAI
1•cratermoon•22s ago•0 comments

It's incredibly easy to game Twitter's trending news algorithm

https://muddy.jprs.me/notes/2026-02-27-it-s-incredibly-easy-to-game-twitter-s-trending-news-algor...
1•jprs•28s ago•0 comments

Show HN: AgentLookup – A public registry where AI agents find each other

https://agentlookup.dev
1•peureka•36s ago•0 comments

From Defense AI Drift to Policy Enforcement: Why I Built Firebreak

https://eric.mann.blog/from-defense-ai-drift-to-policy-enforcement-why-i-built-firebreak/
1•eamann•7m ago•0 comments

Israel Says Iran Supreme Leader Khamenei Is Dead

https://www.axios.com/2026/02/28/iran-khamenei-killed-israel
2•doener•8m ago•0 comments

Show HN: Pending – a tiny pure-Go in-memory deferred task scheduler

https://github.com/kahoon/pending
1•kahoonster•8m ago•1 comments

Show HN: Potatoverse platform for webapps, SQLite and static binary

https://github.com/blue-monads/potatoverse
4•born-jre•9m ago•0 comments

Iran Monitor | Real-Time Osint Dashboard for Iran

https://www.iranmonitor.org/
1•wizardforhire•11m ago•0 comments

Donald Trump Is the Crypto President. Why Is It Struggling?

https://www.nytimes.com/2026/02/26/opinion/crypto-trump-bitcoin-clarity-genius.html
1•coloneltcb•12m ago•0 comments

An Open Letter to the Department of War and Congress

https://app.dowletter.org
1•-_-•12m ago•0 comments

Our Agreement with the Department of War

https://openai.com/index/our-agreement-with-the-department-of-war
5•surprisetalk•12m ago•1 comments

Trump orders government to stop using Anthropic in battle over AI use

https://www.bbc.com/news/articles/cn48jj3y8ezo
6•devonnull•15m ago•0 comments

Bad Apple but it's a dynamic boids simulation

https://priyavkaneria.com/posts/Bad-apple-but-its-dynamic-boids-simulation/
1•diginova•16m ago•0 comments

Tell HN: My daily game won a Players Choice Award

3•paulhebert•16m ago•1 comments

How China's Communist Party seized power in 1949 (due to Soviet support)

https://www.economist.com/culture/2026/02/26/how-chinas-communist-party-seized-power-in-1949
2•marojejian•18m ago•1 comments

You can log into 28 vintage computer systems in the browser for free

https://www.tomshardware.com/video-games/retro-gaming/you-can-log-into-28-vintage-computer-system...
2•ohjeez•18m ago•0 comments

Target will stop selling cereals with synthetic colors by end of May

https://www.sfgate.com/business/article/target-to-stop-selling-cereals-with-certified-21945159.php
1•tokyobreakfast•20m ago•0 comments

War powers debate intensifies after Trump Iran attack without Congress approval

https://apnews.com/article/congress-war-powers-trump-iran-constitution-37ec6685d9ded1d467a719f91e...
2•SilverElfin•21m ago•0 comments

A Cookie for Dario? – Anthropic and selling death

https://www.anildash.com/2026/02/27/a-cookie-for-dario/
1•only_in_america•22m ago•0 comments

Why reinforcement learning breaks at scale, and how a new method fixes it

https://techxplore.com/news/2026-02-scale-method.html
1•brandonb•22m ago•0 comments

What Art Is Doing

https://www.symmetrybroken.com/what-art-is-doing/
1•riemannzeta•24m ago•0 comments

Simulated Reality: Quantum Mechanics, Brain-Machine Interfaces, Transhumanism

https://simulatedrealitybook.com/
1•thebojda•25m ago•0 comments

Ask HN: Apart from coding, what do you use AI for daily?

1•kantord•27m ago•2 comments

Qwen3.5 122B and 35B models offer Sonnet 4.5 performance on local computers

https://venturebeat.com/technology/alibabas-new-open-source-qwen3-5-medium-models-offer-sonnet-4-...
4•lostmsu•28m ago•1 comments

Data-Driven Nutrition

https://www.empirical.health/blog/biomarker-driven-nutrition/
2•brandonb•28m ago•0 comments

IEEE robot videos (video Friday)

https://spectrum.ieee.org/quadruped-farming-robots
1•bsrkf•29m ago•0 comments

Scientists deliver new molecule for getting DNA into cells

https://phys.org/news/2026-02-scientists-molecule-dna-cells.html
1•geox•29m ago•0 comments

Discord's Fall Would Suck for TTRPGs

https://www.gamespot.com/articles/discords-fall-would-suck-for-ttrpgs/1100-6538456/
1•1659447091•30m ago•1 comments

Is using AI for domestic defense more and more nullifying the second amendment?

1•bdelmas•32m ago•1 comments

Tether: An inter-LLM mailbox MCP tool

https://github.com/latentcollapse/Tether
1•LC_58008•33m ago•1 comments