by Zomatree · 5y ago · 0 comments
Just a little specification around the that interface (Trait) will go a long way to making other backends possible and should make it much easier to know and manage the API contract a capable database must provide.
[0]: https://github.com/revoltchat/delta/blob/master/src/database...
As someone who has administered too many MongoDBs, those are some famous last words.
We (Discord) moved off of MongoDB for various reasons and are quite happy about that decision but managing Cassandra/Scylla clusters is not exactly a walk in the park either.
It's a shame your devs don't like SQL. It's probably my most useful developer skill. Saves so much time elsewhere. Having said that, a messaging app that you really want to scale HUGE (like Discord or Facebook Messenger huge) is one place where the NoSQL solutions are justified.
SQL the language or defined schema and relational data?
I'm honestly curious what it means to "not like" sql - and what/why one would prefer eg mongodb.
Ed: looks like they're running quite close to the db - but doesn't look like there's much tooling?
https://github.com/revoltchat/delta/blob/master/src/database...
https://github.com/revoltchat/delta/blob/master/src/database...
I'd suggest you and your team shouldn't rule out SQL-like databases, given a lot of very competent NoSQL databases have SQL-like syntaxes (say Cassandra or ScyllaDB, what Discord went with). And regarding hiding it behind an ORM, if you want or need cream of the crop performance not only do you need to have chosen a database that fits your needs, but you will also need to occasionally work very close to the database to avoid abstraction inversion situations.