frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Writing A Job Runner (In Elixir) (Again) (10 years later)

https://github.com/notactuallytreyanastasio/genstage_tutorial_2025/blob/main/README.md
67•rhgraysonii•5h ago

Comments

rhgraysonii•5h ago
I wrote this up after having written a tutorial on doing this in GenStage around a decade ago, and thought it was interesting to have the two of them side by side to consider. I linked the original in the document linked to here.

Overall, I'm wildly impressed at how this Elixir code held up, and it was a joy to revisit this.

dangerousnight•2h ago
As someone who has been learning Elixir on and off for over a year, this looks really exciting on first skim through. Excited to give this a deep read this weekend!
rhgraysonii•2h ago
If you have any feedback or anything is unclear feel free to open an issue. I am thinking I am going to take this and expand the concepts to start as a beginners primer going through the primary concepts in brief akin to Elixir School, and then expand it into building this and a web service that is using it and offering some real time features.
sbrother•2h ago
FYI if anyone is looking for a production ready job runner in Elixir, I strongly recommend Oban. They have a paid pro version but the open source version is still absolutely fantastic.
victorbjorklund•2h ago
Just to add to the parent the Open Source version and the Pro Version just differs in that the Pro Version has a few plugins that the normal version has (for example workflows where you can have multiple workers working together) but it is not something you need for most use-cases.
pikdum•43m ago
It's more than just a few - even more basic things like rate limiting or concurrency controls are gated behind Pro. It works extremely well, but I've been reluctant to use it in open source projects because there's quite a bit in there I'd need to rebuild.
rhgraysonii•2h ago
Oban is great! This is definitely just met to be a learning exercise. But it could go quite a ways on its own in prod.
cpursley•1h ago
I’d love to see one for Elixir built around the Postgres pgmq and pg_crom extensions similar to what pgflow is doing: https://www.pgflow.dev/
rhgraysonii•1h ago
That would be super cool. Pretty much everything Supabase is up to is awesome.
cpursley•1h ago
Yeah, their realtime thing is powered by Elixir (listens to Postgres WAL).
jamal-kumar•1h ago
The absolute facility with which you can do distributed applications in Elixir is the big thing that sold me in the first place. Nice to see this tutorial!
hmmokidk•1h ago
Incredibly well written. You clearly put a lot of thought and effort into this. Thank you.

Also FOR UPDATE SKIP LOCKED is interesting.

rhgraysonii•1h ago
You also could use an advisory exact lock, which would serialize the order of input and force everyone to wait in line, but the advantage here is that we are allowed shared concurrent reads while maintaining our lock. Thank you for the feedback. It was fun to revisit after 10 years. The initial piece came after a Columbus, OH Ruby meetup that Jose attended. It was quite fun to see him put it together as a whole and I ran with things a bit further than his first ideas with this.
huqedato•43m ago
Years ago I built something similar, a Pub/Sub notification system: https://github.com/huqedato/qnotix. It is still running (with small modifications), in production, at my ex-customer.

Such a pity the industry (customers) reacts with skepticism every time I propose solutions based in Elixir/Erlang. I always hear: "Elixir, what? We want Java/.Net/Python/php"

jbverschoor•27m ago
It means they don't trust your judgement, aka you're just there to execute their plans. You're the floor guy, not the architect, owner, or developer of a house.
huqedato•20m ago
Not really. I am usually the one they pay to solve their problems. It's not a matter of trusting my judgement, rather they are trapped in an institutional/corporate mindset (old patterns are most suitable, 'best practice', 'reliable, proven tech' and such)

Firefox Profiler

https://profiler.firefox.com
1•lnkl•23s ago•0 comments

A Spectre is Haunting Unicode (2018)

https://www.dampfkraft.com/by-id/a824aa10/#A-Spectre-is-Haunting-Unicode
1•Tomte•2m ago•0 comments

Using NetBSD's pkgsrc everywhere I can (2021)

https://rubenerd.com/using-netbsds-pkgsrc-everywhere-i-can/
1•Tomte•2m ago•0 comments

Quantum Link: AOL before it was AOL

https://dfarq.homeip.net/quantum-link-aol-before-it-was-aol/
1•rbanffy•10m ago•0 comments

Is Apple Going the Same Way as Intel? – Sharp Tech with Ben Thompson

https://www.youtube.com/watch?v=k_kpHHbSCaQ
3•retskrad•13m ago•1 comments

