javascript - To support loadbalancing on NodeJS Server where do we keep our database? -


i trying add load balancing on gcp, doubt shall keep database (mysql). have on different vm. scaled vm accessing it.

if install on same vm nodejs server running after scaling data scattered in multiple database in multiple vm.

enter image description here

is correct architecture start loading balancing on gcp

from looks of it, yes want keep mysql datbase on separate vm. come in handy if decide migrate, cluster etc database. best if storing sessions in database.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -