Show HN: Regulo – an adaptive semaphore for saturation control

Built this semaphore while working on our bootstrapped community dating platform (june.dating) after a traffic spike hit our SSR rendering path.

It's a priority-queue semaphore with weighted permits, a saturation circuit breaker (trips on timeouts, not errors), and adaptive backoff. It has some baked in observability with status(), which gives you queue depth, latency, and circuit state for free. Zero dependencies, ~26KB minified, TypeScript, ESM+CJS.

Written by a human, optimized by the bots.

2 points bnjemian 4 months ago 0 comments

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton