pckrishnadas88
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 the existing application further wasn’t practical.
I ended up moving the workload out using:
Legacy app → RabbitMQ → Go worker → batched MySQL updates
I wrote a short post about the problem and the approach I used.
Now that I’m learning Elixir/OTP, I’m curious how you would approach the same problem on the BEAM.
Trending in Blog Posts
Up until then, I found it very hard to communicate to LLMs that I specifically do not want to handle X case because maybe it has never ha...
New
The words are insufficient to describe what transpired. What we tried to do met what the people wanted it to be. It became beautiful.
Th...
New
Hi all,
I’ve built a small demo app to understand what an “AI agent” actually is under the hood, and to show it with Elixir’s own tools ...
New
In Elixir, send/2 is non-blocking, which means an eager producer can easily flood a slow consumer’s mailbox. Because BEAM process mailbox...
New
Secure boot and a verified root filesystem on an STM32MP157F-DK2 - with Nerves of course
Four links of an authenticated boot chain on an ...
New
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 e...
New
I wrote a longread on how do I test code. Everything I gained from 10 years of experience writing code without any testing and 20 years w...
New
Other Trending Topics
Edit: 2026 May 15 - This post is archived.
Mob is alive!!
Main docs: mob v0.7.11 — Documentation
A bit of explanation for the slightly c...
New
Hobbes is a low-level distributed database for the Elixir programming language.
Hobbes provides a simple, safe, and scalable storage lay...
New
A little off-topic, but I feel like people here have a good head on their shoulders.
I used to be quite good at making software. Was luc...
New
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. I’m finding it pretty diff...
New
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #ai
- #podcasts-by-brainlid
- #ecto-query
- #blog-post
- #elixirconf-us
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #elixirconf-eu
- #api
- #forms
- #security
- #metaprogramming










Showing Posts 1 to 8- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
halturin
you may also want to try Ergo Framework - it provides you Erlang/OTP patterns but with Golang
LostKobrakai
This sounds like a prime case for broadway. I cannot say how it would compare cpu/memory wise, but it can handle the pull from rabbitmq and batch for db update just fine.
Asd
I would just do the
If the list of
idsis around one million of UUIDs, it is still just about 16 megabytes of memory. Sending it over to the database is fine too.You don’t need RabbitMQ, Go worker or any other solution spanning multiple services to fix the N+1 problem. Even if I have 1GB of UUIDs, I’d just do batching in-service
chungwong
Is it really necessary to introduce Go there? Isn’t it just converting the async job to a background task runner? I haven’t touch PHP for years but I believe PHP should be just fine to do that. What is the hidden challenge that promoted the play of Go here?
pckrishnadas88
Hi I was not part of their original team so the codebase was not familiar to me and the php on the server was outdated. What I tried was to isloate the problem. Very minimal change to their existing codebase also if my solution didn’t worked we can remove the go worker easily without major changes on the existing system. I know there are better ways thinking now but everyone was in a hurry so priority was to make it running as soon as possible. Thank you for the feedbacks.
pckrishnadas88
Thanks for the feedback. This was actually something the existing team had already tried, but the database was already under heavy load from other workloads as well. My approach was mainly to isolate the problem and reduce its impact on the existing system.
shishini
this video might interest you
Practical Data Orchestration in Elixir - Silvia Zeamer | ElixirConf EU 2026
matt-savvy
You might want to check out Concurrent Data Processing in Elixir: Fast, Resilient Applications with OTP, GenStage, Flow, and Broadway by Svilen Gospodinov
But really, it sounds like all that needs to happen is that this processing happen outside of the HTTP request.