Specifically, I'm talking about MySQL Master-Slave(s) Replication. As I understand it, all of my reads should happen from a slave (or multiple slaves hid behind a load balancer) and all of my writes directly to the master.
How can I do this with node.js? I'm using the MySQL Active Record package for my database queries and I don't think that supports it natively. I supposed I can hack away at the package and have a if is write-query, then use db1 type of situation, but I wonder if there's an easier way.