fluvio icon indicating copy to clipboard operation
fluvio copied to clipboard

tech debt: async version of pread

Open sehz opened this issue 1 year ago • 5 comments

We use low-level pread to perform block read, a synchronous operation. We need to build an async version. Here is scope:

  1. 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.
  2. IO-Uring backend for Linux.
  3. 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

sehz avatar Aug 30 '23 17:08 sehz

related to this: https://github.com/infinyon/fluvio/issues/2215

sehz avatar Sep 01 '23 15:09 sehz

Hi, I want to take a look into this :slightly_smiling_face:

matheus-consoli avatar Sep 05 '23 00:09 matheus-consoli

Hi, I want to take a look into this :slightly_smiling_face:

Of course! Feel free to ask any questions here!

LeoBorai avatar Sep 05 '23 00:09 LeoBorai

@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!

LeoBorai avatar Sep 05 '23 01:09 LeoBorai

Another usage of pread https://github.com/infinyon/fluvio/pull/3519

sehz avatar Sep 05 '23 22:09 sehz