当前位置:网站首页>Slow response of analysis API
Slow response of analysis API
2022-04-23 01:23:00 【Eighteen movements of Tathagata divine palm】
analysis API The time-consuming is to API The total time taken is divided into different parts , Clearly know what causes the excessive time consumption . We use different tools , Time consuming analysis in different network environments , So as to put forward corresponding optimization suggestions .
- The request is sent too slowly, resulting in increased time consumption ;
- DNS Too slow parsing leads to increased time consumption ;
- Poor network environment leads to increased time consumption ;
- Waiting in line all the time leads to slow response ;
- The server response is too slow, resulting in increased time consumption ;
- The response volume is too large, resulting in increased time consumption ;
- wait ……
Generally feel from the senses API Slow interface response , Most people will directly attribute it to the slow processing of the server , In fact, it is unreasonable . By means of Intranet In the environment API Time consuming analysis and Internet environment API Comparison of time-consuming analysis , It is generally recognized that the reason is .
Through the browser developer tool analysis

Focus on indicators Waiting (TTFB),TTFB Represents the arrival time of the first byte . This time includes a round trip delay and the time it takes the server to prepare a response . It can be approximately considered that the server is time-consuming .
If the network condition is bad or the response data is too large , be Content Download It takes longer , Compression response should be considered at this time .
Timing
In developer tools Network The cyber source that is invoked in the current page is displayed. , Click resources to view the details of resources , among Timing This is the time-consuming situation of resource invocation .
- Queueing. 【 Queuing 】 The browser queues requests when : Requests with higher priority . Six have been opened for this source TCP Connect , This is the limit . Only applicable to HTTP/1.0 and HTTP/1.1. The browser is temporarily allocating space in the disk cache .
- Stalled. 【 stop it 】 The request may be stopped for any of the reasons described in queuing .
- Proxy negotiation. 【 Agency negotiation 】 The browser is negotiating the request with the proxy server .
- Request sent. 【 Send a request 】 The request is being sent .
- Waiting (TTFB). 【 Waiting for the 】 The browser is waiting for the first byte of the response .TTFB Represents the arrival time of the first byte . This time includes a round trip delay and the time it takes the server to prepare a response .
- Content Download. 【 Response content download 】 The browser is receiving a response .
Other possible
- DNS Lookup. 【DNS】 The browser is parsing the requested IP Address .
- Initial connection. 【 Initialize connection 】 The browser is establishing a connection , Include TCP handshake / Try again and negotiate SSL.
版权声明
本文为[Eighteen movements of Tathagata divine palm]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204221021321118.html
边栏推荐
- 计蒜客:数独(DFS)
- Im instant messaging development how to design a database that can support millions of concurrent users
- Live broadcast software | IPTV live broadcast software | TV live broadcast | tvplayer IPTV easyplayer | youwo live broadcast | customized development of super live broadcast software
- What kind of project is suitable for automated testing?
- 计蒜客家谱(dfs求直系后代数)
- 智能手表的下半场,机遇与挑战并存
- Rotation slice
- 王子救公主(DFS)
- [server data recovery] data recovery case of server crash after the hard disk of the server is flooded
- Fault analysis | federated storage engine table causes the monitoring thread to be in the opening table state
猜你喜欢

Common problems and solutions of crashsight access reporting

JD side: comment un thread enfant obtient - il la valeur de threadlocal du thread parent? Je suis couvert...

Practice and exploration of knowledge map visualization technology in meituan

Detailed explanation of the usage of C language getchar

The complete form of smart home and the development of "small homekit"

Fault analysis | federated storage engine table causes the monitoring thread to be in the opening table state

Get in the car, the era of intelligent database autonomy has come, and Tencent cloud database x AI has made a new breakthrough

What is October 24th? Why are there no senior programmers in China in their fifties and sixties, while foreigners,,, Yu Nianyu Hui take you to celebrate the 1024 programmer Festival

Three technical solutions of ant group were selected as "typical solutions for information technology application and innovation in 2021"

Examples of branch and loop statements
随机推荐
Interface automation session authentication solution
Let's talk about passive safety again. I'll teach you to understand the rating report of China Insurance Research Institute collision test
GBASE 8s并发控制之封锁类型
Use Charles to grab app package
C language guessing game and trickery game
IMX6ULL裸机开发之GPT通用定时器分析及配置过程
12 years of testing predecessors give you some suggestions for learning software testing
Gbase 8s Group by 功能介绍
Hardware IIC analysis and configuration process of imx6ull bare metal development
Project manager's thinking mode worth trying: project success equation
Android本地数据库基础操作|多线程操作数据库|数据库的增删改查|批量插入数据库|线程池基础使用|玉念聿辉
Generating class diagram with EA reverse engineering code
GBase 8s查询处理和优化
Gbase 8s 并发控制之封锁粒度
Common problems and solutions of crashsight access reporting
In the second half of the smart watch, opportunities and challenges coexist
engine. Post() handles post requests
Analysis of uboot directory structure
From thinking to practice, digital transformation is the successful path of it operation
Tdengine deployment cluster installation