clbarnes commented on issue #286:
URL: 
https://github.com/apache/arrow-rs-object-store/issues/286#issuecomment-7220104933

   The use case I'm interested in is object_store as a lingua franca for 
storage backends (as it is intended to be!). At would be nice for applications 
to be able to entirely abstract over the storage backend. That means that 
applications need to be able to configure the store without knowing exactly 
what type of store it's going to be. For the built-in stores this is already 
possibly with the `parse_url(_opts)` function; the question is how can I add my 
own store to the url-parsing mechanic without every application having to write 
rust code to handle its own combination of 3rd party stores.
   
   Other crates including `opendal` use `ctor` / `inventory` for this kind of 
plugin management. That allows the consuming rust crate to depend on whatever 
3rd party stores it wants, maybe behind its own cargo features, and use 
`parse_url` (or equivalent) in exactly the same way regardless. It then becomes 
trivial to configure stores from CLI arguments, config files, environment 
variables, python variables so long as support is compiled in at the bottom.


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