frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Faultline – distributed job queue with exactly-once execution guarantees

https://github.com/kritibehl/faultline
1•kritibehl•1h ago

Comments

kritibehl•1h ago
Most distributed job queue implementations rely on lease timeouts to prevent duplicate execution. The assumption is: if a worker hasn't checked in by the deadline, it's safe to reassign the job.

The assumption is wrong. A slow worker can finish the job, commit the result, and fail before acknowledging the expiry — while another worker has already picked up the "abandoned" job. Two workers, one job, undefined behavior.

Faultline uses two layers to prevent this:

Fencing tokens — every lease acquisition increments a monotonic counter. A worker holding generation 6 cannot commit using generation 7's slot. The application layer rejects the stale write before it reaches the database.

UNIQUE(job_id, fencing_token) — a database constraint that makes duplicate commits physically impossible regardless of application logic. Even if there's a bug in the token check, the DB rejects the second insert.

I wanted to actually validate these guarantees rather than just reason about them, so I built a 29-assertion drill suite covering 16 failure scenarios (mid-execution crashes, stale worker commit attempts, concurrent reclaim races, retry exhaustion, network interruptions during commit).

Then I added FaultProxy — a configurable psycopg2 wrapper that injects latency, connection drops and query timeouts independently. I ran the full 500-reproduction suite at 0%, 5% and 10% fault injection rates. Results across 1,500 total race reproductions: 0 duplicate commits, 1,500 stale-write rejections confirmed.

The repo has the full drill suite, FaultProxy implementation and instructions for running against a real PostgreSQL instance.

GitHub: https://github.com/kritibehl/faultline

Curious what failure modes others have hit in distributed job processing that aren't covered by the fencing token + DB constraint approach.

1•Sayuj01•17s ago

The Bay Area Considers the Unthinkable: Life Without BART

https://www.nytimes.com/2026/03/10/us/bart-bay-area-san-francisco-transit.html
1•mitchbob•1m ago•0 comments

A Methodological Critique of "First Proof" (Abouzaid et al., 2026)

1•Beo_VN•1m ago•0 comments

Umbra Open Data Tracker

https://github.com/bellingcat/umbra-open-data-tracker
1•marklit•1m ago•0 comments

Show HN: A tool for arranging photos for home-printing without wasting paper

https://dj-louw.github.io/photo-collage-printer/
1•beAbU•2m ago•0 comments

I've never parented a 6-year-old child. But I've dealt with macOS system updates

https://ihnatko.com/ive-never-had-the-experience-of-parenting-a-6-year-old-child-but-ive-dealt-wi...
1•brie22•3m ago•0 comments

Rising Air-Conditioning Use Intensifies Global Warming

https://www.nature.com/articles/s41467-026-69393-1
1•PaulHoule•4m ago•0 comments

Exigy Shareware Construction Kit

https://exigy.org/about
1•rainingmonkey•4m ago•0 comments

Every paper published in the Bridges Conference on art and mathematics

https://archive.bridgesmathart.org/#gsc.tab=0
1•futurecat•4m ago•0 comments

I built a RabbtiMQ UI alternative because its not 2005 anymore

https://github.com/AgdirAS/rask.agdir.farm
1•xnf•4m ago•0 comments

How God Got So Great

https://www.newyorker.com/magazine/2026/03/09/how-god-got-so-great
1•bookofjoe•6m ago•1 comments

Texas women used crow drones to fly drugs into Louisiana prison

https://www.fox4news.com/news/texas-women-use-crow-drones-fly-drugs-louisiana-prison-authorities-say
1•randycupertino•6m ago•0 comments

Local-First CI/CD with Makefiles

https://shipyard.build/blog/local-first-cicd-with-makefiles/
1•alwillis•7m ago•0 comments

I'm 21 and My Startup Scalify.ai Is Going Viral

https://www.scalify.ai
1•josh-ternyak•7m ago•0 comments

Show HN: RunAnwhere – Faster AI Inference on Apple Silicon

https://github.com/RunanywhereAI/rcli
4•sanchitmonga22•7m ago•0 comments

"This guy's arrogance takes your breath away" (2016)

https://medium.com/@acidflask/this-guys-arrogance-takes-your-breath-away-5b903624ca5f
1•tosh•9m ago•0 comments

The evolution of Mac app window corners

https://lapcatsoftware.com/articles/2026/3/4.html
2•zdw•10m ago•0 comments

Gateproof: Build Software in Reverse

https://gateproof.dev/
1•handfuloflight•11m ago•0 comments

Philippines shifts to four-day work week as Iran war pushes oil prices up

https://www.channelnewsasia.com/asia/philippines-four-day-work-week-iran-us-war-oil-fuel-prices-f...
3•vishalontheline•11m ago•2 comments

Kung Fu: The Way of Violence Has No Mind [video]

https://www.youtube.com/watch?v=D6nvqmsz9do
2•jamesgill•12m ago•0 comments

Team simulates a living cell that grows and divides

https://news.illinois.edu/team-simulates-a-living-cell-that-grows-and-divides/
2•gmays•13m ago•0 comments

Isotopic Evidence for a Cold and Distant Origin of Interstellar Object 3I/Atlas

https://arxiv.org/abs/2603.06911
3•bikenaga•14m ago•0 comments

Defeat as Method

https://www.cabinetmagazine.org/issues/71/khosravi.php
3•akbarnama•15m ago•0 comments

Ad-tech is fascist tech

https://pluralistic.net/2026/03/10/ice-tech/
7•whyleyc•15m ago•2 comments

Berth – One-command deploys for AI-generated code (no Docker, no YAML)

https://getberth.dev
2•carlosinfantes•17m ago•1 comments

Writing an LLM from scratch, part 32e – Interventions: the learning rate

https://www.gilesthomas.com/2026/03/llm-from-scratch-32e-interventions-learning-rate
3•gpjt•17m ago•0 comments

Microsoft Copilot Update Hijacks Default Browser Links

https://reclaimthenet.org/microsoft-copilot-update-hijacks-default-browser-links
7•miohtama•17m ago•0 comments

Is Music Just Sound?

https://perthirtysix.com/is-music-just-sound
3•robmoore•19m ago•1 comments

Starting to building an open-source tool to track how AI agents search the web

https://github.com/clawpify/clawpify
2•alhwyn•19m ago•1 comments

A funny game:Guesss AI or human?

https://www.youraislopboresmegame.com/en
2•jeyzolo•20m ago•1 comments