Re:New ScyllaDB Go Driver: Faster Than GoCQL and Its Rust Co...
by raverbashing on Thursday October 13, 2022 @08:33AM
(#33190112)
Cool, good to know. I know threads are a limiting factor, but sometimes people jump into async while the problem is somewhere else
Re:New ScyllaDB Go Driver: Faster Than GoCQL and Its Rust Co...
by pkolaczk on Thursday October 13, 2022 @09:38AM
(#33190759)
In this case each request is very tiny amount of work on the client, so waking up a thread to do that work just to immediately block waiting on the response from the server is very wasteful. With async you can send hundreds of requests in a simple loop, on a single thread. It's not only more efficient but also actually easier to write.
https://github.com/pkolaczk/latte