Previously I was using an EC2 machine to download the file using pre signed URL and the client will download from EC2 machine(V1 arch).
Now we are giving pre signed URL directly to the client and the client is downloading the file using that.(V2 arch)
Same way it is for upload.
I was assuming that as in I have reduced the number of hops the response time will reduce but the performance is degraded. I am using jMeter to measure the performance. I ran for 10 min and the stats are:-
Download
v1 95% client > 9000ms , Avg > 5000ms
v2 95% client > 24000ms , Avg > 10000ms
Upload
v1 95% client > 33000ms , Avg > 14000ms
v2 95% client > 84000ms , Avg > 72000ms
So i need to know why it is degraded even though one machine hop is reduced? Is there anything I am missing? How to improve the performance?