cpursley / walex

Postgres change events (CDC) in Elixir
MIT License
276 stars 14 forks source link

Set up Horde (for running on multiple nodes) #45

Closed cpursley closed 3 months ago

cpursley commented 7 months ago

https://github.com/cpursley/walex/issues/41

Similar to Nebulex

defmodule MyApp.Cache do
  use Nebulex.Cache,
    otp_app: :my_app,
    adapter: Nebulex.Adapters.Horde,
    horde: [
      members: :auto,
      process_redistribution: :passive
      # any other Horde options ...
    ]
end

But perhaps just in regular config instead of a module.

DaemonSnake commented 4 months ago

heya Any news on this ? Would be interested in using walex in a Failover multi-node setup. Would that be compatible with what you had in mind ?

cpursley commented 3 months ago

I did some initial experiment but didn't get too far. Ran into a situation where multiple nodes were subscribes and I was still getting duplicate events. I'd love to see progress on this and open to ideas / PRs.

cpursley commented 3 months ago

Best handled in user's application.