-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Description
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
From what I can gather from the codebase, it seems the synchronous APIs are exclusively used when using the object store. At least in my experience, the SDKs for remote object stores have asynchronous methods as primary APIs. Furthermore invoking a synchronous method inside async is straight forward by spawning a blocking task. On the other hand I could not figure out a way to call async code inside a sync method when already inside a tokio runtime (i.e. cannot call block_on ...)
Describe the solution you'd like
Use the async object store APIs by default, to facilitate implementation of remote object stores.
Describe alternatives you've considered
Alternatively a flag on the object store might be used to check if sync or async calls should be used. Or maybe I missed an obvious solution :)
Additional context
Add any other context or screenshots about the feature request here.