Phoenix Framework with Riak

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 PostgreSQL nowadays, I’ve not had a need for an untold monstrous amount of data munging needed that would make something like Riak shine and at the scales I work (~1tb/data) PostgreSQL well outperforms it.

Also Redis is pretty worthless, especially if you have PostgreSQL, as PostgreSQL can do everything Redis can do, and better, and can do a whole lot more!

Also, Riak is natively erlang, you can make native calls, though those are documented as breakable between versions and you have to run in-node, but even the client calls are utterly trivial. :slight_smile:

Ecto is built more for relational DB’s, for things like Riak, which is more of a KV-Store + Secondary Indexes + FileStorage + Concurrent MapReduce + plus plus plus, well Riak is an entirely different beast.

Now an up to date post. ^.^
I’d call Riak’s Client directly if you want to make an ecto interface. Also, Ecto2 made a huge paradigm shift, it will be mostly if not entirely a rewrite, I’d probably just rewrite.

Jut call the erlang client, the elixir one is probably just a thin wrapper around it anyway and erlang is native in elixir since they are just different syntaxes on the same core.

I’m curious of this. In my testing Riak is only suited for utterly massive read-writes and distributed mapreduce, potentially as a KV file storage as well. These are not use-cases I’ve had as of yet that PostgreSQL’s been unable to fulfill for me yet.