Skip to content

[Question] Usage of async object store APIs in consuming code #1313

@roeap

Description

@roeap

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions