Re:How the SQLite virtual machine works
by tptacek on Wednesday September 07, 2022 @02:40PM
(#32754554)
Having a single database service as a write master is already commonplace in HA Postgres.
Re:How the SQLite virtual machine works
by Thaxll on Wednesday September 07, 2022 @03:12PM
(#32755117)
Right but they do that over the network not using the filesystem.
Re:How the SQLite virtual machine works
by tptacek on Wednesday September 07, 2022 @04:04PM
(#32755991)
I'm not sure what's complicated about this. Instead of exposing a database instance as the write master, you expose a service as the write master. You can even do it transparently, if your load balancing fabric cooperates: just arrange to have read replicas redirect write requests to the write master.
Re:How the SQLite virtual machine works
by avl999 on Wednesday September 07, 2022 @05:15PM
(#32757006)
With that setup you have essentially lost any benefits that SQLite provides, specifically any performance benefits by making a DB read/write a network call instead of a local call in the same process that manipulates some file on the same machine. You are closer to a postgres/mysql patterne except now your writes don't scale as well. What are we actually gaining with this setup other than perhaps easier administration of the "db service" compared to a mysql/postgres deployment?
Using SQLite for any serious webservices is bad thing because you can only have a single app. Then you have other tools on top of SQLite for those shortcoming.