News for hackers. Stuff that matters.
Re:New ScyllaDB Go Driver: Faster Than GoCQL and Its Rust Co... by raverbashing on Thursday October 13, 2022 @07:02AM (#33189471)
I wonder how many people are using 'async' just for the sake of it without a real need for it and shooting themselves in the foot while at it
Re:New ScyllaDB Go Driver: Faster Than GoCQL and Its Rust Co... by pkolaczk on Thursday October 13, 2022 @07:50AM (#33189729)
Actually in this case async is the only way to get sane performance and both drivers deliver excellent performance thanks to async. I've been using Scylla Rust driver in my C* benchmarking project and it is an order of magnitude faster than the tools which use threads.

https://github.com/pkolaczk/latte

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.