Skip to content
View janbalangue's full-sized avatar
🎹
🎹

Block or report janbalangue

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
janbalangue/README.md

Hi, I'm Jay.

I'm a backend engineer (Java/Spring, TypeScript). Most of what's here is about one question: what should a service do when more work arrives than it can run?

My answer is admission control. Decide before a request starts whether there is room for it, and reject the excess right away instead of letting it queue. Lately that means LLM traffic, where one call uses 500 tokens and the next uses 100,000.

flowchart LR
    I["Interactive traffic"] --> T
    B["Batch jobs"] --> T
    T{{"Tyr decides before the provider is called"}}
    T -->|"room: admit"| P["LLM provider or inference server"]
    T -.->|"no room: reject"| X["429 with a retry hint"]
    L["Latchflo control plane"] -.->|"capacity grants"| T
Loading

Across eight matched seeds of a live OpenAI overload, interactive requests behind Tyr completed 98.6% of the time, against 68.1% behind a static concurrency cap of the same size, and Tyr led in every seed. It did that by shedding more batch work, and it is not a latency win. Result file · All evidence

MoFlux: admission control for shared LLM capacity

Project What it does
Tyr Admission-first proxy for the Anthropic and OpenAI APIs. It reserves a request's tokens before the provider is called, so a batch flood can't take the capacity interactive traffic depends on. TypeScript, Apache-2.0. Docs
async-bulkhead-llm The library Tyr is built on: in-process concurrency and token budgets for LLM calls in a Node.js service. npm
async-bulkhead The same fail-fast idea for Java: bounded in-flight work, no queue, and rejection you can see. Maven Central
moflux-bench The benchmark harness behind the published numbers. Every policy replays the same trace, you can reproduce every baseline yourself, and the runs that failed are published too.
Latchflo Control plane that shares one capacity envelope across a fleet of Tyr replicas without sitting on the request path. Proprietary.

MoFlux is Tyr plus Latchflo. To see Tyr work in five minutes with no API key, run its eval. There are also bulkheads for plain Node.js, Express and outbound fetch calls.

Read and play

Away from the request path

I arrange and record piano music (YouTube, SoundCloud) and build JamSpot, an app for finding local concerts. 🎹

Get in touch

If batch LLM work is starving your interactive traffic, I'd like to hear about it: MoFlux is open to design-partner pilots. For anything else, find me at jb-site.dev or on LinkedIn.

Pinned Loading

  1. async-bulkhead-llm async-bulkhead-llm Public

    Protects LLM applications from overload by enforcing concurrency and token budgets before provider calls, rejecting excess work early to preserve responsiveness and reduce 429 errors.

    TypeScript 3 1

  2. async-bulkhead-ts async-bulkhead-ts Public

    Fail-fast admission control for async systems and the foundational TypeScript dependency of async-bulkhead-llm.

    TypeScript

  3. moflux-bench moflux-bench Public

    Reproducible benchmark harness for MoFlux admission control, with deterministic paired seed sweeps measuring latency, goodput, overload protection, token accounting, and policy trade-offs across Ty…

    JavaScript

  4. jamspot jamspot Public

    A cross-platform concert discovery and music community app for finding events, sharing reviews, creating events, and connecting through music.

    TypeScript 1

  5. tyr-admission-controller tyr-admission-controller Public

    An admission-first proxy for OpenAI and Anthropic requests, with token reservations, workload isolation, identity-aware admission classes, and optional distributed coordination via Latchflo.

    TypeScript 1

  6. async-bulkhead async-bulkhead Public

    A focused async bulkhead for Java that limits in-flight work and makes overload visible.

    Java 3