7 ms·
What are the best nosql databases? half of our devs dont like sql much (ive tried to make them use orms too, didnt work)
by Zomatree 5y ago
What are the best nosql databases? half of our devs dont like sql much (ive tried to make them use orms too, didnt work)
- rusht 5y ago“Best” depends on your use case. I don’t even think a SQL database is an option for a chat app since it’s write heavy. FB Messenger uses HBase and Discord uses Cassandra and they’ve done their research at scale, so those could be possible options.
- Felk 5y ago> half of our devs dont like sql much 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.
- nicoburns 5y agoI'd probably recommend ScyllaDB for NoSQL. It's a replacement for Cassandra (which it's mostly compatible with) which is more or less the de facto standard for large NoSQL deployments at big companies, but it's written in C++ rather than Java so it's even faster (and has more consistent latency) and easier to deploy. And it's been around long enough at this point that it's established and not likely to just disappear. 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.
- e12e 5y ago> half of our devs dont like sql much 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/migrations/init.rs https://github.com/revoltchat/delta/blob/master/src/database... https://github.com/revoltchat/delta/blob/master/src/database/entities/invites.rs https://github.com/revoltchat/delta/blob/master/src/database...
- carlhjerpe 5y agounQLite or SQLite would be a great way to encourage self-hosting.
- lpcvoid 5y agoPeople opting to use a meme "database" instead of a real DBMS is kind of a large red flag to me. I am hard pressed to imagine data more relational than chat messages and user accounts.
- deleted 5y ago[deleted]
- Kiro 5y agoThere's a reason all the big chat apps are using NoSQL.
- lpcvoid 5y agoI refuse to believe this is due to technical reasons, as long as we are talking ACID compliant data storage. A well configured PostgreSQL will blow MongoDB out of the water while actually caring about your data.