Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

95
Visualizações
Atomic uploads to S3

Is there a way to configure an Amazon S3 bucket, or the AWS SDK on iOS, so that all uploads to a bucket are atomic?

That is, I want to configure the bucket or the SDK so that if an upload does not complete successfully, it does not leave the partially uploaded file or any other new object in the bucket.

about 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

Like it was said on the comments, if you're not using multipart uploads, you should get that out of the box.

If you are using multipart uploads, there are two things to consider:

  1. An abandoned multipart upload consumes storage space in a holding area, but does not leave an incomplete object in the bucket itself. ListObjects, GET, etc., cannot see incomplete multipart uploads, and any existing object remains undisturbed. The parts of an incomplete multipart upload are only accessible using the multipart API, so, in the only relevant sense, all object creation and overwrite operations -- multipart or not -- are automatically and always 100% atomic. More information on that on the multipart upload overview
  2. You can create a bucket lifecycle policy that cleans up incomplete uploads (AbortIncompleteMultipartUpload policy), as detailed in the lifecycle guidelines:

    Amazon S3 supports a bucket lifecycle rule that you can use to direct Amazon S3 to abort multipart uploads that don't complete within a specified number of days after being initiated. When a multipart upload is not completed within the time frame, it becomes eligible for an abort operation and Amazon S3 aborts the multipart upload (and deletes the parts associated with the multipart upload).

    You can attach a rule to only certain prefixes or to the entire bucket, which sounds more appropriate to your use case. You can find more details about bucket lifecycles in the S3 lifecycle rules docs.

about 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda