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?