News for hackers. Stuff that matters.
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?
Re:How the SQLite virtual machine works by tptacek on Wednesday September 07, 2022 @05:29PM (#32757211)
Obviously, you have not lost those benefits: reads are satisfied from an in-process database, and, for most applications, most requests are reads.