# \#parallelism

**URL:** https://forum.elixirforum.com/tag/parallelism/1518.md

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

---

## [Golang singleflght concept in Elixir](https://forum.elixirforum.com/t/golang-singleflght-concept-in-elixir/62785)

<div class="topic-metadata">

**Author:** [@3FanYu](https://forum.elixirforum.com/u/3FanYu)\
**Replies:** 14\
**Last updated:** [April 10, 2024, 8:21am UTC](https://forum.elixirforum.com/t/golang-singleflght-concept-in-elixir/62785 "2024-04-10T08:21:02Z")

</div>

As what I’ve learned so far, if I build an API server using Elixir and Phoenix. Each requests against the API server is an independent process. Let’s say if I have an GET API to retrieve items and it takes a long time t…

---

## [The Problem-Based Benchmark Suite in Elixir](https://forum.elixirforum.com/t/the-problem-based-benchmark-suite-in-elixir/52623)

<div class="topic-metadata">

**Author:** [@luiz787](https://forum.elixirforum.com/u/luiz787)\
**Replies:** 1\
**Last updated:** [December 19, 2022, 7:14am UTC](https://forum.elixirforum.com/t/the-problem-based-benchmark-suite-in-elixir/52623 "2022-12-19T07:14:06Z")

</div>

Hi! For the last few months, I worked in the implementation of the Problem-Based Benchmark Suite (PBBS) in Elixir, as part of my final CS BSc project. The PBBS is a set of problems designed to benchmark parallel implemen…

---

## [Benchmark parallel calls to a function](https://forum.elixirforum.com/t/benchmark-parallel-calls-to-a-function/51261)

<div class="topic-metadata">

**Author:** [@Benjamin-Philip](https://forum.elixirforum.com/u/Benjamin-Philip)\
**Replies:** 1\
**Last updated:** [October 22, 2022, 10:59pm UTC](https://forum.elixirforum.com/t/benchmark-parallel-calls-to-a-function/51261 "2022-10-22T22:59:56Z")

</div>

I would like to benchmark function calls made in parallel (for example to some function in an Ecto Context, or in my case an Axon/Nx model’s function). I don’t have much experience in benchmarking, but I am assuming in …

---

## [Parallel job processing in Oban](https://forum.elixirforum.com/t/parallel-job-processing-in-oban/47551)

<div class="topic-metadata">

**Author:** [@Mukulch15](https://forum.elixirforum.com/u/Mukulch15)\
**Replies:** 5\
**Last updated:** [May 3, 2022, 4:41pm UTC](https://forum.elixirforum.com/t/parallel-job-processing-in-oban/47551 "2022-05-03T16:41:48Z")

</div>

I have created a queue in Oban with a concurrency of 12. The worker’s job is to take the parameters, make an http call and insert the response into database. However when I inserted jobs using Oban.insert\_all, I see that…

---

## [Seeking for advice to understand why my parallel running demo code is slower than the sequential one](https://forum.elixirforum.com/t/seeking-for-advice-to-understand-why-my-parallel-running-demo-code-is-slower-than-the-sequential-one/40525)

<div class="topic-metadata">

**Author:** [@Dominik](https://forum.elixirforum.com/u/Dominik)\
**Replies:** 15\
**Last updated:** [June 19, 2021, 12:53pm UTC](https://forum.elixirforum.com/t/seeking-for-advice-to-understand-why-my-parallel-running-demo-code-is-slower-than-the-sequential-one/40525 "2021-06-19T12:53:02Z")

</div>

Hi, I’m currently learning Elixir and I’ve come along this code (from the book “Programming Elixir \>= 1.6”): defmodule Parallel do def pmap(collection, func) do collection |\> Enum.map(&(Task.async(fn -\> func.…

---

## [Mongo execution too fast?](https://forum.elixirforum.com/t/mongo-execution-too-fast/38325)

<div class="topic-metadata">

**Author:** [@vrod](https://forum.elixirforum.com/u/vrod)\
**Replies:** 4\
**Last updated:** [March 20, 2021, 2:27pm UTC](https://forum.elixirforum.com/t/mongo-execution-too-fast/38325 "2021-03-20T14:27:25Z")

</div>

I have an interesting thing that I do not understand I am hoping someone can explain what I see. I will try to make simple my explanation. There is a Phoenix PubSub topic for IDs. There is a GenStage producer module th…

---

## [Understanding concurrent tasks in context of BEAM schedulers & CPU cores](https://forum.elixirforum.com/t/understanding-concurrent-tasks-in-context-of-beam-schedulers-cpu-cores/30938)

<div class="topic-metadata">

**Author:** [@jmurphyweb](https://forum.elixirforum.com/u/jmurphyweb)\
**Replies:** 5\
**Last updated:** [May 4, 2020, 11:37am UTC](https://forum.elixirforum.com/t/understanding-concurrent-tasks-in-context-of-beam-schedulers-cpu-cores/30938 "2020-05-04T11:37:19Z")

</div>

Hi, I’m just reading Elixir In Action and have a question about running concurrent tasks in relation to number of cores available. From what I can understand, a scheduler can only run one CPU-bound task at a time. So s…

---

## [I created a repo for collecting OTP internal learning materials](https://forum.elixirforum.com/t/i-created-a-repo-for-collecting-otp-internal-learning-materials/29695)

<div class="topic-metadata">

**Author:** [@yfractal](https://forum.elixirforum.com/u/yfractal)\
**Replies:** 2\
**Last updated:** [March 8, 2020, 1:51am UTC](https://forum.elixirforum.com/t/i-created-a-repo-for-collecting-otp-internal-learning-materials/29695 "2020-03-08T01:51:09Z")

</div>

Elixir/Erlang is really good at concurrency. But there is not much stuff about the internal and implementation. So I created a repo awesome-otp-learning for such things. Hope it’s helpful. Any suggestions and pull re…

---

## [Parallel compiler and mix dependencies](https://forum.elixirforum.com/t/parallel-compiler-and-mix-dependencies/28400)

<div class="topic-metadata">

**Author:** [@jeroenvisser101](https://forum.elixirforum.com/u/jeroenvisser101)\
**Replies:** 11\
**Last updated:** [January 21, 2020, 9:23am UTC](https://forum.elixirforum.com/t/parallel-compiler-and-mix-dependencies/28400 "2020-01-21T09:23:48Z")

</div>

I noticed that while compiling an application, ParallelCompiler will compile multiple modules in parallel, as long as the dependencies between them allow this, but that compiling mix dependencies does not. It compiles ea…

---

## [Do piped functions run in parallel](https://forum.elixirforum.com/t/do-piped-functions-run-in-parallel/23975)

<div class="topic-metadata">

**Author:** [@malvinbozniak](https://forum.elixirforum.com/u/malvinbozniak)\
**Replies:** 4\
**Last updated:** [July 16, 2019, 11:27am UTC](https://forum.elixirforum.com/t/do-piped-functions-run-in-parallel/23975 "2019-07-16T11:27:58Z")

</div>

Hi there ! I’m Malvin and I’m new to FP in general. I’ve started reading about FP and Elixir, and I found them so exciting :slight\_smile: Well, my first question for you is what the subject states. When I chain funct…

---

## [The BEAM and Parallelism](https://forum.elixirforum.com/t/the-beam-and-parallelism/21916)

<div class="topic-metadata">

**Author:** [@NobbZ](https://forum.elixirforum.com/u/NobbZ)\
**Replies:** 7\
**Last updated:** [April 26, 2019, 11:23am UTC](https://forum.elixirforum.com/t/the-beam-and-parallelism/21916 "2019-04-26T11:23:04Z")

</div>

Moved from another Discussion There is no parallelity on the BEAM, only concurrency, but don’t let us argue about the theoretical difference of both words, as its definitions seem to differ even between universities… …

---

## [Is there a tool to calculate the parallelism rate of my code](https://forum.elixirforum.com/t/is-there-a-tool-to-calculate-the-parallelism-rate-of-my-code/21903)

<div class="topic-metadata">

**Author:** [@fnegrini](https://forum.elixirforum.com/u/fnegrini)\
**Replies:** 2\
**Last updated:** [April 25, 2019, 7:16am UTC](https://forum.elixirforum.com/t/is-there-a-tool-to-calculate-the-parallelism-rate-of-my-code/21903 "2019-04-25T07:16:17Z")

</div>

Hi Elixir coders, Is there an easy way to calculate how parallel is my code? Thanks!