Show HN: I revived an unfinished vector image generator by turning to Cursor

https://www.tinyvectors.com/
1•visiwig•14m ago•0 comments

Embrace Boring Technology

https://dontbreakprod.com/posts/embrace-boring-technology
1•dorkrawk•15m ago•0 comments

'Strange metals' point to a whole new way to understand electricity

https://www.science.org/content/article/strange-metals-point-whole-new-way-understand-electricity
2•rbanffy•16m ago•0 comments

Digg founder Kevin Rose offers to buy Pocket from Mozilla

https://techcrunch.com/2025/05/23/digg-founder-kevin-rose-offers-to-buy-pocket-from-mozilla/
3•gorbachev•16m ago•0 comments

Robots Solved a 280k-Year Seafloor Mystery Hidden Beneath Big Sur

https://scitechdaily.com/how-robots-solved-a-280000-year-seafloor-mystery-hidden-beneath-big-sur/
2•Brajeshwar•18m ago•0 comments

The Waker Allocation Problem

https://blog.yoshuawuyts.com/the-waker-allocation-problem
1•emschwartz•18m ago•0 comments

Introduction Laminize: AI Autocomplete for Everything

https://laminize.com/
2•DominikAmadeus•21m ago•1 comments

Horizon Drive: The Shopify Editions Game

https://www.shopify.com/editions/summer2025/drive
1•doppp•23m ago•0 comments

What did dinosaurs sound like?

https://www.bbc.com/future/article/20221212-the-mysterious-song-of-the-dinosaurs
2•rolph•23m ago•0 comments

Judge Blocks Trump Move to Halt Harvard's International Student Visas

https://www.thecrimson.com/article/2025/5/23/harvard-international-students-tro/
10•MinimalAction•24m ago•2 comments

Inigo Quilez – Painting with Math [video]

https://www.youtube.com/watch?v=F1ax1iJTHFs
1•bj-rn•25m ago•0 comments

Supreme Court dooms taxpayer funded Catholic charter school in Oklahoma

https://apnews.com/article/supreme-court-oklahoma-public-religious-charter-school-170e3701926e29ea5072eb50f0db97b6
3•pavel_lishin•25m ago•0 comments

Show HN: I built a directory for side hustles to help people exit the rat race

https://esidehustles.com/
2•OdehAhwal•25m ago•1 comments

Beyond Semantics: Unreasonable Effectiveness of Reasonless Intermediate Tokens

https://arxiv.org/abs/2505.13775
13•nyrikki•27m ago•0 comments

Federal judge halts Trump admin ban on Harvard's ability to enroll intl students

https://www.cnn.com/2025/05/22/us/harvard-university-trump-international-students
5•zzzeek•28m ago•0 comments

Code Review is not about making your code better (2023)

https://theahura.substack.com/p/on-code-review
1•theahura•29m ago•0 comments

The End of Sierra as We Knew It, Part 4: Chainsaw Monday

https://www.filfre.net/2025/05/the-end-of-sierra-as-we-knew-it-part-4-chainsaw-monday/
2•doppp•29m ago•0 comments

Fakespot Is Shutting Down

https://arstechnica.com/gadgets/2025/05/mozilla-is-killing-its-pocket-and-fakespot-services-to-focus-on-firefox/
1•fortran77•30m ago•1 comments

The Pedestrians Who Abetted a Hawk's Deadly Attack

https://www.theatlantic.com/science/archive/2025/05/hawk-new-jersey-traffic/682913/
2•JumpCrisscross•35m ago•0 comments

Unix Workstations – The Computer Collection

https://www.computercollection.net/index.php/unix-workstations/
3•rbanffy•38m ago•0 comments

Find Your People

https://foundersatwork.posthaven.com/find-your-people
16•jl•38m ago•2 comments

"Free" VPNs much do route other peoples' traffic through your system

https://infosec.exchange/@briankrebs/114554342397497638
2•gpi•41m ago•0 comments

Building a blog that teaches you everything about LLMs

https://llmseoguide.com/
1•mattmerrick•45m ago•0 comments

Go synctest: solving flaky tests

https://victoriametrics.com/blog/go-synctest/index.html
1•valyala•45m ago•0 comments

Looking to Take Your Beard to the Next Level?

https://beardsorcery.com
1•mooreds•45m ago•0 comments