https://dev.to/v3ss0n/litestar-20-beta-speed-of-light-power-...
https://dev.to/v3ss0n/litestar-20-beta-speed-of-light-power-...
[1] https://github.com/KiraPC/fastapi-router-controller [2] https://github.com/tiangolo/fastapi/issues/617
[1] https://docs.litestar.dev/latest/#feature-comparison-with-si...
app = Litestar(on_startup=[get_db_connection], on_shutdown=[close_db_connection])
We have quite powerful channels and event systems that goes along with websocket and realtime systems too.Plus , if you use Repository + Sqlalchmey Plugin and DTO , you can also work with CRUD events before_update/after_update/before_insert/after_instet etc
Starlette can be considered pure server framework in the lines of CherryPy, wezurg in wsgi/sync world.
Litestar is a lot more battery included with built-in integration to Sqalchemy, many other ORMs as plugin. Built-in security and authentication middleware.
Join our discord, we have good community there too .
Starlette and Litestar are very different. Starlette is closer to Flask or actually Werkzeug; A micro framework / toolkit for building apps.
While we don’t aim to develop "The next Django", Litestar offers way more out of the box than Starlette and other micro frameworks.