Obvs icon indicating copy to clipboard operation
Obvs copied to clipboard

More Backends

Open JuneKelly opened this issue 6 years ago • 15 comments

We should have more backends, because this project aims to be maximally useful in a variety of architectures. Perhaps:

  • Mnesia
  • Postgres (or a generic SQL backend? Probably Ecto)
  • MongoDB
  • ???

JuneKelly avatar Aug 10 '17 09:08 JuneKelly

I can help with ecto backend. Could you please create a repo for me?

sobolevn avatar Aug 11 '17 21:08 sobolevn

@sobolevn, done (https://github.com/ExHammer/hammer-backend-ecto) and thanks :)

JuneKelly avatar Aug 12 '17 19:08 JuneKelly

Just a brain-wave, a Riak backend would also be cool.

JuneKelly avatar Sep 06 '17 11:09 JuneKelly

One that uses distributed Erlang with no external dependency would be useful :)

lpil avatar Oct 22 '17 10:10 lpil

There is ets backend. https://github.com/ExHammer/hammer/blob/master/lib/hammer/backend/ets.ex

sobolevn avatar Oct 22 '17 10:10 sobolevn

But it's hard coded to be registered locally rather than globally, so it cannot be used in this way in a straightforward manner.

lpil avatar Oct 22 '17 10:10 lpil

Good point, I’ll look into making it distribu-able this week

JuneKelly avatar Oct 22 '17 16:10 JuneKelly

Thank you

lpil avatar Oct 22 '17 17:10 lpil

I'm also wondering if maybe an Mnesia backend would be appropriate for the same use-case. Will investigate also.

JuneKelly avatar Oct 29 '17 10:10 JuneKelly

Mnesia has some flaws, such as struggling with network partitions. What would we gain by using Mnesia over plain old ETS?

lpil avatar Oct 29 '17 15:10 lpil

Update: I've had a hard time finding energy and time to work on this, but it's still very much on my radar. Will try to get distributable-ets done over the december holidays. Pull-requests always welcome of course, but I'm hoping to get some traction on this soon. :)

JuneKelly avatar Dec 19 '17 10:12 JuneKelly

Cool, thank you :)

We're using Redis in production at the moment and it's working really well so please don't feel any urgency from us

lpil avatar Dec 19 '17 11:12 lpil

@lpil , that's great to hear :) I'm glad it's working well in production.

JuneKelly avatar Dec 21 '17 09:12 JuneKelly

Mnesia backend started here: https://github.com/ExHammer/hammer-backend-mnesia

JuneKelly avatar Dec 24 '18 21:12 JuneKelly

Any interest in a Nebulex adapter?

jared-mackey avatar Feb 18 '22 21:02 jared-mackey

@jared-mackey seems like an interesting idea. what backend are currently supported with Nebulex?

epinault avatar Aug 31 '23 22:08 epinault

It would be nice to have atomics backend (like https://github.com/farhadi/rate_limiter does it) with crdt distribution.

florius0 avatar Jan 31 '24 11:01 florius0

@florius0 see https://github.com/ExHammer/hammer/pull/72 . Seems. @ruslandoga was looking at that but not sure if he made any progress on cutting his MR smaller

epinault avatar Feb 01 '24 00:02 epinault