What would be your choice of DB for a commenting system?
Reason I ask is I've heard certain commenting systems use a graph database and others an RDBMS. I've zero experience building commenting systems with either.
Thank you.
Reason I ask is I've heard certain commenting systems use a graph database and others an RDBMS. I've zero experience building commenting systems with either.
Thank you.
> It has to scale to tens, possibly hundreds of thousands of simultaneous users
My suggestion : just use a database you are familiar with and start building. Most comment systems use a rdbms, so that's a safe bet. Use a graph database only if you find a strong technical reason to do so, not because another company is using it.
https://github.com/skx/e-comments/
I just used SQLite, but psql/mysql would work just as well. Handling comments, even threaded ones, isn't likely to be too heavyweight.
If you need extra performance later on, you can always add an extra layer.
Only use non-rdbms when you need something special, say, full-text-search, or insane performance (in-memory-kv) etc.