Martin Epsz
Martin Epsz

Reputation: 872

Decreasing minimum upload time with AWS S3?

I'm building an android app that needs to send small files between clients (about 15kb on average). The client are already communicating via websocket. My current solution is to upload the file to S3 and use the websocket to notify everyone that there's a new file to download. I'm uploading the file with AmazonS3Client.PutObject().

However, I noticed a few seconds of delay, that I'd like to avoid. No matter how small the file, it always takes at least 2 seconds to upload. I would like to decrease this time if possible. I'm also open to alternative solutions, but it's important that I can have one-to-many transfer of the files.

Upvotes: 0

Views: 323

Answers (1)

Gabe Sechan
Gabe Sechan

Reputation: 93542

This is called latency. There's two measures of speed in networking- throughput (the amount of data you can transfer per second) and latency (how long it takes to send any data at all). Latency is because it takes time to send a message from your phone to the cell tower, from there to the internet, from the internet to AWS, and from AWS to the specific server dealing with your storage. Its mostly a factor of the networking technology and the physical distance between source and destination. There's really not much you can do about it.

Upvotes: 1

Related Questions