当前位置:网站首页>API slow interface analysis
API slow interface analysis
2022-04-23 05:03:00 【Great Wall ol】
If a user calls your interface , Say your interface is slow , How many angles will you solve this problem ?
- Whether to deploy in different places , Consider cluster deployment .
- Personally verify whether it is really slow ? Call the interface analysis tool , See how long each phase takes , Where is the analysis slow ?
- Network problems
- Request body , The response is relatively large , Whether it can be optimized
- Logical back end business :
- Whether cache is used , Does the cache take effect
- No cache is used , Whether cache can be introduced
- Introduce caching , Does the cache take effect ,check Cache expiration policy .
- Whether there are complex and time-consuming IO operation
- Is there a cycle IO The operation of , Can I merge queries to reduce IO frequency
- Is there any slow sql, You can do it slowly sql The analysis of monitoring tools shows that . Slow optimization sql
- Is there a IO Operation of file , Whether multithreading can be used to solve the problem .
- Whether the back-end business logic can be optimized .
- Whether the service can be deployed on solid-state drives , Increase the overall speed .
- Whether cache is used , Does the cache take effect
- The application of distributed deployment needs additional consideration :
1. Network problems between distributed services
2. Optimization strategies for other distributed services
版权声明
本文为[Great Wall ol]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220552270534.html
边栏推荐
- Informatics Aosai yibentong 1212: letters | openjudge 2.5 156: Letters
- SCP command details
- MySQL memo (for your own query)
- Differences between redis and MySQL
- mysql5. 7. X data authorization leads to 1141
- Various ways of writing timed tasks of small programs
- Solve valueerror: argument must be a deny tensor: 0 - got shape [198602], but wanted [198602, 16]
- Wine (COM) - basic concept
- TypeError: ‘Collection‘ object is not callable. If you meant to call the ......
- Details related to fingerprint payment
猜你喜欢
Uglifyjs compress JS
How can continuous integration (CI) / continuous delivery (CD) revolutionize automated testing
Leetcode 1547: minimum cost of cutting sticks
Wechat payment function
Spell it! Two A-level universities and six B-level universities have abolished master's degree programs in software engineering!
POI export message list (including pictures)
Solve valueerror: argument must be a deny tensor: 0 - got shape [198602], but wanted [198602, 16]
Excel uses the functions of replacement, sorting and filling to comprehensively sort out financial data
The WebService interface writes and publishes calls to the WebService interface (2)
【数据库】MySQL多表查询(一)
随机推荐
TypeError: ‘Collection‘ object is not callable. If you meant to call the ......
MySQL memo (for your own query)
The 2021 more reading report was released, and the book consumption potential of post-95 and Post-00 rose
Uglifyjs compress JS
Pixel mobile phone brick rescue tutorial
Getprop property
MySQL -- execution process and principle of a statement
MySQL slow query
How to exit VIM
View, modify and delete [database] table
Download PDF from HowNet (I don't want to use CAJViewer anymore!!!)
Mac enters MySQL terminal command
Set Chrome browser background to eye protection (eye escort / darkreader plug-in)
[2022 ICLR] Pyraformer: Low-Complexity Pyramidal Attention for Long-Range 时空序列建模和预测
scp命令详解
【数据库】MySQL多表查询(一)
vscode ipynb文件没有代码高亮和代码补全解决方法
Sword finger offer: the median in the data stream (priority queue large top heap small top heap leetcode 295)
The object needs to add additional attributes. There is no need to add attributes in the entity. The required information is returned
leetcode——启发式搜索