Use psyco, a dynamic python->C compiler that uses a JIT compiler approach to optimize inner loops.
Usually less than 100 ms page service times.This is critical given the competition they face. Python allows rapid flexible development and deployment.The Python web code is usually NOT the bottleneck, it spends most of its time blocked on RPCs.Can usually scale web tier by adding more machines.
Application server talks to various databases and other informations sources to get all the data and formats the html page.Requests are routed for handling by a Python application server.NetScalar is used for load balancing and caching static content.2 feature developers, 2 network engineers, 1 DBA.2 sysadmins, 2 scalability software architects.Supports the delivery of over 100 million videos per day.How did they manage to deliver all that video to all those users? And how have they evolved since being acquired by Google? Information Sources YouTube grew incredibly fast, to over 100 million video views per day, with only a handful of people responsible for scaling the site. Compose your site internally from APIs because you'll need to expose them later anyway.
Upload, edit, watch, search, and comment on video from your own site without visiting YouTube. YouTube adds a new rich set of APIs in order to become your video platform leader-all for free. That’s at least 11,574 views per second, 694,444 views per minute, and 41,666,667 views per hour.
Update 2: YouTube Reaches One Billion Views Per Day. Update 3: 7 Years Of YouTube Scalability Lessons In 30 Minutes and YouTube Strategy: Adding Jitter Isn't A Bug