Maxim Sakhno @maxim-sakhno.bsky.social · 28/01/2026Is #LiteStar faster than #FastAPI? Benchmarks say yes, but look at Dependency Injection. 📉 Adding just 2 flat dependencies significantly degrades the throughput. I dug into the source to find why. Thread: TaskGroups, Kahn's algorithm & performance trade-offs. 🧵 #Python #Backend #WebDev 362
Maxim Sakhno @maxim-sakhno.bsky.social · 28/01/2026The scenario: simple flat dependencies. No nesting, just direct injection. Below is the LiteStar setup and the dependency graph it builds behind the scenes. 👇 110
Maria Sosnovskaya @sosnovskaya.bsky.social · 28/01/2026Thank you for the research, it's very interesting :) Now I will know about this behavior of LiteStar! 000