Anyway, I *do* in fact like keeping the mysql updates paired with the
memcached updates. This only applies if your remote datacenters are
allowed to update their cache using local read slaves (which they should,
I'd guess). Odds are whatever other system you implement will at least
sometimes replay a remote mysql delete before the mysql update hits the
remote datacenter. This lag is also why facebook's article talks about
having that cookie which'll pin you to your active datacenter for a few
seconds after an update...
There's some text on this... was hoping to put up a nice FAQ entry or post
on it, but.. time... urgh.. anyway.
Instead of modifying the MySQL grammar to do it, you can use the
libmemcached MySQL UDF's by brian and patrick and embed DELETE or SET
commands in with your INSERT's. So long as all of your clients are
libmemcached based, your server lists should hash correctly. It's a little
complicated but doable.
-Dormando