evoxmusic / twitter-clone-rust

Twitter clone in Rust
https://docs.qovery.com/guides/tutorial/create-a-blazingly-fast-api-in-rust/
131 stars 42 forks source link

actix-web using dieseil is slowest possible combination #1

Closed dunnock closed 4 years ago

dunnock commented 4 years ago

If speaking of performance, this is not ideal combination at all. Which can be seen in techempowerbenchmark. I would suggest to use tokio-postgres or deadpool-postgres, I ve spent quite a lot of time benchmarking that https://github.com/dunnock/actix-node-benchmark/tree/master/actix-bench And https://medium.com/@maxsparr0w/performance-of-node-js-compared-to-actix-web-37f20810fb1a

evoxmusic commented 4 years ago

Thanks @dunnock , good catch, I was wondering if they were an async driver available. I'm gonna read your article.

dunnock commented 4 years ago

Cool, closing this as it was only advice

evoxmusic commented 4 years ago

@dunnock great article BTW, I will make a note to my part 1 concerning your advice 👍. I will include the bench of this async driver as well for part 2.

Stay safe. Romaric.