How YouTube handles rapid growth

Recipe for handling rapid growth

while (true)
{
identify_and_fix_bottlenecks();
drink();
sleep();
notice_new_bottleneck();
}

This loop runs many times a day.

If you wonder YouTube architecture you will find necessary information at highscalability.com.