java - How much more efficient is sending a certain amount of data from server to client vs client to server? -


let's i'm sending large amount of data server client. inner workings behind reading/writing stream? more efficient server read stream, rather write it? in other words, if send same amount of data client server, faster (on server's side) going server client?

my hunch it's more efficient server read rather write, i'm having trouble understanding causes happen!

edit: let's assume we're working streams in java, using tcp.

after connection established, tcp works symmetrically - shouldn't see performance difference swapping host server , host client.

that doesn't mean data flow same in both directions - imagine network connection more bandwidth in 1 direction other, such adsl.

it's possible router in middle of connection might decide act differently depending on host server. haven't heard of happening, it's theoretically possible - if isp particularly evil, in order discourage people running servers on residential connections. shouldn't happen.


Comments

Popular posts from this blog

php - Zend Framework / Skeleton-Application / Composer install issue -

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -