SQLite basically runs on everything and doesn't need a server to work with it.
If you use MySQL or Postgres, you need a lot more dependencies.
With a network share, you already configured authentication. SQLite would be easier and maybe even more secure since it does not increase the attack surface?
however, SQLite is not really meant to be used concurrently efficiently.
Like, using a front program to control traffic flow for queries to read and write.
I haven't played with shares for a long time. But if I remember only one node can write to a file at once. That's also to say if file read/write performance will be any good for this use case.
NFS or Samba servers have their own issues with attack surface.
Please rethink your idea please.
- local speed = 2 seconds
- NFS to another VM = 31 seconds
- NFS via localhost = 17 secondsNFS is just about impossible (except in narrowly restricted situations)