-1

So we're building a PHP application where a user needs to register a picture of their Face and when they login the application takes another picture of their face and compares it with the registered image using MS Azure FaceAPI and authenticates the user.

We're using AWS S3 to store all the images (about 12 KB each image) in the cloud. The authentication process takes over 6500 milli seconds (About 3500 ms to upload it to S3 and another 3000 ms to request the FaceAPI and receive a response)

Is there a way we can speed it up?

Wayne Yang
  • 9,016
  • 2
  • 20
  • 40
Aakash
  • 1
  • Beyond your network connection, the file size you pass in can have a significant impact on the performance. In many cases scaling down the images before sending is an approach worth looking at. – Jeroen Heier Dec 29 '17 at 06:37
  • Thanks @JeroenHeier. We've already done it. The image size is less than 12KB and we're testing on a 50Mbps connection with over 10Mbps upload bandwidth. The performance was almost the same earlier when we were uploading images over 100KB over a 3G cellular network. So our hypothesis is that there must some other performance bottleneck that we've been overlooking. – Aakash Dec 30 '17 at 06:37

1 Answers1

0

You may want to check the region of your request API and the region of your S3. Is your API endpoint westUS, centralUS or other? Does it appear to be the same region with your storage and your request?

Laura_M
  • 26
  • 1