fluvio
fluvio copied to clipboard
tech debt: async version of pread
We use low-level pread
to perform block read, a synchronous operation. We need to build an async version. Here is scope:
- Centralize
pread
operation. This should be a fallback if async I/O is not available. We have duplicate usage. Preferably use https://github.com/bytecodealliance/rustix if possible instead of nix or libc. - IO-Uring backend for Linux.
- Async I/O for Darwin (Mac). I believe there is I/O file API on BSD. This is a low priority. Can move to separate issue if first two objects are accomplished.
The API can be moved to https://github.com/infinyon/future-aio
related to this: https://github.com/infinyon/fluvio/issues/2215
Hi, I want to take a look into this :slightly_smiling_face:
Hi, I want to take a look into this :slightly_smiling_face:
Of course! Feel free to ask any questions here!
@matheus-consoli not sure if you are in our Discord already, but just un case: https://discord.gg/3nBFxRZy.
There you can have access to a quicker prompt!
Another usage of pread
https://github.com/infinyon/fluvio/pull/3519