# \#processes

**URL:** https://forum.elixirforum.com/tag/processes/77.md

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

---

## [ProcessHub - process distribution library](https://forum.elixirforum.com/t/processhub-process-distribution-library/58583)

<div class="topic-metadata">

**Author:** [@anuaralfetahe](https://forum.elixirforum.com/u/anuaralfetahe)\
**Replies:** 49\
**Last updated:** [August 30, 2026, 3:26pm UTC](https://forum.elixirforum.com/t/processhub-process-distribution-library/58583 "2026-08-30T15:26:30Z")

</div>

Hello Published a new library - ProcessHub! ProcessHub is a library designed to manage process distribution within the Elixir cluster. Each cluster initiates its own hub under the supervision tree, and all these hubs c…

---

## [Peeper - a library to keep state between crashes and move processes across supervisors](https://forum.elixirforum.com/t/peeper-a-library-to-keep-state-between-crashes-and-move-processes-across-supervisors/70096)

<div class="topic-metadata">

**Author:** [@mudasobwa](https://forum.elixirforum.com/u/mudasobwa)\
**Replies:** 4\
**Last updated:** [March 19, 2026, 5:22am UTC](https://forum.elixirforum.com/t/peeper-a-library-to-keep-state-between-crashes-and-move-processes-across-supervisors/70096 "2026-03-19T05:22:29Z")

</div>

Peeper is a library, that allows to preserve state between process crashes (including ETS and process dictionary,) as well as moving processes across dynamic supervisors (including a distributed transfer across nodes.) I…

---

## [In-memory cache using Agent as as DDoS protection?](https://forum.elixirforum.com/t/in-memory-cache-using-agent-as-as-ddos-protection/73488)

<div class="topic-metadata">

**Author:** [@abar](https://forum.elixirforum.com/u/abar)\
**Replies:** 8\
**Last updated:** [November 30, 2025, 7:23pm UTC](https://forum.elixirforum.com/t/in-memory-cache-using-agent-as-as-ddos-protection/73488 "2025-11-30T19:23:36Z")

</div>

Hey all, I’m trying to build a low-cost website serving a catalogue of items, with standard options of viewing/filtering said items. It is expected that a catalogue itself will be queried often, but rarely updated. It i…

---

## [Vault - a lightweight process-scoped global data storage with immutability guarantees](https://forum.elixirforum.com/t/vault-a-lightweight-process-scoped-global-data-storage-with-immutability-guarantees/72553)

<div class="topic-metadata">

**Author:** [@dimamik](https://forum.elixirforum.com/u/dimamik)\
**Replies:** 23\
**Last updated:** [October 19, 2025, 5:14pm UTC](https://forum.elixirforum.com/t/vault-a-lightweight-process-scoped-global-data-storage-with-immutability-guarantees/72553 "2025-10-19T17:14:24Z")

</div>

Vault is a lightweight Elixir library for immutable data storage within a process subtree. Due to Elixir’s actor model nature, it’s common for a process to have global context that is valid for every function call insid…

---

## [Should I be concerned about many processes running?](https://forum.elixirforum.com/t/should-i-be-concerned-about-many-processes-running/72774)

<div class="topic-metadata">

**Author:** [@ryouta](https://forum.elixirforum.com/u/ryouta)\
**Replies:** 3\
**Last updated:** [October 4, 2025, 10:34pm UTC](https://forum.elixirforum.com/t/should-i-be-concerned-about-many-processes-running/72774 "2025-10-04T22:34:27Z")

</div>

Hi, I have been learning elixir lately and did some hands. All I did was create some exs files and ran them. After a while I ran below command on shell Process.info() This returned a list of so many PIDs. I was wonderi…

---

## [Message Prioritization inside GenServer](https://forum.elixirforum.com/t/message-prioritization-inside-genserver/16859)

<div class="topic-metadata">

**Author:** [@apr](https://forum.elixirforum.com/u/apr)\
**Replies:** 13\
**Last updated:** [July 24, 2025, 6:38pm UTC](https://forum.elixirforum.com/t/message-prioritization-inside-genserver/16859 "2025-07-24T18:38:09Z")

</div>

Hello! Is there a way to send a message to a Genserver process such that the message skips all other messages in the genserver’s message queue, and will be the next message to be processed? Or would the solution involv…

---

## [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…

---

## [Why are there no warnings when a process send a message to itself?](https://forum.elixirforum.com/t/why-are-there-no-warnings-when-a-process-send-a-message-to-itself/70186)

<div class="topic-metadata">

**Author:** [@jberling](https://forum.elixirforum.com/u/jberling)\
**Replies:** 7\
**Last updated:** [March 28, 2025, 10:52am UTC](https://forum.elixirforum.com/t/why-are-there-no-warnings-when-a-process-send-a-message-to-itself/70186 "2025-03-28T10:52:37Z")

</div>

Note: this question is based on a misunderstanding. It seems like one cannot delete a topic in the forum, so it will remain forever as a testament to my lack of reasoning ability. I got bitten hard yesterday by a mistak…

---

## [Why can't I catch Process.exit/2?](https://forum.elixirforum.com/t/why-cant-i-catch-process-exit-2/69064)

<div class="topic-metadata">

**Author:** [@garrison](https://forum.elixirforum.com/u/garrison)\
**Replies:** 12\
**Last updated:** [January 28, 2025, 11:45pm UTC](https://forum.elixirforum.com/t/why-cant-i-catch-process-exit-2/69064 "2025-01-28T23:45:15Z")

</div>

Alright, fair warning: I may be missing something obvious here. I can use try/catch to catch an exit sent with exit/1: try exit(:timeout) catch :exit, :timeout -\> :ok end But if I catch an exit sent with Process.e…

---

## [Finite State machine - when to use and when not to?](https://forum.elixirforum.com/t/finite-state-machine-when-to-use-and-when-not-to/47125)

<div class="topic-metadata">

**Author:** [@TwistingTwists](https://forum.elixirforum.com/u/TwistingTwists)\
**Replies:** 6\
**Last updated:** [December 22, 2024, 8:07pm UTC](https://forum.elixirforum.com/t/finite-state-machine-when-to-use-and-when-not-to/47125 "2024-12-22T20:07:33Z")

</div>

What are use cases when Finite state machines should not be used? MUST NOT USE in THESE CASES Must not use because \_\_\_\_\_\_ MAY USE or MAY NOT use Pro of using FSM are : (a) \_\_\_\_ (b) \_\_\_\_\_\_ (c) \_\_\_\_\_ Cons of usin…

---

## [Error Spawning Process on Another Node](https://forum.elixirforum.com/t/error-spawning-process-on-another-node/67765)

<div class="topic-metadata">

**Author:** [@noelob](https://forum.elixirforum.com/u/noelob)\
**Replies:** 7\
**Last updated:** [December 6, 2024, 12:23am UTC](https://forum.elixirforum.com/t/error-spawning-process-on-another-node/67765 "2024-12-06T00:23:11Z")

</div>

Hi, I’ve created a simple cluster by opening 2 IEX sessions on two different machines, and I can see the the nodes are clustered: iex(dev@127.0.0.1)11\> Node.list \[:this, :visible\] \[:"suv@127.0.0.1", :"dev@127.0.0.1"\] W…

---

## [Clearing out process mailbox - is using :c.flush() a good idea?](https://forum.elixirforum.com/t/clearing-out-process-mailbox-is-using-c-flush-a-good-idea/66838)

<div class="topic-metadata">

**Author:** [@RustySnek](https://forum.elixirforum.com/u/RustySnek)\
**Replies:** 4\
**Last updated:** [October 18, 2024, 3:27pm UTC](https://forum.elixirforum.com/t/clearing-out-process-mailbox-is-using-c-flush-a-good-idea/66838 "2024-10-18T15:27:25Z")

</div>

I’m working on a project that awaits an :ok signal while also trapping and awaiting any exits that happen midway. Looks something like this: Process.flag(:trap\_exit, true) # Call a process that will send() back :ok …

---

## [Reliable way to test Process.send\_after/4](https://forum.elixirforum.com/t/reliable-way-to-test-process-send-after-4/65749)

<div class="topic-metadata">

**Author:** [@D4no0](https://forum.elixirforum.com/u/D4no0)\
**Replies:** 7\
**Last updated:** [August 29, 2024, 2:30pm UTC](https://forum.elixirforum.com/t/reliable-way-to-test-process-send-after-4/65749 "2024-08-29T14:30:50Z")

</div>

I have a few genservers that need to fetch some data from an external resource every 15 minutes. The solution I’m using is just plain Process.send\_after/4. The problem is when it comes to testing. The way I did it in t…

---

## [A pmap implementation: any feedback?](https://forum.elixirforum.com/t/a-pmap-implementation-any-feedback/65022)

<div class="topic-metadata">

**Author:** [@l3nz](https://forum.elixirforum.com/u/l3nz)\
**Replies:** 6\
**Last updated:** [August 23, 2024, 10:06pm UTC](https://forum.elixirforum.com/t/a-pmap-implementation-any-feedback/65022 "2024-08-23T22:06:18Z")

</div>

Hello, I have been playing with a pmap (parallel map) implementation, for a task that seems easy: to run a series of functions in parallel and gather their results. The “snag” is that I want to handle errors and timeout…

---

## [Do elixir processes provide similar isolation as os processes? (I'm trying to understand the risk of a sandbox escape from a v8 isolate)](https://forum.elixirforum.com/t/do-elixir-processes-provide-similar-isolation-as-os-processes-im-trying-to-understand-the-risk-of-a-sandbox-escape-from-a-v8-isolate/64583)

<div class="topic-metadata">

**Author:** [@vmg-dev](https://forum.elixirforum.com/u/vmg-dev)\
**Replies:** 4\
**Last updated:** [June 28, 2024, 6:47pm UTC](https://forum.elixirforum.com/t/do-elixir-processes-provide-similar-isolation-as-os-processes-im-trying-to-understand-the-risk-of-a-sandbox-escape-from-a-v8-isolate/64583 "2024-06-28T18:47:40Z")

</div>

As the title says, I want to run untrusted code in a v8 isolate and I’m wondering if elixir processes provide similar isolation as os processes. One of the risks with v8 sandbox escapes is that they will have access to s…

---

## [Looking for feedback on a little project I've made](https://forum.elixirforum.com/t/looking-for-feedback-on-a-little-project-ive-made/64083)

<div class="topic-metadata">

**Author:** [@sheerlox](https://forum.elixirforum.com/u/sheerlox)\
**Replies:** 5\
**Last updated:** [June 12, 2024, 9:21pm UTC](https://forum.elixirforum.com/t/looking-for-feedback-on-a-little-project-ive-made/64083 "2024-06-12T21:21:10Z")

</div>

Hello Elixir community! I gave a few programming courses in a university a few months ago, and found myself with ~ 250 student projects to grade (from two assignments, introduction to Git & unit testing in Java). So I …

---

## [How does message passing in Processes work?](https://forum.elixirforum.com/t/how-does-message-passing-in-processes-work/63484)

<div class="topic-metadata">

**Author:** [@fiv](https://forum.elixirforum.com/u/fiv)\
**Replies:** 5\
**Last updated:** [May 11, 2024, 7:00am UTC](https://forum.elixirforum.com/t/how-does-message-passing-in-processes-work/63484 "2024-05-11T07:00:04Z")

</div>

Trying to wrap my head around how processes pass messages. I have a simple example of processA sending a message to processB defmodule ProcessA do def start() do spawn fn -\> run() end end def run do run()…

---

## [Tracee - Trace function calls in concurrent Elixir processes](https://forum.elixirforum.com/t/tracee-trace-function-calls-in-concurrent-elixir-processes/63300)

<div class="topic-metadata">

**Author:** [@ream88](https://forum.elixirforum.com/u/ream88)\
**Replies:** 0\
**Last updated:** [May 3, 2024, 12:10pm UTC](https://forum.elixirforum.com/t/tracee-trace-function-calls-in-concurrent-elixir-processes/63300 "2024-05-03T12:10:17Z")

</div>

Hey, super proud to announce Tracee, a library that allows to trace and assert expected function calls within concurrent Elixir processes. I had a very particular problem that is explained in this forum post, and after l…

---

## [Exceptions in Ash datalayer have unhelpful stack traces](https://forum.elixirforum.com/t/exceptions-in-ash-datalayer-have-unhelpful-stack-traces/62934)

<div class="topic-metadata">

**Author:** [@spacebat](https://forum.elixirforum.com/u/spacebat)\
**Replies:** 6\
**Last updated:** [April 19, 2024, 2:00pm UTC](https://forum.elixirforum.com/t/exceptions-in-ash-datalayer-have-unhelpful-stack-traces/62934 "2024-04-19T14:00:02Z")

</div>

A number of times I’ve run into some error or other while developing in ash, the exception is printed along with a stack trace but it’s all library and framework stack frames. The message will be something like “Input In…

---

## [Encryption in Elixir's process messaging](https://forum.elixirforum.com/t/encryption-in-elixirs-process-messaging/61052)

<div class="topic-metadata">

**Author:** [@pablito](https://forum.elixirforum.com/u/pablito)\
**Replies:** 4\
**Last updated:** [January 17, 2024, 2:53pm UTC](https://forum.elixirforum.com/t/encryption-in-elixirs-process-messaging/61052 "2024-01-17T14:53:13Z")

</div>

Hi, we’re using libcluster + horde to manage process balancing of some genservers. So, we want to get the security right and have an encrypted communication between processes. I guess that horde messages aren’t so impor…

---

## [Exact SIGTERM release shutdown behavior and exit signal behavior](https://forum.elixirforum.com/t/exact-sigterm-release-shutdown-behavior-and-exit-signal-behavior/60657)

<div class="topic-metadata">

**Author:** [@losvedir](https://forum.elixirforum.com/u/losvedir)\
**Replies:** 1\
**Last updated:** [January 10, 2024, 3:48pm UTC](https://forum.elixirforum.com/t/exact-sigterm-release-shutdown-behavior-and-exit-signal-behavior/60657 "2024-01-10T15:48:05Z")

</div>

Hi everyone. I’m trying to understand some error messages that occasionally appear in our logs durning shutdown. Mostly, I’m just trying to use them to understand the shutdown process a bit better, and trapping exit sign…

---

## [How can I send a process a message from a shell script?](https://forum.elixirforum.com/t/how-can-i-send-a-process-a-message-from-a-shell-script/18792)

<div class="topic-metadata">

**Author:** [@axelson](https://forum.elixirforum.com/u/axelson)\
**Replies:** 7\
**Last updated:** [December 5, 2023, 12:11pm UTC](https://forum.elixirforum.com/t/how-can-i-send-a-process-a-message-from-a-shell-script/18792 "2023-12-05T12:11:27Z")

</div>

Is there a straightforward way to send a message to my Elixir process from a bash script? To avoid the XY problem, I am trying to implement a pianobar eventcmd, which is a script that is run on each event (such as song …

---

## [Stress testing: doing something as quickly as possible at the "same time"](https://forum.elixirforum.com/t/stress-testing-doing-something-as-quickly-as-possible-at-the-same-time/60062)

<div class="topic-metadata">

**Author:** [@thoughtarray](https://forum.elixirforum.com/u/thoughtarray)\
**Replies:** 0\
**Last updated:** [November 30, 2023, 9:54pm UTC](https://forum.elixirforum.com/t/stress-testing-doing-something-as-quickly-as-possible-at-the-same-time/60062 "2023-11-30T21:54:10Z")

</div>

Hello, this is my first post, and I hope it isn’t already obviously answered in another post. I did my best to look. Problem statement I want to do something as quickly as possible at the “same time” (as possible). To s…

---

## [Sometimes getting :noproc error](https://forum.elixirforum.com/t/sometimes-getting-noproc-error/59356)

<div class="topic-metadata">

**Author:** [@eddy147](https://forum.elixirforum.com/u/eddy147)\
**Replies:** 4\
**Last updated:** [October 30, 2023, 4:32pm UTC](https://forum.elixirforum.com/t/sometimes-getting-noproc-error/59356 "2023-10-30T16:32:51Z")

</div>

Once in a while I get a :noproc error: \*\* (stop) exited in: GenServer.call({:via, Registry, {:trip\_generation\_server, "804194805327673"}}, :send\_to\_processing, 5000) \*\* (EXIT) no process: the process is not alive or…

---

## [Restarting a process?](https://forum.elixirforum.com/t/restarting-a-process/30686)

<div class="topic-metadata">

**Author:** [@fireproofsocks](https://forum.elixirforum.com/u/fireproofsocks)\
**Replies:** 11\
**Last updated:** [October 26, 2023, 5:30pm UTC](https://forum.elixirforum.com/t/restarting-a-process/30686 "2023-10-26T17:30:19Z")

</div>

I’ve got a simple app that starts up a supervised Broadway pipeline. This is fine for regular use, but it makes testing difficult: def start(\_type, \_args) do children = \[{My.Pipe, \[\]}\] opts = \[strategy: :one\_…

---

## [Need help improving CSV related code which is slower than expected](https://forum.elixirforum.com/t/need-help-improving-csv-related-code-which-is-slower-than-expected/58910)

<div class="topic-metadata">

**Author:** [@ahsanghalib](https://forum.elixirforum.com/u/ahsanghalib)\
**Replies:** 10\
**Last updated:** [October 12, 2023, 2:40am UTC](https://forum.elixirforum.com/t/need-help-improving-csv-related-code-which-is-slower-than-expected/58910 "2023-10-12T02:40:31Z")

</div>

I am new to Elixir, learning it. I have a list of US Cities from this github link https://raw.githubusercontent.com/grammakov/USA-cities-and-states/master/us\_cities\_states\_counties.csv I am trying to process this, remov…

---

## [Using Process.send\_after() outside of a GenServer?](https://forum.elixirforum.com/t/using-process-send-after-outside-of-a-genserver/58823)

<div class="topic-metadata">

**Author:** [@Maxximiliann](https://forum.elixirforum.com/u/Maxximiliann)\
**Replies:** 10\
**Last updated:** [October 11, 2023, 10:29pm UTC](https://forum.elixirforum.com/t/using-process-send-after-outside-of-a-genserver/58823 "2023-10-11T22:29:15Z")

</div>

defmodule APIResponseProcessor do defp update\_log(api\_url, error\_message, {sleep\_time, interval}, line\_number, attempt\_count) do log\_level = case attempt\_count \< 5 do true -\> :log\_only false -\>…

---

## [Spawning Task vs enqueuing another Oban worker from within an Oban worker](https://forum.elixirforum.com/t/spawning-task-vs-enqueuing-another-oban-worker-from-within-an-oban-worker/58277)

<div class="topic-metadata">

**Author:** [@visezoly](https://forum.elixirforum.com/u/visezoly)\
**Replies:** 4\
**Last updated:** [September 14, 2023, 3:54pm UTC](https://forum.elixirforum.com/t/spawning-task-vs-enqueuing-another-oban-worker-from-within-an-oban-worker/58277 "2023-09-14T15:54:35Z")

</div>

situation: I have a list of posts, each post is associated with many comments, I want to process each post in an Oban worker where for each post and each comment separately I want to do some work like for instance call…

---

## [Async Elixir (free) (self-published)](https://forum.elixirforum.com/t/async-elixir-free-self-published/58196)

<div class="topic-metadata">

**Author:** [@arpan](https://forum.elixirforum.com/u/arpan)\
**Replies:** 0\
**Last updated:** [September 9, 2023, 11:34am UTC](https://forum.elixirforum.com/t/async-elixir-free-self-published/58196 "2023-09-09T11:34:42Z")

</div>

:waving\_hand: Hey Elixir Enthusiasts! I’ve got something cool for you. It’s a free book on Elixir that dives into the nitty-gritty of concurrency and processes. Perfect if you already know the basics of Elixir and want …

---

## [Understanding process links](https://forum.elixirforum.com/t/understanding-process-links/57119)

<div class="topic-metadata">

**Author:** [@ream88](https://forum.elixirforum.com/u/ream88)\
**Replies:** 5\
**Last updated:** [July 18, 2023, 9:13am UTC](https://forum.elixirforum.com/t/understanding-process-links/57119 "2023-07-18T09:13:52Z")

</div>

Hello, I have an Elixir app where a process depends on another process to be alive and send messages back. This second process is mainly a database connection and may occasionally fail. I created an example app below, w…

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