1. The document discusses various issues that can cause failures when building APIs to access database systems, such as deadlocks from concurrent updates and purging data inconsistencies between master and slave databases.
2. It proposes solutions to these issues like using queues to defer updates, disabling binary logging to bypass replication, and partitioning or sharding data.
3. When building a friend timeline API, challenges include efficiently querying the necessary data across multiple database tables to return a paginated result with the total count. Solutions presented include using temporary tables and iteration in batches to query the data.
1 of 42
Downloaded 17 times
More Related Content
Yapc asia 2011_zigorou
1. The case file of
Mobage Open Platform
Mobage
Toru Yamaguchi <[email protected]>
http://d.hatena.ne.jp/ZIGOROu/
DeNA co.,ltd.
2011/10/14
YAPC Asia 2011
22. Loop::Sustainable (2)
process
process
2sec
process
process
process
2sec
process
process
2sec
process
process
2sec
Seconds_Behind_Master : 10 sec
process
2sec