how can the data generated on one server be shared with other servers? I am now in the background of the program is written in node js, are there any examples or ideas for reference?
how can the data generated on one server be shared with other servers? I am now in the background of the program is written in node js, are there any examples or ideas for reference?
is a file, either multiple servers hang a shared disk or rsync Synchronize
this is not a language problem, is it? Let's talk about our multi-server strategy. At present, it is mainly for grayscale release to do multi-server load balancing. Pictures and some attachment resources use rsync as Synchronize strategy; DB is the master-slave copy of mysql.
multiple servers. Your application had better be stateless. There are two common problems: pictures, attachments and databases
1. How to share pictures, attachments, etc., use cloud storage, such as oss
of Aliyun, or file storage
can
2. The database is recommended to buy the cloud database directly. If you don't want to buy it, set up the database on a separate server and separate it from the application server