Feed Sign in with OpenID OpenID

Simon Willison’s Weblog

Facebook engineering notes on Scaling Out. Jason Sobel explains a couple of tricks Facebook use to deal with consistency between their California and Virginia data centres. The first is to hijack the MySQL replication stream to include information about memcached records to invalidate; the second is to use Layer 7 load balancers which inspect a “last modification time” cookie and send users to the masters in California if they have updated their profile in the past 20 seconds.

2 comments

  1. So, I'm left wondering how they magically know which keys are invalidated by updates.

    Also, the REPLACE INTO syntax was new to me-- of course, I've never used MySQL in anger.

    Jeremy Dunck - 21st August 2008 17:20 - #

  2. No magic - they added syntax to MySQL to allow queries to include a list of keys that are invalidated by the query.

    Richard Crowley - 25th August 2008 15:35 - #

Sign in with OpenID

Auto-HTML: Line breaks are preserved; URLs will be converted in to links.

Manual XHTML: Enter your own, valid XHTML. Allowed tags are a, p, blockquote, ul, ol, li, dl, dt, dd, em, strong, dfn, code, q, samp, kbd, var, cite, abbr, acronym, sub, sup, br, pre

A django site