Hacker News new | ask | show | jobs
by brickteacup 814 days 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.

1 comments

Yeah, 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...

> 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.)

Now 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.