Xuanwo commented on PR #5324:
URL: https://github.com/apache/opendal/pull/5324#issuecomment-2480461643

   I'm considering adding a `shared` capability to indicate whether this 
storage service can be shared across different processes or even different 
instances.
   
   Based on this definition:
   
   - `memory` is not shared: it cannot be accessed by other processes.
   - `sled` is not shared: it has a unique lock that only one process can use.
   - `fs` is shared: different processes can access the same fs as long as they 
have it mounted.
   - `s3` is shared: obviously.
   
   I believe this capability is better than the following:
   
   - `multi_processing_access`: too long and doesn't align with exstsing 
capability naming style.
   - `pickable`: python only and doesn't reflect the root cause.
   
   ---
   
   I don't like the idea that:
   
   > We need the capability only for tests
   
   I view it as a design failure for OpenDAL to include something in the public 
API solely for testing purposes. `shared` is somewhat useful for users who want 
to understand what will happen if they try to share the same storage services 
across processes or instances. 
   


-- 
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]

Reply via email to