Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use AWS's S3 client instead of object_store #135

Merged
merged 3 commits into from
Oct 4, 2024
Merged

Conversation

paraseba
Copy link
Collaborator

@paraseba paraseba commented Oct 4, 2024

We are now using aws-sdk-s3 crate. object_store showed many issues and
performance problems while trying to use it with high concurrency.

We are still using object_store, but only for the in-memory and
local-filesystem Storage implementations, S3 (and minio) go through
aws-sdk-s3. So the dependency no longer includes the aws feature.

We did some changes to the virtual ref resolver. Now, we can use a
single instance of an S3 client, because the S3 client allows that,
unlike object_store that needs one client per bucket. This is a big
simplification of the code, at least while we have a single set of
credentials. We are no longer caching the object_store instances for
local filesystem refs.

We are now using aws-sdk-s3 crate. object_store showed many issues and
performance problems while trying to use it with high concurrency.

We are still using object_store, but only for the in-memory and
local-filesystem `Storage` implementations, S3 (and minio) go through
aws-sdk-s3. So the dependency no longer includes the `aws` feature.

We did some changes to the virtual ref resolver. Now, we can use a
single instance of an S3 client, because the S3 client allows that,
unlike object_store that needs one client per bucket. This is a big
simplification of the code, at least while we have a single set of
credentials. We are no longer caching the object_store instances for
local filesystem refs.
@paraseba paraseba force-pushed the seba/object_store_out branch from f2a2d1c to 906bbe6 Compare October 4, 2024 14:15
@paraseba paraseba changed the title Seba/object store out Use AWS's S3 client instead of object_store Oct 4, 2024
@paraseba paraseba requested a review from mpiannucci October 4, 2024 14:17
@paraseba paraseba marked this pull request as ready for review October 4, 2024 14:17
Copy link
Contributor

@mpiannucci mpiannucci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. This is a lot of work well paid off

@paraseba paraseba merged commit b93a6b9 into main Oct 4, 2024
3 checks passed
@paraseba paraseba deleted the seba/object_store_out branch October 4, 2024 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants