Elixir cachex distributed cache in a phoenix cluster mode app

I have my nodes connected running on fly.io and can see them in live dashboard when they autostart.

I want to use cachex distributed cache feature but from what I understand I need to give it a list of nodes on start. Not all of my nodes are up and they will scale in and out. How do I configure the nodes for cachex on fly.io ?

Or is there away for me to get a list of all the nodes in my cluster to which I can send a request, then I can probabaly make an endpoint to purge certain keys, as invalidation is the major issue for inconsistency

It looks like support for dynamic nodes with Cachex is in progress at the moment.

Here’s the GitHub issue where it’s discussed: Dynamic Nodes in distribution · Issue #246 · whitfin/cachex · GitHub

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.