This document discusses server modeling with MySQL for scalability and consistency issues. It covers:
- The easy problem of a single web server and database layer bottleneck which can be solved by adding more web servers.
- Harder problems of database layer bottlenecks which incorrect solutions like adding more web servers will not solve, requiring database partitioning or other techniques.
- Common solutions like master-slave replication where one database is the master and updates are replicated to slave databases which can balance reads. This allows for high reads but low consistency.
- More advanced solutions like two phase commit and semi-sync replication in MySQL to provide higher consistency between master and slave databases during writes.
- MySQL Cluster which stores data