pckrishnadas88
Hey everyone! ![]()
I’ve published Part 7 of the Building Distributed Systems in Elixir series, where we build core distributed systems and concurrency patterns from first principles using raw process primitives (spawn, send, receive) before reaching for OTP abstractions.
In this part, we explore Worker Pools and Bounded Concurrency
What’s covered:
- The Problem with Unbounded Concurrency: Why spawning
10,000processes for heavy tasks leads to socket/database exhaustion and memory pressure. - Demand-Driven / Pull-Based Distribution: How workers pull tasks when idle instead of pushing work blindly, implementing backpressure naturally.
- Atomic Completion & Availability: Combining job completion notifications and worker re-availability into a single message (
{:available, worker_id, self(), job, result}) to prevent race conditions. - Graceful Pool Lifecycle: Coordinating shutdown signals across a coordinator and worker pool without dangling processes.
Links:
Read the article: Building Distributed Systems in Elixir: Part 7 — Worker Pool
GitHub Repository: elixir-distributed-systems-lab
Feedback, thoughts, and discussions are always welcome!
Trending in Blog Posts
I am seeing a lot of aplications of Argumentum ad Vericundiam in software discussions. They do link some piece of writing and point us to...
New
Hey folks,
I just published a post about Hologram’s funding and where the project goes next - the short version:
Curiosum as Main Spons...
New
A while back, I had to process millions of database updates in a legacy system that was already hitting its 64 GB RAM limit, so scaling t...
New
At the heart of every Phoenix application is the often “invisible” HTTP server layer.
For over a decade Cowboy has served the community ...
New
I’ve published Part 3 of my Elixir distributed systems learning series.
This part explores process monitoring using the low-level primit...
New
I wrote up a blog post talking about the first skill I made, one that does a detailed Elixir dependency update.
More than Dependabot, it...
New
I’ve published Part 4 of my Elixir distributed systems learning series.
This part explores process linking using low-level primitives di...
New
Other Trending Topics
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hobbes is a low-level distributed database for the Elixir programming language.
Hobbes provides a simple, safe, and scalable storage lay...
New
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
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
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
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
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #blog-post
- #elixir-ls
- #ai
- #elixirconf-us
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming










Showing Posts 1 to 3- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
alvinkatojr
Excellent work man! I stopped at part 4 and have been waiting for the rest. Now I can resume from where I stopped.
pckrishnadas88
Thanks a lot!
Glad you’re enjoying the series. Hope the upcoming parts are useful too!
alvinkatojr
Oh, I’m sure the upcoming parts will be useful. Keep them coming!