r/sqlite • u/alexrada • Mar 10 '26
What's the real option to have sqlite run as a server?
Is it only turso libsql?
I'm just looking for a server like solution that ideally could be replicated to S3.
Considering sqlite because requirements:
- data segregation tenant physical isolated (50k now)
- per tenant encryption
Workload:
- much more reads than writes
- 1000-2000 (max 5000 entries per tenant)
3
Upvotes
8
u/Aggressive_Ad_5454 Mar 11 '26
For a read-write application, the .sqlite files need to be on a local file system, not a networked one.
4
u/arm089 Mar 11 '26
Check rqlite
4
u/lhxtx Mar 11 '26
Use Postgres?
2
u/ImpossibleSlide850 Mar 11 '26
Postgress
2
u/rubn-g Mar 12 '26
Maybe you could check Turso
2
u/hazyhaar Mar 13 '26
I run everything on SQLite and haven't yet met a situation where it's not efficient.
Very high volumes included. Shard handling can be tricky, but gets the job done.
Any remote work, db sync, REST — can be done with plain Go or good old-fashioned tooling.
I actually solved something similar in Go: one
.dbfile per tenant, flat layout, LRU connection pool with idle reaper so you're not holding thousands of open file descriptors.Routing is just a
dossierID→ file path lookup. CGO-free, works well at scale.1
u/Affectionate-Wind144 Mar 14 '26
What's the problem with using LibSQL?
-2
u/Sjsamdrake Mar 11 '26
Yeah, please use a real database. Postgres or MySQL or something.
2
u/[deleted] Mar 13 '26
[removed] — view removed comment