Maxim Sakhno @maxim-sakhno.bsky.social · 28/01/2026But wait... didn't LiteStar beat FastAPI in their own benchmarks? Ah, they used nested dependencies only! That explains it. 💡 110 1
Maxim Sakhno @maxim-sakhno.bsky.social · 28/01/2026So, what kind of dependency graph are they actually testing? 🧐 Let’s dig into the official benchmark source code. Link: docs.litestar.dev/latest/bench... Take a look at the setup below. What do you see? 👇 110 1
Maxim Sakhno @maxim-sakhno.bsky.social · 28/01/2026Mystery solved! 🔍 In the official benchmark, the graph is just a linear chain. It results in stages with exactly one dependency each. Since there’s nothing to parallelize, TaskGroups aren't even triggered! Look at this linear "batching" below. 👇 110 1