3 ms·
Others have integrated io_uring with asio, and asio with co-routines. The performance is about the same. The complexity is a matter of taste: asio offers lots b
by pencilguin 4y ago
Others have integrated io_uring with asio, and asio with co-routines. The performance is about the same. The complexity is a matter of taste: asio offers lots built in that you would need to code yourself for the next project.
I generally lean toward lower total complexity at cost if more custom coding, but it is a big tent.
- wolletd 4y agoI recently built something to connect asio with gRPC: https://github.com/WolleTD/asio-grpc-callback https://github.com/WolleTD/asio-grpc-callback The channels and co_yield-capable coros from asio::experimental are quite fun to use for streams. When you have prior experience with async programming in other languages, e.g. Python or Rust, it's really handy that you don't have to define any awaitable types to use asio with coroutines.