GitHub user kpole added a comment to the discussion: How to design opendal c 
binding's async api

Hi, xuanwo, oceanbase currently uses the blocking version of cbinding and wants 
to implement async version to reduce the overhead introduced by threading.
In response to your question, I have the following thoughts:
1. As far as I know, tokio has very good asynchronous IO capabilities, and I 
prefer tokio over writing a C asynchronous framework from scratch
2. Does "splitting the library into a blocking version and an async version" 
refer to creating two independent libraries, or does it mean two separate sets 
of APIs?
    - The former might lead to redundant inclusion, especially since OceanBase 
is introduced in the form of RPM packages, which include the Rust standard 
library implementation.
    - I believe the latter is feasible, as async IO and sync IO have many 
differences in interface parameters and significant implementation variations.



GitHub link: 
https://github.com/apache/opendal/discussions/6082#discussioncomment-14002646

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to