Is async/await used more often than multi-threading in RisingWave? If so, why?
Yue is asking about the prevalence of async/await and multi-threading in RisingWave, and the reasons behind the preference for async/await over multi-threading.
Async/await is used more often than multi-threading in RisingWave.
Async/await is preferred because it can better utilize thread resources, especially in scenarios involving IO calls like TCP sends.
Async/await allows for efficient handling of thousands of concurrent events even with a single thread by temporarily storing and resuming contexts upon IO call completion.