SkyFan2002 opened a new pull request, #1893:
URL: https://github.com/apache/incubator-opendal/pull/1893
Hi, this is a very simple demo that illustrates the overall idea. The are
some issues that need to be discussed.
1. Madsim has already provided a wrapper for aws-sdk-s3 crate, something
like this:
```rust
#[cfg(madsim)]
#[path = "sim.rs"]
mod sim;
#[cfg(not(madsim))]
pub use aws_sdk_s3::*;
#[cfg(madsim)]
pub use sim::*;
```
Should we reuse the S3 simulation logic from the madsim wrapper or develop
our own?If we use madsim's simulation, since the interface simulated by madsim
and that of aws-sdk-s3 are the same, we need to use that interface to implement
our `Accessor` trait. If we choose to develop our own simulation logic, we need
to completely eliminate uncertainty, such as multi-threaded scheduling(seems a
lot of work).
2. Can different backends use the same simulation? For example, S3 and OSS
may be similar, but I'm not sure.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]