Chapter 7. Scalability and performance optimization