Stephen Margheim - How (and why) to run SQLite in production

  Рет қаралды 3,462

Balkan Ruby

Balkan Ruby

Күн бұрын

Пікірлер: 7
@denissorn
@denissorn 15 күн бұрын
500 requests per second is ridiculously low for SQLite. I'm assuming this is b/c of RoR? Would it work faster simply b/c of a different DBMS?
@MattCCrampton
@MattCCrampton 2 ай бұрын
I guess I’m missing something fundamental after listening to this talk, I have two servers that talk to the same database. As far as I can tell using SQLite in prod does not scale past a single server. Is there something here I didn’t understand?
@Dominik-K
@Dominik-K 2 ай бұрын
That is true in itself, though offerings like Turso /LibSQL make it possible to have changes be synchronized between a central server and your web servers. Before Turso, I've deployed some applications that just redirected write traffic to a master server and used tools, like Litestream, to update the read replicas automatically. Using Sqlite with multiple databases and database files, one person tenant, made it possible to still distribute writes, since each server was the master of a few of those tenants. With tools like Turso the effort to implement such solutions goes down dramatically though
@TheRealCornPop
@TheRealCornPop 2 ай бұрын
And now your vendor locked in to Turso when you could have just used Postgresql
@vivekseth3210
@vivekseth3210 15 күн бұрын
You are correct. If you use SQLite, you cannot have 2 servers talk to the same database. The vast majority of applications will work just fine with 1 server, and can use vertical scaling to avoid performance issues. If your use-case absolutely needs >1 server, than sqlite might not be the right fit for you.
@hbobenicio
@hbobenicio Ай бұрын
I got curious on the reasoning about disabling THREADSAFE and using ALLOCA (dynamic stack allocation, which is generally a bad idea. that's why linux avoid VLA's, which are just really bad). What about we're on a multithreaded environment and what happens to sqlite it alloca fails?
Ruby on Rails + SQLite with Stephen Margheim
1:22:39
Aaron Francis
Рет қаралды 4,4 М.
DjangoCon Europe 2023 | Use SQLite in production
29:45
DjangoCon Europe
Рет қаралды 11 М.
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
SQLite Uses ByteCode (And For Good Reason)
19:07
ThePrimeTime
Рет қаралды 88 М.
Offline Storage in Blazor WebAssembly
40:59
IAmTimCorey
Рет қаралды 7 М.
Production SQLite with Turso and libSQL
1:02:53
Aaron Francis
Рет қаралды 11 М.
Building Production Applications Using Go & SQLite - Ben Johnson
39:18
Moving from Redis to SQLite with Mike Buckbee
54:38
Aaron Francis
Рет қаралды 10 М.
Why Can't We Make Simple Software? - Peter van Hardenberg
41:34
Handmade Cities
Рет қаралды 157 М.
7 Years of Software Engineering Advice in 18 Minutes
18:32
Ruby on Rails: The Documentary
44:16
Honeypot
Рет қаралды 267 М.