12 points · by basilikum · 3w ago · 10 comments
not saying don’t use it, just saying if you have no users or less than a million, you probably don’t need it.
if some analyst requests a database to analyze, you can easily run a batch importer into a read only sql db thing of your analyst’s or orgs preference.
even postgres can be dropped, it’s fine
There arw usecases that are fine with using JSON or something similar as a store rather than a database, but databases absolutely make sense below 1mio users. You could argue that a lot of those cases could do with SQLite, but no database is just not a serious option for a lot of things. You will end up reinventing a database but in shitty. Consistency, atomic transaction, indexes etc. are not niche use cases.
For example if it's a write only metric that you'll only ever analyze in a future stage of your company, you just write it and store it in the node that handles it.
If you need to read the data for applciation logic, you can build an index, replicate it along all of your nodes, partition based on the index.
And btw that last thing, (which isn't particularly complex), is something that you'll need at 100k+ users. Below that you can live just fine with just 1 server, maybe 2 redundant symmetric servers tops.