# Mnesia vs (something like) Riak and CouchDB, differences, pros and cons, and what was your experience using them?

**URL:** <https://forum.devtalk.com/t/mnesia-vs-something-like-riak-and-couchdb-differences-pros-and-cons-and-what-was-your-experience-using-them/3754>\
**Category:** Backend Chat/Discussions\
**Tags:** riak, couchdb, mnesia, erlang\
**Created:** [4 November 2020 18:14 UTC](https://forum.devtalk.com/t/mnesia-vs-something-like-riak-and-couchdb-differences-pros-and-cons-and-what-was-your-experience-using-them/3754 "2020-11-04T18:14:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DevotionGeo](https://forum.devtalk.com/user_avatar/forum.devtalk.com/devotiongeo/32/1140_2.png) [@DevotionGeo](https://forum.devtalk.com/u/DevotionGeo)\
**Post date:** [4 November 2020 18:14 UTC](https://forum.devtalk.com/t/mnesia-vs-something-like-riak-and-couchdb-differences-pros-and-cons-and-what-was-your-experience-using-them/3754/1 "2020-11-04T18:14:17Z")

</div>

> **[basho/riak](https://github.com/basho/riak)**
>
> Riak is a decentralized datastore from Basho Technologies. - basho/riak

> **[apache/couchdb](https://github.com/apache/couchdb)**
>
> Seamless multi-master syncing database with an intuitive HTTP/JSON API, designed for reliability - apache/couchdb

---

<div class="post-metadata">

**Author:** ![AstonJ](https://forum.devtalk.com/user_avatar/forum.devtalk.com/astonj/32/7_2.png) [@AstonJ](https://forum.devtalk.com/u/AstonJ)\
**Post date:** [4 November 2020 19:54 UTC](https://forum.devtalk.com/t/mnesia-vs-something-like-riak-and-couchdb-differences-pros-and-cons-and-what-was-your-experience-using-them/3754/3 "2020-11-04T19:54:28Z")

</div>

I haven’t used any of those myself (Postgres has always been a good fit for me, and now is more featured than ever) but I guess it would depend on specific use cases as I imagine they all excel in specific areas.

I remember some good discussions on EF about them tho…

> **[What database WhatsApp used with Yaws?](https://elixirforum.com/t/what-database-whatsapp-used-with-yaws/10630/3?u=astonj)**
>
> As far as I know, Whatsapp relied on Mnesia only as database (for non media content). The Mnesia tables had to be fragmented to hold all data. Whatsapp contributed to some optimizations and improvements of the Erlang code base related to handling the...

> **[Why isn’t mnesia the most preferred database for use in Elixir/Phoenix?](https://elixirforum.com/t/why-isn-t-mnesia-the-most-preferred-database-for-use-in-elixir-phoenix/16811/4?u=astonj)**
>
> The short answer is: because it is not a traditional relational database. Postgres, MySQL or other RDBMS are preferred if you need persistence for general purpose systems. The main use cases I see (and use) for mnesia: Configuration data. If I...

> **[Mnesia vs others](https://elixirforum.com/t/mnesia-vs-others/536/3?u=astonj)**
>
> oh, Mnesia is very much different sort of database than what you would usually expect from relational database. I do not think I would use as a replacement for SQL database. SQL is generally really good for performing queries that span across table,...

> **[Phoenix Framework with Riak](https://elixirforum.com/t/phoenix-framework-with-riak/283/12?u=astonj)**
>
> Actually Riak has secondary indexes built in, they are part of the metadata that you can add to a row, at least the last time I used it, which was… oy probably a decade ago, I’m assuming Riak has developed even further since then, I just use...

> **[Mnesia vs Cassandra (vs CouchDB vs ...) - your thoughts?](https://elixirforum.com/t/mnesia-vs-cassandra-vs-couchdb-vs-your-thoughts/14593)**
>
> Looking at the stacks that existing large companies have used, WhatsApp internally uses Mnesia to store the messages, while Discord uses Cassandra. Also, in the past we’ve had quite a long discussion about ‘When to use Mnesia’ (vs. a traditional...
