Distributed and clustered
Three questions
1: Write your own distributed database, when from the database multiple times, how to choose which query from the database? (Preferably according to the user's current network optimal choice, in addition)
2: What is the difference between a distributed and a cluster? I've always been confused, but it's best to give more practical examples.
3: Insert data for 2 tables if the MySQL table does not support transactions. How do I guarantee consistency?
------Solution--------------------
What about the cluster? You can understand a lot of people in a tug of war, many times the cluster application in high load or need a lot of synchronous computation of the scene.
Distributed can be understood as a large group of people playing the relay game, a lot of people but the number is not necessarily fixed, who is not tired now come up to play.