frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Show HN: BreakerMachines – Modern Circuit Breaker for Rails with Async Support

https://github.com/seuros/breaker_machines
11•seuros•8h ago
BreakerMachines is a production-ready circuit breaker for Ruby/Rails with built-in async/fiber support, fallback chains, and rich monitoring. Unlike existing gems, it handles modern Ruby's fiber scheduler and avoids dangerous thread timeouts.

Comments

seuros•8h ago
Hey HN! I extracted BreakerMachines from my apps after seeing people dealing with cascading failures in production Rails apps.

Key features that set it apart:

- True async/fiber support (works with Falcon, async gems)

- Built-in fallback mechanism with chaining

- Thread-safe without dangerous Timeout.timeout

- Memory-efficient with WeakRef tracking

- Rich introspection and monitoring hooks

- Clean DSL that works with inheritance

With everyone adding AI/LLM APIs to their apps, circuit breakers are more critical than ever.

These APIs can be slow, flaky, or have outages - without protection, your app goes down with them.

The README shows patterns for graceful degradation when a service is down.

I explicitly avoided shipping Redis/DB adapters to keep it focused, the README shows how to implement your own in ~20 lines.

Would love feedback on the API design and any edge cases I might have missed!

I'm still going to add the parallel feature, i removed it because i need to test it in CI.

felipemesquita•5h ago
I’m usually weary of long readmes with too much styling as that indicates to me a high likelihood that they were written by ai and the author might not have even read all of it. The use of generic ai images also gives a bad impression - for example, there’s an image captioned “The green lines? Those are your CPU cycles escaping.” without anything green pictured.

I’m not saying your gem is bad. It’s nice to se an attempt at a circuit breaker that is based on the state machines gem, I will certainly look into the actual code if I have a need for it in the future.

Just wanted to give you this bit of feedback about maybe cutting down on length and loosing the ai images in the readme as I think it might be a turnoff for others as well.

seuros•1h ago
Appreciate the feedback—really.

You are correct to point out the mismatch on the image caption, i generated a few and copied the wrong one. That one's on me, i will update it later.

And while AI might correct a typo or help rephrase a sentence here or there (I’m not a native English speaker), everything in that README—tone, structure, content, rants, and lore—is 100% me. It's my style. Love it or leave it.

As for scaring people off ? That’s not a bug, that’s a feature. This is an open source circuit breaker, not a SaaS onboarding funnel. If someone decides not to use a well-tested library because the README isn’t sterile enough for their corporate taste, that is their loss. I'm not here trying to win two potential enterprise clients who expect a PDF pitch deck and a hug.

The circuit breaker pattern itself isn’t new, I didn't invent it, it has even its own wikipedia page. But the Ruby ecosystem? Still treating it like a nice to have.

Existing circuit breaker gems like Circuitbox, Semian, etc., are stuck in the past. They rely on patterns and syntax from the Ruby 2.6 era, and integrating them into a modern codebase often means a painful refactor or bending your architecture backwards. BreakerMachines is built for 2025, fully async, fiber-safe, and designed to work with modern Ruby without dragging a legacy ball and chain. It's don't even support version of ruby that is 1 version behind. Upgrade then use.

If someone is going to get frustrated by a long README or AI-generated images, they’re welcome to go pay someone to write them a handcrafted if/else block and call it resilience.

The code is clean. The tests are good. And if just that MD file makes them walk away from that—again, their loss. They don't even read it.

I maintain a ton of gems. And I’ll be honest: my enthusiasm for open source has been repeatedly drained by the "please make this more corporate-friendly" crowd. Not talking about you specifically—but there’s a whole wave of people who want everything politically polished and personality-free. That’s not why Ruby was created.

Ruby was made for joy. And this gem? It reflects that.

Cheers for actually reading and for giving honest feedback. You’re rare for that. Just don’t expect me to dress up like a SaaS salesperson anytime soon.

Show HN: I wrote a "web OS" based on the Apple Lisa's UI, with 1-bit graphics

https://alpha.lisagui.com/
69•ayaros•52m ago•15 comments

Get the location of the ISS using DNS

https://shkspr.mobi/blog/2025/07/get-the-location-of-the-iss-using-dns/
203•8organicbits•6h ago•68 comments

Functions Are Vectors (2023)

https://thenumb.at/Functions-are-Vectors/
103•azeemba•4h ago•47 comments

Hannah Cairo has solved the Mizohata-Takeuchi conjecture

