reminder that you can just use write() and read() from files instead of tables and everything will be fine, you don’t need to pull up a 100Mloc dependency to your project just to save data.
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.
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.
A database is not trivial software. If you need database features without your performance being complete shit for non-trivial datasets, you will need to effectively write your own db engine, which will most likely be much worse than postgress or sqlite unless you know a lot about writing databases and invest a lot of time into it.
Using a database is not the same as using the isEven API.
It varies a lot depending on the usecase, but in the end, answering those kinds of questions is what we get paid for.
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.
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