AWS S3 File Availability across SDKs #1015
-
Hello everyone, I have the same logic written in Rust. The Rust implementation also uses ListObjectV2 requests, mirroring the Java application's logic and timing. Both applications are running on the same virtual machine, ensuring identical network conditions and bandwidth. To my surprise, the S3 bucket updated contents are available (updated) approximately 0.5 seconds earlier in the Java application than in the Rust application. This half-second delay in the Rust version is puzzling, given that both applications should theoretically have similar access times to the updated S3 bucket content. I am reproducing the same strange results with the official AWS Rust SDK and Rusoto.
Is there something inherent to the Java SDK that leverages the S3 API better (setting specific headers for example) to achieve superior latency on Bucket updates (have the updated contents of the Bucket 0.5 seconds earlier)? Can it be that Rust SDKs hit the external AWS Gateway API and do not utilise an internal routing which the Java SDK f.e does? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Seems like you marked this as closed so I assume you figured it out. The Rust and Java SDKs are sending the exact same requests so I'm not sure why this discrepancy would exist. We'd need logs, reproducer, etc. to debug |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
Seems like you marked this as closed so I assume you figured it out. The Rust and Java SDKs are sending the exact same requests so I'm not sure why this discrepancy would exist. We'd need logs, reproducer, etc. to debug