You can inject web::Data<T> into your handlers for any dependency you'd like : database pools, config objects, in-memory caches that you populate from another thread.
Serde makes request and response marshalling a breeze.
The websocket support is great too.
We're using it for a couple of high traffic websites now.
The ecosystem needs better SQL tools. Diesel is too ORMy, and SQLx has rough edges around connection pooling. But these aren't show stoppers, and it'll get better.
It is, yeah! Been such a joy using it, great docs as well. Haven't done much with a DB yet (other than following along the awesome Zero 2 Prod book) but my general impression of SQLx was quite good!
You can inject web::Data<T> into your handlers for any dependency you'd like : database pools, config objects, in-memory caches that you populate from another thread.
Serde makes request and response marshalling a breeze.
The websocket support is great too.
We're using it for a couple of high traffic websites now.
The ecosystem needs better SQL tools. Diesel is too ORMy, and SQLx has rough edges around connection pooling. But these aren't show stoppers, and it'll get better.