The result of the problem: The original news system (http://gnews.91.com) is only good in the South (because of the telecom server), the business needs to access Netcom users in the north, so they also put it in the north. A site http://bnews.91.com, the content of these two sites should be synchronized (News is generated in the HTML page browsing). There is no better synchronization under Windows, so ...
Prerequisites: The article will only update in the south
Environment: DOTNET MYSQL
Solution: 1. Running a Windows service on the South Server, the service completes two things, first, through the file monitoring system (using Windows file monitoring components), record the path of changed files and record the database table A, At the same time, there is a timer read path information from the database, and then read these files into binary streams to database table B (read the information about deleting table A)
2. The servers in the North also run a Windows service. This service is written to the local file through the timer to read the information of the table B, and the binary data is written to the local file (read the relevant information to delete B).
3. Here is a problem database? No matter what is anyway, the South is still a servers in the north, one of them is very slow, how to solve it? I use the way is the database anyway, then make a transfer (do a transfer) The machine is connected to the South Telecom and North Netcom's line.