frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: SQLite for Rivet Actors – one database per agent, tenant, or document

https://github.com/rivet-dev/rivet
21•NathanFlurry•2h ago
Hey HN! We posted Rivet Actors here previously [1] as an open-source alternative to Cloudflare Durable Objects.

Today we've released SQLite storage for actors (Apache 2.0).

Every actor gets its own SQLite database. This means you can have millions of independent databases: one for each agent, tenant, user, or document.

Useful for:

- AI agents: per-agent DB for message history, state, embeddings

- Multi-tenant SaaS: real per-tenant isolation, no RLS hacks

- Collaborative documents: each document gets its own database with built-in multiplayer

- Per-user databases: isolated, scales horizontally, runs at the edge

The idea of splitting data per entity isn't new: Cassandra and DynamoDB use partition keys to scale horizontally, but you're stuck with rigid schemas ("single-table design" [3]), limited queries, and painful migrations. SQLite per entity gives you the same scalability without those tradeoffs [2].

How this compares:

- Cloudflare Durable Objects & Agents: most similar to Rivet Actors with colocated SQLite and compute, but closed-source and vendor-locked

- Turso Cloud: Great platform, but closed-source + diff use case. Clients query over the network, so reads are slow or stale. Rivet's single-writer actor model keeps reads local and fresh.

- D1, Turso (the DB), Litestream, rqlite, LiteFS: great tools for running a single SQLite database with replication. Rivet is for running lots of isolated databases.

Under the hood, SQLite runs in-process with each actor. A custom VFS persists writes to HA storage (FoundationDB or Postgres).

Rivet Actors also provide realtime (WebSockets), React integration (useActor), horizontal scalability, and actors that sleep when idle.

GitHub: https://github.com/rivet-dev/rivet

Docs: https://www.rivet.dev/docs/actors/sqlite/

[1] https://news.ycombinator.com/item?id=42472519

[2] https://rivet.dev/blog/2025-02-16-sqlite-on-the-server-is-mi...

[3] https://www.alexdebrie.com/posts/dynamodb-single-table/

Comments

swaminarayan•47m ago
“sqlite per actor” feels like very clean actor level isolation. the part I am more curious about is how you recommend handling cross actor queries.
NathanFlurry•40m ago
We built everything with this architecture internally already at Rivet. It's less common than you might expect to have to query cross-DB in practice.

However, we are planning on building a query engine that can operate over multiple databases. One option we're considering is exposing Rivet SQLite as a DuckDB datasource: https://duckdb.org/docs/stable/data/data_sources

nudpiedo•24m ago
I get where you come from, but really needs it to be a whole SQLite instance per database? Wouldn’t be more efficient just logic separation in a larger DB?

Better usage of resources and it always allows a parent style agent do complex queries (e.g: intersection of two different actors data doesn’t need to fetch all, copy and do it in buggy non sql code)

fastball•22m ago
We recently replaced an isolated feature built on Durable Objects with Rivet Actors, to allow for much better interop with the rest of our infra (which is built on AWS/Vercel), and are happy with it so far.

There have been some small issues but nothing show-stopping, and the Rivet team has been very responsive to help get things sorted (or help us understand when it was us doing something wrong).

Not using the SQLite datastore yet, but I am excited about the possibilities!

How I'm Using Local Large Language Models

https://www.jvt.me/posts/2026/02/28/local-ai/
1•zdw•2m ago•0 comments

Qwen3.5-35B-A3B-GGUF from Unsloth

https://huggingface.co/unsloth/Qwen3.5-35B-A3B-GGUF
1•vincirufus•3m ago•0 comments

Monitor the Situation

https://monitor-the-situation.com/middle-east
1•bookofjoe•3m ago•0 comments

Claw21 – Blackjack for Agents

https://clawhub.ai/stainlu/blackjack
1•stainlu•5m ago•0 comments

C-Mera

https://github.com/kiselgra/c-mera
1•tosh•6m ago•0 comments

Attention Military Members and Veterans: You Have Been Defrauded

https://beendefrauded.substack.com/p/attention-military-members-and-veterans
1•htwatchdogs•11m ago•0 comments

