At Rapportive we have one master database that's always up-to-date, and a read slave that may be a little bit behind. Usually a database read can use either connection, but if a user is viewing their own page we need to use the master database. This is so that if they've just edited their information, their edits are guaranteed to show up, even if the read slave is lagging.
Add your comment