views:

255

answers:

2

I am trying to serve PDF (useing tomcat server + Servlet normal streaming). The steaming is stable there is no bug and it handling parallel serving. But not as fast as Google DOC PDF Streaming.

My Question is how did they do that fast ?

What server they use (Apache + PHP)? or Python?

Please suggest which technology i can use to speed up the server that is as good as google.

(i know one main factor is good hardware configuration plus connectivity. my question is apart from that)

+1  A: 

Google is likely not generating the PDF on the fly. I am guessing that you are.

matt b
Right Matt. I am generating PDF on the fly. But im not considering the time for generating the PDF. I am considering the time when it start serving after PDF generation. I donno whats S3, Let me check S3 URL
Niger
Sorry I thought the question linked to above was asked by you. I removed the question about S3 from my answer.
matt b
No issues. Now i learned AWS does. Thanks Matt
Niger
A: 

They are probably using compression. Takes more CPU, but sends quite a bit less data over the wire - hence it gets to you faster.

Gandalf
The CPU shows 0.1% utilization
Niger
Doesn't mean there is no compression - a modern multi-core CPU can do compression without breaking a sweat. You need to measure the # of bytes you receieve (or check the http headers in the response and see if Google docs is sending it compressed).
Gandalf