Maxim Sakhno @maxim-sakhno.bsky.social · 28/01/2026Found the suspect! 🕵️♂️ Look at the resolution logic below. LiteStar is a bit too ambitious: it spawns a full TaskGroup for any batch larger than 1. That overhead is exactly what's tanking the RPS when you add that second dependency. 👇 110
Maxim Sakhno @maxim-sakhno.bsky.social · 28/01/2026The logic behind the batches: Kahn’s algorithm for topological sorting. 🧠 LiteStar's implementation: dub.sh/0DG8van LiteStar uses it to identify which dependencies can run in parallel and groups them into batches. The algorithm visualization 👇 110