mehcode / actix-diesel

Integrate Diesel into Actix (and Actix Web) cleanly and efficiently.
Apache License 2.0
85 stars 16 forks source link

Request README update with performance characteristics and internal operation #2

Closed nous- closed 4 years ago

nous- commented 4 years ago

Hello,

I am seeking the the type-safety of Diesel with the performance of actix-pg.

Are the internals of this library ushering calls out to synchronous actors to do standard diesel blocking calls? What are its performance characteristics? It would be helpful to have these details added to the README.

Thank you for your contribution to the community.

mehcode commented 4 years ago

In short, Diesel is synchronous. There is nothing we can do from outside Diesel to affect that. This is using SyncActor from Actix to spawn database worker threads and communicating results back through futures.


I'll accept a pull request that annotates this. I don't have the time myself to do much here. This was more an experiment. I've moved away from Actix going forward myself.

ITwrx commented 4 years ago

@mehcode I'm new to rust and evaluating things. If you've moved away from Actix what are you planning on using going forward? thanks

mehcode commented 4 years ago

I currently use https://github.com/http-rs/tide/ with https://github.com/launchbadge/sqlx

ITwrx commented 4 years ago

thanks a lot.