Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get Google like speeds with php?

I am using PHP with the Zend Framework and Database connects alone seem to take longer than the 0,02 seconds Google takes to do a query. The wierd thing today I watched a video that said Google connects to 1000 servers for a single query. With latency I would expect one server for every query to be more efficent than having multiple servers in different datacenters handeling stuff.

How do I get PHP, MySQL and the Zend Framework to work together and reach equal great speeds?

Is caching the only way? How do you optimize your code to take less time to "render".

like image 254
Thomaschaaf Avatar asked Feb 20 '09 20:02

Thomaschaaf


1 Answers

There are many techniques that Google uses to achieve the amount of throughput it delivers. MapReduce, Google File System, BigTable are a few of those.

There are a few very good Free & Open Source alternatives to these, namely Apache Hadoop, Apache HBase and Hypertable. Yahoo! is using and promoting the Hadoop projects quite a lot and thus they are quite actively maintained.

like image 141
Baishampayan Ghose Avatar answered Oct 05 '22 23:10

Baishampayan Ghose