Arjun Mehta
banner
pachanpresent.bsky.social
Arjun Mehta
@pachanpresent.bsky.social
Python Developer, 5+ years of experience
I haven't known about such a big resource consumption of DI
In the previous thread, Litestar's RPS dropped 36% with 2+ flat dependencies due to TaskGroup overhead. 📉

How do #Litestar and #FastAPI perform with real DB queries in dependencies? Let's figure it out in this thread 🧵

#Python
February 3, 2026 at 2:53 PM
Will follow this issue
Summarized my findings and opened an issue. Hoping to help make #LiteStar just a little bit better.
github.com/litestar-org...

#Python #Backend #WebDev
January 29, 2026 at 5:02 PM
Reposted by Arjun Mehta
Is #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
January 28, 2026 at 5:51 PM