Node JS mysql native drivers - load balancing splitting read/write queries
Asked Answered
L

0

6

We have an existing high traffic PHP web app which uses the MySQL Native driver's load balancing facility to split read & write queries between a master and slave database.

I'm migrating the API part of this app to NodeJS, currently I'm using the MySQL drivers.

My question: is there a way to split read write queries between master and slave databases in NodeJS? I've looked for a NodeJS version of the MySQL Native drivers but have had no luck as yet.

Thanks in advance for any help provided :)

Leake answered 16/7, 2014 at 9:18 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.