| ▲ | loxs 3 days ago | |||||||
After 2 years in production with a small (but write heavy) web service... it's a mixed bag. It definitely does the job, but not having a DB server does have not only benefits, but also drawbacks. The biggest being (lack of) caching the file/DB in RAM. As a result I have to do my own read caching, which is fine in Rust using the mokka caching library, but it's still something you have to do yourself, which would otherwise come for free with Postgres. This of course also makes it impossible to share the cache between instances, doing so would require employing redis/memcached at which point it would be better to use Postgres. It has been OK so far, but definitely I will have to migrate to Postgres at one point, rather sooner than later. | ||||||||
| ▲ | TekMol 2 days ago | parent | next [-] | |||||||
How would caching on the db layer help with your web service? In my experience, caching makes most sense on the CDN layer. Which not only caches the DB requests but the result of the rendering and everything else. So most requests do not even hit your server. And those that do need fresh data anyhow. | ||||||||
| ||||||||
| ▲ | kopirgan 2 days ago | parent | prev [-] | |||||||
I am no expert, but SQLite does have in memory store? At least for tables that need it..ofc sync of the writes to this store may need more work. | ||||||||