bmitc commented on issue #136: URL: https://github.com/apache/avro-rs/issues/136#issuecomment-3084874489
This is a fairly large hiccup in work I am doing. Everything in the application, which makes file reads and HTTP requests, runs within Tokio, but to read data with the Avro reader, I need to use [`SyncIoBridge`](https://docs.rs/tokio-util/latest/tokio_util/io/struct.SyncIoBridge.html) to be able to pass [`tokio_stream::Stream`](https://docs.rs/tokio-stream/latest/tokio_stream/) (via a `StreamReader`) data. > What would be the benefit of using async in Avro? The benefits of async are not specific to Avro but apply to Avro. By this library being synchronous only, to read multiple files all concurrently, one needs to use threads rather than an asynchronous, task-based runtime like Tokio. > File IO is not async anyway. > Computation should be sync too. This is not accurate. Tokio provides asynchronous file utilities via [`tokio::fs`](https://docs.rs/tokio/latest/tokio/fs/index.html). For example, [`tokio::fs::File`](https://docs.rs/tokio/latest/tokio/fs/struct.File.html) is `AsyncRead`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@avro.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org