2 comments

[ 2.8 ms ] story [ 19.9 ms ] thread
We have to deal with this at work. It’s the pain of moving large data across the network via HTTP. You have no idea how large the data is going to be or how long the SQL query will take to execute u til after the HTTP request is issued by which time the request TTL is already defined.

This is a self inflicted pain though. You shouldn’t be using HTTP to move large data. A streaming socket is so much more efficient.

The transport protocol doesn't matter. You will have the same problem no matter the transport layer. Yes socket is probably going to be faster, but not paginating correctly will cost you more memory, CPU and money.