samfrench

samfrench

We are reviewing our application architecture and wonder if there are recommendations or guidance on how we should connect the distributed nodes.

We have a lot of client applications which connect to a separate node to write content. This writer is registered as a global process which all of the clients send messages to. We have our own node discovery at the moment in the writer to connect to the client nodes.

In the future we plan to have one or two other specific nodes for other purposes, such as data APIs or monitoring. These are likely to be singular nodes as it is not a concern if they are unavailable.

We are using separate EC2 instances for reasons and can’t change this. We also have autoscaling meaning the IPs are not fixed or known beforehand. They can change at anytime when new nodes appear. Even the specific applications such as the writer get rotated periodically.

Are there any recommendations on how we should connect the nodes, either the clients to the specific applications, or which should form the cluster or manage the connection? We are ideally looking for something already maintained and not rolling out our own solution - unless our setup is unique which seems unlikely.

I have looked at a few libraries such as libcluster but not sure if that is the most suitable approach for connecting to a specific application. I have also seen a few which offer routing to nodes but they don’t seem to create the connection. I have seen a lot of examples where the same application is replicated and allows work to be distributed or for a failover approach. I couldn’t find much for specific applications having many clients.

Any guidance and recommendations on this is appreciated.

Where Next? Top

Trending in Questions Top

Blokh
Hey guys, I’ve got a huge CSV ( around 10 GB ) that needs to be processed hourly Do you guys have any suggestions what is the best prac...
New
kszambelanczyk
Hello! Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app. I creat...
New
Onor.io
I have what I’ve heard referred to as a “lookup table” in my database. This is a way of assigning codes to common values. One common lo...
New
Trolleger
What approach to take when sending live updates to “random” users Hi! I have a question, I have a little chat app, and when I create a DM...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
matt-savvy
Anyone here using Honeybadger? My Honeybadger account is being overwhelmed with noise from some bots. Seeing a lot of Bandit.HTTPError...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
wintermeyer
There are three potential reasons for members of this forum to have a look at https://vutuv.de You are tired or annoyed of LinkedIn. Yo...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews