Distributed and cluster three problems 1: Write your own distributed database. when there are multiple slave databases, how should I choose which slave database to query? (It is best to select the optimal network type based on the user's current network.) 2: What is the difference between distributed architecture and cluster architecture? I have never understood it. it is best to give a more practical example. 3: insert data from two tables. if mysql tables do not support transactions, how can I ensure consistency? ------ Solution ------ distributed and cluster
Three questions
1: Write a distributed database by yourself. when there are multiple slave databases, how should I select which slave database to query? (The best choice is based on the user's current network)
2: What is the difference between distributed and cluster? I have never understood it. it is best to give a more practical example.
3: insert data from two tables. if mysql tables do not support transactions, how can I ensure consistency?
------ Solution --------------------
Clusters can be understood as a group of people pulling the river together. in many cases, clusters are used in scenarios with high loads or require a large amount of synchronous computing.
Distributed architecture can be understood as a large group of people playing the relay game. There are many people, but the number of people is not necessarily fixed.