Help Center/
Face Recognition Service/
FAQs/
General Consulting/
Why Is the Request Response so Slow?
Updated on 2023-10-19 GMT+08:00
Why Is the Request Response so Slow?
Symptom
Requests sent by a user must go through TCP handshake and HTTPS certificate exchange. If packet loss occurs during the process, the operating system will retransmit the packet. The retransmission interval may be 3s or 5s depending on the system.
Solution
- Use the HTTPS persistent connection for requests, avoiding HTTP connection building for every request. If no data is transmitted to API Gateway for 300s, the connection will be closed. To prevent this situation, a data packet needs to be periodically sent from the client to maintain persistent connection.
- Conduct timeout retries at the application layer to collect statistics on the average duration of more than 99% requests. Then set a retry mechanism based on the duration.
Parent topic: General Consulting
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot