3 ms·
Thanks for open sourcing this 1000mem. What is average request latency for a 2mb photo? We tried to do something similar with python, but we found there's a 300
by peppertree 14y ago
Thanks for open sourcing this 1000mem. What is average request latency for a 2mb photo? We tried to do something similar with python, but we found there's a 300ms latency between s3 and ec2. It takes quite a few seconds to transfer from s3 to ec2, resize it, and transfer to client. You mentioned using caching to speed things up, but what about the first request?
- michaelfairley 14y agoWe do two layers of caching (CDN in front of Varnish in front of photon). The latency is annoying, but it's no worse than serving the files directly off of S3 (as we were doing previously). In an ideal world, Photon would be running on boxes that store the files themselves, and some sort of intelligent load balancer would make sure that the requests get directed to the correct box.