The March of Nines

https://sruthipoddutur.substack.com/p/the-march-of-nines-part-1
9•sruthipsr•11m ago•0 comments

Kbtz: A task tracker and TUI workspace for coding agents

https://github.com/virgil-king/kbtz
1•ostrich_network•12m ago•0 comments

Switch between different Claude Code profiles

https://github.com/kimrgrey/claudini
1•kimrgrey•13m ago•0 comments

Wish List: SSH Keys in Passwords

https://sixcolors.com/post/2026/01/wish-list-ssh-keys-in-passwords/
1•watermelon0•13m ago•0 comments

Tablesaw: Java Dataframe and Visualization Library

https://github.com/jtablesaw/tablesaw
1•saikatsg•14m ago•0 comments

Who Will Command the Robot Armies? (2016)

https://idlewords.com/talks/robot_armies.htm
1•diafygi•14m ago•1 comments

Show HN: I dump all my private notes into an LLM and tell it to build me a site

https://tresbuchet.com/
1•elijahlucian•14m ago•0 comments

If code is cheap, intent is the currency

https://zknill.io/posts/commit-message-intent/
1•zknill•16m ago•0 comments

In the Northwest, Polyamory Finds Something New: Legal Protection

https://www.nytimes.com/2026/02/28/us/pacific-northwest-polyamory-legal-protection.html
1•geox•18m ago•0 comments

Ask HN: If AI boosts productivity so much, why would a company lay anyone off?

1•ex-aws-dude•18m ago•2 comments

Jargonism: A Business English Dictionary

https://jargonism.com
1•hliyan•21m ago•0 comments

AI writing just isn't good enough – and if you're using it, everyone can tell

https://www.theglobeandmail.com/opinion/article-ai-writing-just-isnt-good-enough-and-if-youre-usi...
2•paulpauper•22m ago•0 comments

Secretary of Defense bans military from attending Ivy League Schools

https://www.foxnews.com/politics/hegseth-bans-military-attending-princeton-columbia-other-elite-u...
2•hmokiguess•22m ago•0 comments

Show HN: Mdspec.dev – open-source spec management platform for technical teams

https://mdspec.dev
1•zameermfm•23m ago•0 comments

If A.I. Is a Weapon, Who Should Control It?

https://www.nytimes.com/2026/02/28/opinion/artificial-intelligence-trump-hegseth-anthropic.html
2•paulpauper•23m ago•0 comments

What Your DNA Reveals About the Sex Life of Neanderthals

https://www.nytimes.com/2026/02/26/science/human-evolution-neanderthal-sex.html
1•paulpauper•23m ago•0 comments

Show HN: Which VCs are Tier 1?

https://vc-compare.vercel.app/
1•nezaj•25m ago•0 comments

Last Year in Container Security

https://nanovms.com/blog/last-year-in-container-security
2•valyala•25m ago•0 comments

Should AI chatbots have ads? Anthropic says no

https://arstechnica.com/ai/2026/02/should-ai-chatbots-have-ads-anthropic-says-no/
1•joozio•26m ago•0 comments

Agentic Engineering – Choosing the Right Level of Guidance

https://potocki.dev/posts/agentic-engineering-choosing-the-right-level-of-guidance/
1•tazer•27m ago•0 comments

GPL as the best licence

https://blog.hansenpartnership.com/gpl-as-the-best-licence-governance-and-philosophy/
2•lr0•27m ago•0 comments

Show HN: AIQuotaBar – See Claude/ChatGPT usage limits in your macOS menu bar

https://github.com/yagcioglutoprak/AIQuotaBar
2•toprak123•29m ago•1 comments

FreeBSD Home NAS, Part 14: Logs with VictoriaLogs and Alerts with VMAlert

https://rtfm.co.ua/en/freebsd-home-nas-part-14-logs-with-victorialogs-and-alerts-with-vmalert/
1•setevoy•29m ago•0 comments

Increase of AI bots on the Internet sparks arms race

https://www.wired.com/story/ai-bots-are-now-a-signifigant-source-of-web-traffic/
1•joozio•29m ago•0 comments