当前位置:网站首页>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
边栏推荐
- Day. JS common methods
- PHP 统计指定文件夹下文件的数量
- Innovation training (II) task division
- Progress of innovation training (IV)
- mysql5. 7. X data authorization leads to 1141
- Various ways of writing timed tasks of small programs
- Download PDF from HowNet (I don't want to use CAJViewer anymore!!!)
- Deep learning notes - data expansion
- Wine (COM) - basic concept
- Detailed explanation of the differences between TCP and UDP
猜你喜欢
随机推荐
Innovation training (XI) airline ticket crawling company information
Innovation training (V) configuration information
Making message board with PHP + MySQL
Leetcode -- heuristic search
C list field sorting contains numbers and characters
2022/4/22
Getprop property
Introduction to raspberry pie 3B - system installation
Detailed explanation of hregionserver
Mac 进入mysql终端命令
Raspberry pie + opencv + opencv -- face detection ------- environment construction
redis和mysql区别
Jetpack -- lifecycle usage and source code analysis
静态流水线和动态流水线的区别认识
Innovation training (10)
Progress of innovation training (IV)
ApplicationContext injection bean
直播带货表格模板-自动显示图片-自动关联系列商品
Barcode generation and decoding, QR code generation and decoding
Pixel 5 5g unlocking tutorial (including unlocking BL, installing edxposed and root)