Arjun Mehta
banner
pachanpresent.bsky.social
Arjun Mehta
@pachanpresent.bsky.social
Python Developer, 5+ years of experience
I was expecting this comparison!
Quick perf test: changed #LiteStar dependency resolution from TaskGroup to await.

RPS impact? Minimal vs 17% degradation with TaskGroup at 4 deps. Each request does 4 DB calls.

TaskGroup overhead matters more than expected.

More details in thread 👇

#Python #Backend
February 10, 2026 at 6:18 PM
Go watch this!
My #PyCon RU 2025 talk (Best Speaker award! 🏆) is now on YouTube: youtu.be/MpQgrhLO6aE

English subtitles available! 🇬🇧

I break down the Dependency Inversion Principle, compare popular #Python #DI frameworks, and show why they matter for building better applications.
Как в Python применяется инверсия зависимостей. Максим Сахно, Контур
YouTube video by Видео с мероприятий {speach!
youtu.be
February 6, 2026 at 9:17 AM
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