Litestar is worth a look

59 todsacerdoti 16 8/6/2025, 7:43:01 PM b-list.org ↗

Comments (16)

hnuser123456 · 34m ago
It's a python web framework, for those curious to know more before clicking through.
LigmaBaulls · 16m ago
thanks, saved me some time.
hariwb · 30m ago
Thanks for writing this. I have similar gripes about FastAPI having developed an application over the past few years; I'm also continually surprised at how prevalent the attitude is that FastAPI has excellent docs, given how divorced the tutorial / toy examples in the docs are from real-world development and measurement of an API.
ddejohn · 40m ago
Excellent post that actually gets into important details for real-world applications. I'm a huge fan of the design of Litestar.

> I also still think there are a lot of bad use cases for repositories and service layers that people should avoid, but that’s a digression which should probably become its own post

As a huge proponent of the repository pattern, I'll be looking forward to this post.

NeutralForest · 34m ago
Pretty cool post! I'm not sure how I feel about SQLAlchemy (not the star of the post but mentioned quite a bit); it's such a big ball of state that has so many surprises, I wonder if some people build entirely without it.
sambaumann · 17m ago
I recently built a personal project using peewee and it doesn't have a ton of bells and whistles but it works well for what it does do.
devjab · 21m ago
There is a rather big difference between traditional SQLAlchemy and Advanced Alchemy which is also made by Litestar. We've build with pure SQL and with SQLAlchemy in the past, but since we transitioned from django ninja to Litestar, we've not used SQLAlchemy and are slowly moving away from it. Well I guess Advanced Alchemy is still SQLAlchemy under the hood.
jessekv · 8m ago
I usually just use asyncpg.
MitPitt · 5m ago
You can use asyncpg in SQLAlchemy
cr125rider · 49m ago
Litestar is awesome. It’s great it’s got more than a single maintainer too.
cbzbc · 25m ago
How do people deploy this framework typically - speaking for myself, I found NGINX Unit somewhat fiddly.
intalentive · 8m ago
uvicorn systemd service behind nginx reverse proxy
indigodaddy · 2m ago
Or just docker/uvicorn
devjab · 17m ago
With uvicorn.
punnerud · 39m ago
Good to see it using port 8000 as default, and not Flasks 5000 (does not work on Mac anymore)
monadoid · 49m ago
This is well written, thanks!