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

Investigate using PutObjectRequest.html#ifNoneMatch #861

Open
4 tasks
steve-todorov opened this issue Nov 9, 2024 · 0 comments
Open
4 tasks

Investigate using PutObjectRequest.html#ifNoneMatch #861

steve-todorov opened this issue Nov 9, 2024 · 0 comments

Comments

@steve-todorov
Copy link
Collaborator

steve-todorov commented Nov 9, 2024

Task Description

In previous version of the AWS SDK v2 it was not possible to use a single request to put an object if the key did not exist.
With version 2.28+ you can use PutObjectRequest.html#ifNoneMatch which would return a non 200 status code when there is an existing key.

If this works out it would improve the performance of the library as it would not be doing:

  1. Head request to check if the object exists
  2. Put request to actually add the object

Instead we'll be doing just one PUT request and handle the status code.

Tasks

The following tasks will need to be carried out:

  • Research how this works.
  • Investigate what internal changes will be required.
  • Implement a solution.
  • Test it out.

Task Relationships

This task:

  • Is a sub-task of: #
  • Depends on: #
  • Is a follow-up of: #
  • Relates to: #

Useful Links

Help

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

No branches or pull requests

1 participant