https://english.elpais.com/science-tech/2025-07-01/a-17-year-old-teen-refutes-a-mathematical-conjecture-proposed-40-years-ago.html
228•leephillips•4h ago•31 comments

Lessons from 863 episodes of This American Life

https://indarktrees.com/misc/tal/
10•cryzinger•1h ago•0 comments

Cool People [pdf]

https://www.apa.org/pubs/journals/releases/xge-xge0001799.pdf
12•ilamont•1h ago•2 comments

Collatz's Ant and Σ(n)

https://gbragafibra.github.io/2025/07/06/collatz_ant5.html
9•Fibra•2h ago•1 comments

Toys/Lag: Jerk Monitor

https://nothing.pcarrier.com/posts/lag/
28•ptramo•4h ago•20 comments

opencode: AI coding agent, built for the terminal

https://github.com/sst/opencode
9•indigodaddy•1h ago•1 comments

Metriport (YC S22) is hiring engineers to improve healthcare data exchange

https://www.ycombinator.com/companies/metriport/jobs/Rn2Je8M-software-engineer
1•dgoncharov•2h ago

Overthinking GIS (2024)

https://scottsexton.co/post/overthinking_gis/
89•todsacerdoti•10h ago•28 comments

Serving 200M requests per day with a CGI-bin

https://simonwillison.net/2025/Jul/5/cgi-bin-performance/
264•mustache_kimono•18h ago•216 comments

Overclocking LLM Reasoning: Monitoring and Controlling LLM Thinking Path Lengths

https://royeisen.github.io/OverclockingLLMReasoning-paper/
28•limoce•6h ago•0 comments

Hidden interface controls that affect usability

https://interactions.acm.org/archive/view/july-august-2025/stop-hiding-my-controls-hidden-interface-controls-are-affecting-usability
527•cxr•20h ago•372 comments

Luigi Lineri, the Man Who Collects and Categorizes Stones (2024)

https://mossandfog.com/luigi-lineri-the-man-who-collects-and-categorizes-stones/
5•Tomte•32m ago•0 comments

Claude Code Pro Limit? Hack It While You Sleep

https://github.com/terryso/claude-auto-resume
64•suchuanyi•4h ago•43 comments

What a Hacker Stole from Me

https://mynoise.net/blog.php
317•wonger_•20h ago•91 comments

Eastern Baltic cod grow much smaller than they did due to overfishing

https://www.smithsonianmag.com/smart-news/these-cod-have-been-shrinking-dramatically-for-decades-now-scientists-say-theyve-solved-the-mystery-180986920/
257•littlexsparkee•1d ago•83 comments

How to get started with Old English poetry

https://www.deadlanguagesociety.com/p/old-english-poetry
24•onthesly•1d ago•7 comments

'Shit in, shit out', AI is coming for agriculture, but farmers aren’t convinced

https://theconversation.com/shit-in-shit-out-ai-is-coming-for-agriculture-but-farmers-arent-convinced-259997
16•lr0•1h ago•8 comments

Take Two: Eshell

http://yummymelon.com/devnull/take-two-eshell.html
98•nanna•3d ago•58 comments

Reinforcement Learning from Human Feedback (RLHF) in Notebooks

https://github.com/ash80/RLHF_in_notebooks
54•ash_at_hny•5h ago•1 comments

July 5, 1687: When Newton explained why you don't float away

https://multiverseemployeehandbook.com/blog/when-newton-explained-why-you-dont-float-away/
86•TMEHpodcast•15h ago•87 comments

1945 TV Console Showed Two Programs at Once

https://spectrum.ieee.org/dumont-duoscopic-tv-set
9•pseudolus•1d ago•4 comments

Show HN: Pixel Art Generator Using Genetic Algorithm

https://github.com/Yutarop/ga-pixel-art
9•ponta17•4h ago•4 comments

Meet Bionode

https://microship.com/meet-bionode/
22•naves•4d ago•5 comments

Micro Common Lisp

https://t3x.org/mcl/index.html
7•todsacerdoti•33m ago•0 comments

How to Network as an Introvert

https://aginfer.bearblog.dev/how-to-network-as-an-introvert/
313•agcat•22h ago•115 comments

Development of a transputer ISA board

https://nanochess.org/transputer_board.html
64•nanochess•2d ago•8 comments

The force-feeding of AI features on an unwilling public

https://www.honest-broker.com/p/the-force-feeding-of-ai-on-an-unwilling
330•imartin2k•13h ago•279 comments