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
12•seuros•1d 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•1d 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•22h 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•19h 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.

seuros•7h ago
I did split the readme now. Thank you again.

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

https://alpha.lisagui.com/
388•ayaros•18h ago•113 comments

Show HN: Piano Trainer – Learn piano scales, chords and more using MIDI

https://github.com/ZaneH/piano-trainer
101•FinalDestiny•2d ago•28 comments

Show HN: A Language Server Implementation for SystemD Unit Files

https://github.com/JFryy/systemd-lsp
55•arandomhuman•12h ago•19 comments

Show HN: Modernized file manager and program manager from Windows 3.x

https://github.com/brianluft/heirloom
46•electroly•13h ago•7 comments

Show HN: A browser extension that removes the algorithmic X 'For you' evil tab

https://github.com/alterebro/bye-for-you
3•alterebro•2h ago•2 comments

Show HN: A tool that explains Python errors like you're five

https://github.com/Zahabsbs/Error-Narrator
2•BB5•7h ago•0 comments

Show HN: Pixel Art Generator Using Genetic Algorithm

https://github.com/Yutarop/ga-pixel-art
19•ponta17•22h ago•12 comments

Show HN: Simple wrapper for Chrome's built-in local LLM (Gemini Nano)

https://github.com/kstonekuan/simple-chromium-ai
26•kstonekuan•19h ago•2 comments

Show HN: I made Logic gates using CSS if() function

https://yongsk0066.github.io/css_if_logic_gate/
79•yongsk0066•4d ago•20 comments

Show HN: a community for collaborating on sideprojects

https://relentlessly.no/
39•0dKD•4d ago•25 comments

Show HN: GraphFlow – A lightweight Rust framework for multi-agent orchestration

https://github.com/a-agmon/rs-graph-llm
8•alonagmon•22h ago•1 comments

Show HN: uvtarget – a helpful utility to manage Python in CMake, powered by uv

https://github.com/basis-robotics/uvtarget
5•a_t48•13h ago•0 comments

Show HN: AirBending – Hand gesture based macOS app MIDI controller

https://www.nanassound.com/products/software/airbending
90•bepitulaz•2d ago•22 comments

Show HN: ParsePoint – AI OCR that pipes any invoice straight into Excel

https://parsepoint.app
6•marcinczubala•23h ago•1 comments

Show HN: BunkerWeb – the open-source and cloud-native WAF

https://docs.bunkerweb.io/latest/
103•bnkty•3d ago•30 comments

Show HN: I AI-coded a tower defense game and documented the whole process

https://github.com/maciej-trebacz/tower-of-time-game
307•M4v3R•3d ago•150 comments

Show HN: I built a website to summarize Tech Twitter each day

https://www.todayontechtwitter.com
5•nsomani•10h ago•2 comments

Show HN: AI-Powered SLA Breach Predictor for Jira (Open Source, Python)

https://github.com/aroojjaved93/AI-Powered-Ticket-Routing-SLA-Breach-Prediction-in-JIRA
3•aroojjaved•17h ago•0 comments

Show HN: I made a crowd counting game

https://crowdle.xyz/
5•3yanlis1bos•17h ago•2 comments

Show HN: Pelyos – A calm, minimal task manager for clarity and focus

https://pelyos.app/
3•pavelparma•17h ago•0 comments

Show HN: LLML: Data Structures => Prompts

2•knrz•18h ago•0 comments

Show HN: I made this free tool in 4 days to make your screenshots 10x better.

https://www.shotcanvas.com/
6•stjernberg•18h ago•2 comments

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

https://github.com/seuros/breaker_machines
12•seuros•1d ago•4 comments

Show HN: Fast Thermodynamic Calculations in Python

https://dlr-institute-of-future-fuels.github.io/gaspype/
58•Saloc•3d ago•11 comments

Show HN: HomeBrew HN – Generate personal context for content ranking

https://www.hackernews.coffee/
124•azath92•4d ago•48 comments

Show HN: A cross-platform terminal emulator written in Java

https://github.com/sebkur/forceterm
64•sebkur•6d ago•20 comments

Show HN: A continuation of IRS Direct File that can be self-hosted

https://github.com/openfiletax/openfile
244•elijahwright_•6d ago•33 comments

Show HN: Kuqu: SQL for Kubernetes Resources

https://github.com/ynqa/kuqu
2•aqny•21h ago•0 comments

Show HN: Guess the Sharpe

https://guessthesharpe.in
3•sankethchebbi•21h ago•0 comments

Show HN: Comically – TUI manga and comic optimizer for e-readers

https://github.com/nicoburniske/comically
4•nicoburniske•21h ago•3 comments