3 ms·
I actually can't tell whether you're serious... The article mentions an `append` operation which is obviously not commutative; does that imply memcached needs
by brickteacup 3y ago
I actually can't tell whether you're serious...
The article mentions an `append` operation which is obviously not commutative; does that imply memcached needs a separate "appendable" string type? Of course not. Memcached only guarantees that the individual operations are atomic, it's the client's responsibility to avoid race conditions between multiple operations.
- downut 3y agoYeah, um, there's a difference between "the client" and "multiple clients". Multiple clients racing can't be fixed. I begin to wonder about this programming culture. Speed at generating LOC, doesn't necessarily have to work IRL...
- brickteacup 3y ago> Multiple clients racing can't be fixed. Really? You can't think of a single way for multiple clients to operate on the same data without racing? (Here's a hint if you're still having trouble: https://github.com/memcached/memcached/wiki/Commands#cas https://github.com/memcached/memcached/wiki/Commands#cas.)
- downut 3y agoNow to in order to multiply a sequence of numbers correctly in a "high performance" shared store, you have external process synchronization. Just awesome. Thank you for the lesson. I had no idea concurrent processing could be so easy.