Be 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.
Might finally be possible to do this on S3: https://pkg.go.dev/github.com/ncruces/go-gcp/gmutex
Amazon S3 Adds Put-If-Match (Compare-and-Swap)
121–130 of 166 posts
Re: Amazon S3 Adds Put-If-Match (Compare-and-Swap)
#122Earlier quoted context omitted.
Might finally be possible to do this on S3: https://pkg.go.dev/github.com/ncruces/go-gcp/gmutex
Huh. Does this mean that the AWS terraform provider could implement state locking without the need for a DDB table the way the GCP provider does?
Re: Amazon S3 Adds Put-If-Match (Compare-and-Swap)
#123Earlier quoted context omitted.
Worked out how? There’s no implementation. It’s just conjecture.
It's right there: > Our bet that S3 would get it in a reasonable time-frame worked out!
Re: Amazon S3 Adds Put-If-Match (Compare-and-Swap)
#124Re: Amazon S3 Adds Put-If-Match (Compare-and-Swap)
#125Ah so its not only me that uses AWS primitives for hackily implementing all sorts of synchronization primitives. My other favorite pattern is implementing a pool of workers by quering ec2 instances with a certain tag in a stopped state and starting them. Starting the instance can succeed only once - that means I managed to snatch the machine. If it fails, I try again, grabbing another one. This is one of those things…
Re: Amazon S3 Adds Put-If-Match (Compare-and-Swap)
#126Does this mean, in theory we will be able to manage multiple concurrent writes/updates to s3 without having to use new solutions like Regatta[1] that was recently launched? https://news.ycombinator.com/item?id=42174204
Re: Amazon S3 Adds Put-If-Match (Compare-and-Swap)
#127Ah so its not only me that uses AWS primitives for hackily implementing all sorts of synchronization primitives. My other favorite pattern is implementing a pool of workers by quering ec2 instances with a certain tag in a stopped state and starting them. Starting the instance can succeed only once - that means I managed to snatch the machine. If it fails, I try again, grabbing another one. This is one of those things…
What would you say would be the "clean" way to implement a pool of workers (using EC2 instances too)?
Re: Amazon S3 Adds Put-If-Match (Compare-and-Swap)
#128Ah so its not only me that uses AWS primitives for hackily implementing all sorts of synchronization primitives. My other favorite pattern is implementing a pool of workers by quering ec2 instances with a certain tag in a stopped state and starting them. Starting the instance can succeed only once - that means I managed to snatch the machine. If it fails, I try again, grabbing another one. This is one of those things…
What would you say would be the "clean" way to implement a pool of workers (using EC2 instances too)?
the first one is probably cleaner (though I don't like it, it means that I need the instance to be a kubernetes node, and that comes with a bunch of baggage).
Re: Amazon S3 Adds Put-If-Match (Compare-and-Swap)
#129Ah so its not only me that uses AWS primitives for hackily implementing all sorts of synchronization primitives. My other favorite pattern is implementing a pool of workers by quering ec2 instances with a certain tag in a stopped state and starting them. Starting the instance can succeed only once - that means I managed to snatch the machine. If it fails, I try again, grabbing another one. This is one of those things…
If you use hourly billed machines...Sounds like the world most expensive semaphore :-)
Re: Amazon S3 Adds Put-If-Match (Compare-and-Swap)
#130Ah so its not only me that uses AWS primitives for hackily implementing all sorts of synchronization primitives. My other favorite pattern is implementing a pool of workers by quering ec2 instances with a certain tag in a stopped state and starting them. Starting the instance can succeed only once - that means I managed to snatch the machine. If it fails, I try again, grabbing another one. This is one of those things…
If you use hourly billed machines...Sounds like the world most expensive semaphore :-)