# \#distributed

**URL:** https://forum.elixirforum.com/tag/distributed/1038.md

[Latest](https://forum.elixirforum.com/latest.md) · [Categories](https://forum.elixirforum.com/categories.md) · [Tags](https://forum.elixirforum.com/tags.md)

---

## [Once - Ecto type for globally unique 64-bits IDs generated by multiple Elixir nodes](https://forum.elixirforum.com/t/once-ecto-type-for-globally-unique-64-bits-ids-generated-by-multiple-elixir-nodes/68571)

<div class="topic-metadata">

**Author:** [@jsm](https://forum.elixirforum.com/u/jsm)\
**Replies:** 17\
**Last updated:** [November 22, 2026, 4:16pm UTC](https://forum.elixirforum.com/t/once-ecto-type-for-globally-unique-64-bits-ids-generated-by-multiple-elixir-nodes/68571 "2026-11-22T16:16:36Z")

</div>

Once is an Ecto type for generating 64-bit IDs across multiple Elixir nodes. IDs are unique within your application or domain, and you can generate them before inserting a record—handy when creating related records or wo…

---

## [NoNoncense - generate globally unique nonces in distributed Elixir](https://forum.elixirforum.com/t/nononcense-generate-globally-unique-nonces-in-distributed-elixir/68551)

<div class="topic-metadata">

**Author:** [@jsm](https://forum.elixirforum.com/u/jsm)\
**Replies:** 5\
**Last updated:** [November 7, 2026, 10:18am UTC](https://forum.elixirforum.com/t/nononcense-generate-globally-unique-nonces-in-distributed-elixir/68551 "2026-11-07T10:18:18Z")

</div>

Generate globally unique nonces (number-only-used-once) in distributed Elixir. These nonces are used to form the basis of an upcoming GUID generation package unique ID package Once, or in crypto operations that require n…

---

## [How I Keep Two Servers in Sync Without a Message Broker](https://forum.elixirforum.com/t/how-i-keep-two-servers-in-sync-without-a-message-broker/76973)

<div class="topic-metadata">

**Author:** [@ryanrborn](https://forum.elixirforum.com/u/ryanrborn)\
**Replies:** 0\
**Last updated:** [October 7, 2026, 9:07pm UTC](https://forum.elixirforum.com/t/how-i-keep-two-servers-in-sync-without-a-message-broker/76973 "2026-10-07T21:07:25Z")

</div>

A backtest worker and a live trading node had to share one broker rate limit and one set of OAuth tokens, and both only work if there’s exactly one of them in the cluster. Instead of adding Redis, I registered the token…

---

## [Hobbes - a low-level distributed database for the Elixir programming language](https://forum.elixirforum.com/t/hobbes-a-low-level-distributed-database-for-the-elixir-programming-language/73003)

<div class="topic-metadata">

**Author:** [@garrison](https://forum.elixirforum.com/u/garrison)\
**Replies:** 88\
**Last updated:** [September 21, 2026, 8:07am UTC](https://forum.elixirforum.com/t/hobbes-a-low-level-distributed-database-for-the-elixir-programming-language/73003 "2026-09-21T08:07:37Z")

</div>

Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage layer for Elixir applications. It’s designed to scale horizontally, replicate data acr…

---

## [Cluster singleton pattern](https://forum.elixirforum.com/t/cluster-singleton-pattern/76518)

<div class="topic-metadata">

**Author:** [@jola](https://forum.elixirforum.com/u/jola)\
**Replies:** 3\
**Last updated:** [September 1, 2026, 4:05pm UTC](https://forum.elixirforum.com/t/cluster-singleton-pattern/76518 "2026-09-01T16:05:38Z")

</div>

Wrote about how to safely run a globally unique process in an Elixir cluster, and a scary story from the past! Learn about :global for registering unique processes in a cluster, and where using it can go horribly wrong…

---

## [Distributed rate limiter with HRW](https://forum.elixirforum.com/t/distributed-rate-limiter-with-hrw/76165)

<div class="topic-metadata">

**Author:** [@jola](https://forum.elixirforum.com/u/jola)\
**Replies:** 0\
**Last updated:** [July 29, 2026, 12:04pm UTC](https://forum.elixirforum.com/t/distributed-rate-limiter-with-hrw/76165 "2026-07-29T12:04:29Z")

</div>

I’ve previously written about highest random weight. This post is a part of the distributed Elixir series that started with Cluster 101, taking the classic distributed rate limiter example but using HRW instead of ExHas…

---

## [Phi\_accrual - source-agnostic φ-accrual failure detector for Elixir/OTP](https://forum.elixirforum.com/t/phi-accrual-source-agnostic-accrual-failure-detector-for-elixir-otp/75269)

<div class="topic-metadata">

**Author:** [@Alex66](https://forum.elixirforum.com/u/Alex66)\
**Replies:** 0\
**Last updated:** [May 8, 2026, 10:47am UTC](https://forum.elixirforum.com/t/phi-accrual-source-agnostic-accrual-failure-detector-for-elixir-otp/75269 "2026-05-08T10:47:45Z")

</div>

Two libraries. φ-accrual failure detector (Hayashibara 2004) split into core + transport. phi\_accrual 1.0 — phi\_accrual | Hex Source-agnostic. Feed in heartbeat arrivals, read out φ. No transport, no membership, no thr…

---

## [Fusion - run Elixir code on remote servers via SSH, no deployment needed](https://forum.elixirforum.com/t/fusion-run-elixir-code-on-remote-servers-via-ssh-no-deployment-needed/74527)

<div class="topic-metadata">

**Author:** [@elpd](https://forum.elixirforum.com/u/elpd)\
**Replies:** 2\
**Last updated:** [March 5, 2026, 9:34pm UTC](https://forum.elixirforum.com/t/fusion-run-elixir-code-on-remote-servers-via-ssh-no-deployment-needed/74527 "2026-03-05T21:34:22Z")

</div>

Ten years ago I got curious: what would a Chef/Ansible-like tool look like built entirely in Elixir? One that uses Erlang distribution instead of agents installed on remote machines. I got most of it working — SSH tunne…

---

## [Resolve the pid of a remote registered process?](https://forum.elixirforum.com/t/resolve-the-pid-of-a-remote-registered-process/71784)

<div class="topic-metadata">

**Author:** [@garrison](https://forum.elixirforum.com/u/garrison)\
**Replies:** 4\
**Last updated:** [July 22, 2025, 8:39pm UTC](https://forum.elixirforum.com/t/resolve-the-pid-of-a-remote-registered-process/71784 "2025-07-22T20:39:26Z")

</div>

Alright, the actual use-case here is far too cursed to explain, but I wanted to call Process.exit/2 on a remote registered name. For a local registered name I can use Process.whereis/1 to get the pid and then send it the…

---

## [Implementing distributed user counters](https://forum.elixirforum.com/t/implementing-distributed-user-counters/71270)

<div class="topic-metadata">

**Author:** [@jaybe78](https://forum.elixirforum.com/u/jaybe78)\
**Replies:** 26\
**Last updated:** [June 16, 2025, 2:42pm UTC](https://forum.elixirforum.com/t/implementing-distributed-user-counters/71270 "2025-06-16T14:42:29Z")

</div>

Hello, I’ve recently developed a module that creates distributed user counters, based on what’s described in this post Basically, locally I use ETS table to atomically know how many people there is in a channel, then I…

---

## [Distributed cluster with libcluster and gossip protocol](https://forum.elixirforum.com/t/distributed-cluster-with-libcluster-and-gossip-protocol/67237)

<div class="topic-metadata">

**Author:** [@krisleech](https://forum.elixirforum.com/u/krisleech)\
**Replies:** 12\
**Last updated:** [June 11, 2025, 1:48pm UTC](https://forum.elixirforum.com/t/distributed-cluster-with-libcluster-and-gossip-protocol/67237 "2025-06-11T13:48:49Z")

</div>

We are deploying an Elixir application to production for the first time (first ever Elixir app for me :tada:) and realised that we need to cluster the nodes because things like Quantum will run on every instance, with a …

---

## [Distributed Elixir not connecting between AWS ECS Fargate tasks](https://forum.elixirforum.com/t/distributed-elixir-not-connecting-between-aws-ecs-fargate-tasks/71099)

<div class="topic-metadata">

**Author:** [@armanm](https://forum.elixirforum.com/u/armanm)\
**Replies:** 3\
**Last updated:** [June 10, 2025, 7:03am UTC](https://forum.elixirforum.com/t/distributed-elixir-not-connecting-between-aws-ecs-fargate-tasks/71099 "2025-06-10T07:03:01Z")

</div>

Setup: ECS tasks with Cloud Map service discovery Tasks accessible via service-name.namespace-name.local dns\_cluster is setup to query for tasks under service-name.namespace-name.local Security group allows port 4369 (…

---

## [Ra\_registry — A Distributed Registry based on Raft using rabbitmq/ra](https://forum.elixirforum.com/t/ra-registry-a-distributed-registry-based-on-raft-using-rabbitmq-ra/70448)

<div class="topic-metadata">

**Author:** [@eliasdarruda](https://forum.elixirforum.com/u/eliasdarruda)\
**Replies:** 7\
**Last updated:** [April 14, 2025, 9:05pm UTC](https://forum.elixirforum.com/t/ra-registry-a-distributed-registry-based-on-raft-using-rabbitmq-ra/70448 "2025-04-14T21:05:53Z")

</div>

Introduction Introducing RaRegistry: A Distributed, Raft-Backed Process Registry for Elixir If you’re building distributed Elixir applications and need a reliable, consistent process registry, RaRegistry is a new librar…

---

## [LiveBook remote execution within Kubernetes](https://forum.elixirforum.com/t/livebook-remote-execution-within-kubernetes/70426)

<div class="topic-metadata">

**Author:** [@duncanphillips](https://forum.elixirforum.com/u/duncanphillips)\
**Replies:** 6\
**Last updated:** [April 14, 2025, 6:41am UTC](https://forum.elixirforum.com/t/livebook-remote-execution-within-kubernetes/70426 "2025-04-14T06:41:27Z")

</div>

Hi, I’ve deployed my application, and livebook within kubernetes. I’m now trying to get livebook to work with remote execution against my running application, and I’m struggling to get the connection working. for the a…

---

## [BEAM Devs: Asking for Feedback on the Software Architecture Draft](https://forum.elixirforum.com/t/beam-devs-asking-for-feedback-on-the-software-architecture-draft/69638)

<div class="topic-metadata">

**Author:** [@Exadra37](https://forum.elixirforum.com/u/Exadra37)\
**Replies:** 6\
**Last updated:** [March 29, 2025, 2:24pm UTC](https://forum.elixirforum.com/t/beam-devs-asking-for-feedback-on-the-software-architecture-draft/69638 "2025-03-29T14:24:17Z")

</div>

In my first two UK roles, software architecture always included a failover system, an independent, exact copy of production running in another cloud or on-premises data center. This differs from redundancy within the …

---

## [Where can I learn distributed Erlang and Elixir?](https://forum.elixirforum.com/t/where-can-i-learn-distributed-erlang-and-elixir/68371)

<div class="topic-metadata">

**Author:** [@apoorv-2204](https://forum.elixirforum.com/u/apoorv-2204)\
**Replies:** 3\
**Last updated:** [December 27, 2024, 9:49am UTC](https://forum.elixirforum.com/t/where-can-i-learn-distributed-erlang-and-elixir/68371 "2024-12-27T09:49:01Z")

</div>

I want to learn various distributed stuff we can do with erlang, otp and elixir. Where can i Start?/ like multi\_call ,.etc.Various distributed algos? Basically from beginner to advanced?

---

## [Are RPC calls the only solution for accessing locally registered processes across nodes using a hash ring?](https://forum.elixirforum.com/t/are-rpc-calls-the-only-solution-for-accessing-locally-registered-processes-across-nodes-using-a-hash-ring/67367)

<div class="topic-metadata">

**Author:** [@markusgod](https://forum.elixirforum.com/u/markusgod)\
**Replies:** 0\
**Last updated:** [November 9, 2024, 10:18am UTC](https://forum.elixirforum.com/t/are-rpc-calls-the-only-solution-for-accessing-locally-registered-processes-across-nodes-using-a-hash-ring/67367 "2024-11-09T10:18:04Z")

</div>

Hi everyone, I’m working on a distributed Elixir application where I use a hash ring to distribute processes across multiple nodes. Each node has processes that are registered locally using Registry, and they’re identif…

---

## [Pogo - distributed supervisor for Elixir](https://forum.elixirforum.com/t/pogo-distributed-supervisor-for-elixir/56393)

<div class="topic-metadata">

**Author:** [@szajbus](https://forum.elixirforum.com/u/szajbus)\
**Replies:** 9\
**Last updated:** [September 23, 2024, 4:21pm UTC](https://forum.elixirforum.com/t/pogo-distributed-supervisor-for-elixir/56393 "2024-09-23T16:21:54Z")

</div>

Pogo is a distributed supervisor for clustered Elixir applications. It uses battle-tested distributed named process groups (:pg) under the hood to maintain cluster-wide state and coordinate work between local supervisor…

---

## [How to scale Phoenix Pubsub event publishing?](https://forum.elixirforum.com/t/how-to-scale-phoenix-pubsub-event-publishing/66201)

<div class="topic-metadata">

**Author:** [@scherrey](https://forum.elixirforum.com/u/scherrey)\
**Replies:** 1\
**Last updated:** [September 20, 2024, 7:19am UTC](https://forum.elixirforum.com/t/how-to-scale-phoenix-pubsub-event-publishing/66201 "2024-09-20T07:19:00Z")

</div>

When using Phoenix.Pubsub.Subscribe and having a large number of subscribers to the same event (3k+), is there a single process pushing all those events out sequentially? If so, what would it take to distribute this to a…

---

## [How to connect nodes in Kubernetes before application startup?](https://forum.elixirforum.com/t/how-to-connect-nodes-in-kubernetes-before-application-startup/65877)

<div class="topic-metadata">

**Author:** [@janp](https://forum.elixirforum.com/u/janp)\
**Replies:** 2\
**Last updated:** [September 5, 2024, 7:29am UTC](https://forum.elixirforum.com/t/how-to-connect-nodes-in-kubernetes-before-application-startup/65877 "2024-09-05T07:29:10Z")

</div>

I am wondering whether it is possible to use distributed Erlang plus libcluster in kubernetes? :thinking: I tried it with the following setup: StatefulSet (with 3 replicas) example@example-0.example-headless.default.…

---

## [Clustering of agents in an Elixir-powered CI service](https://forum.elixirforum.com/t/clustering-of-agents-in-an-elixir-powered-ci-service/64596)

<div class="topic-metadata">

**Author:** [@pepicrft](https://forum.elixirforum.com/u/pepicrft)\
**Replies:** 0\
**Last updated:** [June 30, 2024, 7:42am UTC](https://forum.elixirforum.com/t/clustering-of-agents-in-an-elixir-powered-ci-service/64596 "2024-06-30T07:42:21Z")

</div>

Hi, I’m building a CI service powered with Elixir where there are hosts (agents) that are responsible for picking builds from a queue and running them using a virtualization technology from the host. I was wondering wh…

---

## [Understanding Nx.Serving partitions and distribution](https://forum.elixirforum.com/t/understanding-nx-serving-partitions-and-distribution/63841)

<div class="topic-metadata">

**Author:** [@dshvimer](https://forum.elixirforum.com/u/dshvimer)\
**Replies:** 1\
**Last updated:** [June 5, 2024, 1:22am UTC](https://forum.elixirforum.com/t/understanding-nx-serving-partitions-and-distribution/63841 "2024-06-05T01:22:17Z")

</div>

Wanted to start by saying thank you to the maintainers, this is such an awesome project. I am really interested in using Nx to serve deployments for production use cases. I’m having trouble understanding this part of the…

---

## [Horde (and other dist. super.): Managing module versions](https://forum.elixirforum.com/t/horde-and-other-dist-super-managing-module-versions/61555)

<div class="topic-metadata">

**Author:** [@gavid](https://forum.elixirforum.com/u/gavid)\
**Replies:** 4\
**Last updated:** [February 11, 2024, 1:09pm UTC](https://forum.elixirforum.com/t/horde-and-other-dist-super-managing-module-versions/61555 "2024-02-11T13:09:44Z")

</div>

(This question is phrased in an abstract way, because it seems to me to be a general problem. But I can create a small example on request.) So with Horde, a supervised process can be restarted on any node. Say I have a…

---

## [Elixir-desktop as part of a cluster?](https://forum.elixirforum.com/t/elixir-desktop-as-part-of-a-cluster/60884)

<div class="topic-metadata">

**Author:** [@nduitz](https://forum.elixirforum.com/u/nduitz)\
**Replies:** 8\
**Last updated:** [January 12, 2024, 11:14pm UTC](https://forum.elixirforum.com/t/elixir-desktop-as-part-of-a-cluster/60884 "2024-01-12T23:14:19Z")

</div>

Hey Folks, I was very excited to learn about elixir-desktop. Thanks for your work :slight\_smile: So I was wondering if elixir-desktop could be used to more easily implement a webapp that also runs on desktop and has so…

---

## [Storing all genserver pid in ets table in each node](https://forum.elixirforum.com/t/storing-all-genserver-pid-in-ets-table-in-each-node/60833)

<div class="topic-metadata">

**Author:** [@Erynn](https://forum.elixirforum.com/u/Erynn)\
**Replies:** 35\
**Last updated:** [January 11, 2024, 6:32pm UTC](https://forum.elixirforum.com/t/storing-all-genserver-pid-in-ets-table-in-each-node/60833 "2024-01-11T18:32:21Z")

</div>

if i have a thousands of nodes forming cluster where nodes are connected manually forming a ring(node1 to 2, 2 to 3, 3 to 4… last to 1node). if all nodes have 1 genserver registered with their module. and if any genserv…

---

## [Using :rpc.call or :rpc.multicall - which is better for performance and speed?](https://forum.elixirforum.com/t/using-rpc-call-or-rpc-multicall-which-is-better-for-performance-and-speed/60796)

<div class="topic-metadata">

**Author:** [@Erynn](https://forum.elixirforum.com/u/Erynn)\
**Replies:** 2\
**Last updated:** [January 7, 2024, 8:15am UTC](https://forum.elixirforum.com/t/using-rpc-call-or-rpc-multicall-which-is-better-for-performance-and-speed/60796 "2024-01-07T08:15:26Z")

</div>

suppose i have 1000 nodes connected in a ring, connect\_all set false and manually connected in a ring. each node have 1 genserver means 1000 genserver. if one genserver fail and registered with new pid. now tell me whic…

---

## [Call GenServer from a remote node](https://forum.elixirforum.com/t/call-genserver-from-a-remote-node/59699)

<div class="topic-metadata">

**Author:** [@tellesleandro](https://forum.elixirforum.com/u/tellesleandro)\
**Replies:** 2\
**Last updated:** [November 14, 2023, 12:41pm UTC](https://forum.elixirforum.com/t/call-genserver-from-a-remote-node/59699 "2023-11-14T12:41:22Z")

</div>

I have the following code running on node “a”: defmodule Devices.Teste do use GenServer def start\_link() do IO.inspect(\["a", self()\]) GenServer.start\_link(\_\_MODULE\_\_, \[\], \[\]) end def a(pid) do IO.i…

---

## [Remote Execution SmartCell questions](https://forum.elixirforum.com/t/remote-execution-smartcell-questions/58860)

<div class="topic-metadata">

**Author:** [@mbklein](https://forum.elixirforum.com/u/mbklein)\
**Replies:** 11\
**Last updated:** [November 9, 2023, 12:07am UTC](https://forum.elixirforum.com/t/remote-execution-smartcell-questions/58860 "2023-11-09T00:07:18Z")

</div>

I’ve been playing with the Remote Execution smart cell, and it’s been mostly fantastic. Just about everything I was looking for when I made this offhand comment back in May. :slight\_smile: I’m left with two major questi…

---

## [Trying to understand OTP apps a little better and distribution](https://forum.elixirforum.com/t/trying-to-understand-otp-apps-a-little-better-and-distribution/57665)

<div class="topic-metadata">

**Author:** [@polypush135](https://forum.elixirforum.com/u/polypush135)\
**Replies:** 4\
**Last updated:** [August 16, 2023, 10:15pm UTC](https://forum.elixirforum.com/t/trying-to-understand-otp-apps-a-little-better-and-distribution/57665 "2023-08-16T22:15:52Z")

</div>

I was thinking: What if I could abstract some of my otp applications from in my phoenix app and move them to another server? I got this idea because I wanted to see if I could not put one of my 3 free 256mb VMs from…

---

## [Deployment process with load balancer, mix release, multiple nodes, and distributed elixir](https://forum.elixirforum.com/t/deployment-process-with-load-balancer-mix-release-multiple-nodes-and-distributed-elixir/57448)

<div class="topic-metadata">

**Author:** [@duntonr](https://forum.elixirforum.com/u/duntonr)\
**Replies:** 3\
**Last updated:** [August 5, 2023, 1:45pm UTC](https://forum.elixirforum.com/t/deployment-process-with-load-balancer-mix-release-multiple-nodes-and-distributed-elixir/57448 "2023-08-05T13:45:13Z")

</div>

We have a Elixir Phoenix application currently deployed in a highly available configuration on AWS. We use a application load balancer (layer 7) backed by 2+ individual EC2 instances (that are all members of an auto-sca…

[Next page](https://forum.elixirforum.com/tag/distributed/1038.md?match_all_tags=true&page=1&tags%5B%5D=distributed)
