-
Notifications
You must be signed in to change notification settings - Fork 863
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
Cross-Region S3 Client #52
Comments
Is there an update on when this feature would be shipped out ? |
Sorry, no update. It's not our #1 priority, because with access points and other arn-based ways of accessing buckets/objects plus the use-arn-region flag, the SDK will automatically route the request to the correct region without the overhead of an extra call to AWS to find out where the bucket actually is. I understand there's still value in this feature request, since the caller may not have a full bucket ARN. |
If anyone thinks using ARNs like |
@millems Hi. Any plan of supporting this feature ? A lot of people think they need this feature from the perspective of customers using AWS S3 products. |
At some point, probably, but in the meantime you could try using access points which automatically support cross-region request routing. |
@millems |
@pkgonan Unfortunately we have no expected date to report at this time. |
@millems Thanks for your reply. :) |
FYI we are working on adding cross-region S3 client to Spring Cloud AWS. It's early stage but looks promising so far: https://github.com/awspring/spring-cloud-aws/blob/3.0.x-s3/spring-cloud-aws-s3-parent/spring-cloud-aws-s3/src/main/java/io/awspring/cloud/s3/CrossRegionS3Client.java Basic idea is that every region-specific method is wrapped in a try catch that on http status 301 uses client created for the region where the bucket got created. Clients are cached both by region and also by bucket name (to speed up subsequent calls for the same bucket). Implementation is a bit Spring specific as we use LRU cache from Repetitive chunk of this class is generated with JavaParser. If you're interested this is a very sketchy implementation:
|
This feature has been released in
I'll go ahead and close this issue. As always, feedback is welcome! :) |
|
So the addition of |
The 1.11.x S3 client automatically routed requests to the correct bucket region in a complicated manner. The 2.0.x client does not perform this automatic re-routing.
We should create a wrapper to pool S3 clients for different regions and automatically route requests to the region in which the bucket was created.
The text was updated successfully, but these errors were encountered: