It's also possible to enforce the use of conditional writes: https://aws.amazon.com/about-aws/whats-new/2024/11/amazon-s3... My biggest wishlist item for S3 is the ability to enforce that an object is named with a name that matches its hash. (With a modern hash considered secure, not MD5 or SHA1, though it isn't supported for those either.) That would make it much easier to build content-addressible storage.
Amazon S3 Adds Put-If-Match (Compare-and-Swap)
41–50 of 166 posts
Re: Amazon S3 Adds Put-If-Match (Compare-and-Swap)
#42Earlier quoted context omitted.
So....given CAP, which one did they give up
I’d wager that the algorithm is slightly eager to throw a consistency error if it’s unable to verify across partitions. Since the caller is naturally ready for this error, it’s likely not a problem. So in short it’s the P :)
Re: Amazon S3 Adds Put-If-Match (Compare-and-Swap)
#43Earlier quoted context omitted.
Shouldn't that be the A then? Since the network partition is still there but availability is non-guaranteed.
Yes, definitely. Good point (I was knee jerk assuming the A is always chosen and the real “choice” is between C and P).
Re: Amazon S3 Adds Put-If-Match (Compare-and-Swap)
#44Re: Amazon S3 Adds Put-If-Match (Compare-and-Swap)
#45Be still my beating heart. I have lived to see this day. Genuinely, we've wanted this for ages and we got half way there with strong consistency.
So....given CAP, which one did they give up
Re: Amazon S3 Adds Put-If-Match (Compare-and-Swap)
#46Re: Amazon S3 Adds Put-If-Match (Compare-and-Swap)
#47It's also possible to enforce the use of conditional writes: https://aws.amazon.com/about-aws/whats-new/2024/11/amazon-s3... My biggest wishlist item for S3 is the ability to enforce that an object is named with a name that matches its hash. (With a modern hash considered secure, not MD5 or SHA1, though it isn't supported for those either.) That would make it much easier to build content-addressible storage.
Re: Amazon S3 Adds Put-If-Match (Compare-and-Swap)
#48It's also possible to enforce the use of conditional writes: https://aws.amazon.com/about-aws/whats-new/2024/11/amazon-s3... My biggest wishlist item for S3 is the ability to enforce that an object is named with a name that matches its hash. (With a modern hash considered secure, not MD5 or SHA1, though it isn't supported for those either.) That would make it much easier to build content-addressible storage.
That will probably never happen because of the fundamental nature of blob storage. Individual objects are split into multiple blocks, each of which can be stored independently on different underlying servers. Each can see its own block, but not any other block. Calculating a hash like SHA256 would require a sequential scan through all blocks. This could be done with a minimum of network traffic if instead of streamin…
Re: Amazon S3 Adds Put-If-Match (Compare-and-Swap)
#49Earlier quoted context omitted.
Yes, definitely. Good point (I was knee jerk assuming the A is always chosen and the real “choice” is between C and P).
Well, P isn't really much of a choice, I don't think you can opt out of acts of god.
But you're right, if you take a broad view of P, the choice is really between consistency and availability.
Re: Amazon S3 Adds Put-If-Match (Compare-and-Swap)
#50Earlier quoted context omitted.
Shouldn't that be the A then? Since the network partition is still there but availability is non-guaranteed.
Yes, definitely. Good point (I was knee jerk assuming the A is always chosen and the real “choice” is between C and P).