未处理的异常如何导致Azure应用服务缓慢?

问题描述 投票:0回答:1

当我在性能和可用性部分下查看Azure App Service诊断时,他们指出4XX和5XX错误可能会影响应用程序的性能和可用性。

enter image description here

请说明例外情况与Web应用程序性能之间的关系,以及例外情况如何降低网站性能。

performance azure exception high-availability azure-diagnostics
1个回答
0
投票

这不仅适用于Azure,而且如果将应用程序部署到任何地方(在云中或本地),也很常见。异常会引起很多问题,特别是对于性能。

有句话

No matter how high the performance of your program is, as long as you did not handle the "exceptions", it's broke.

您需要缓存数据,处理异常,处置资源等,以避免性能问题和站点崩溃。例如,在javascript应用程序中回调通常会分配内存,进行累加工作,但会涉及很多额外的样板,并且可能使线程安全变得很痛苦。

© www.soinside.com 2019 - 2024. All rights reserved.