Web API呼叫在Azure App服务中发送了3次
我们正在使用Azure Web应用程序服务来托管.NET 4.6中的后端API。
间隔2分钟后,我们看到特定的Web API正好跑了3次。在这3次运行中,应从前端应用程序(Azure App Service托管的Angular 7应用程序)触发一个。因此,Web API额外运行了2次。
观察值:
由于每次运行中的大量文件处理,此特定的API持续了8-10分钟。通常,这是一个例外,它在一分钟内完成。所有所需的处理都是在三次API中没有任何问题的情况下完成的。
我验证了前端代码,它不会将API称为多个。因此,我无法弄清楚为什么API额外运行2次?是由于.NET或Azure Web应用中的任何时间相关设置吗?
到目前为止,这还没有发生,对于一个特定的人来说,这是特别观察到的。可以是浏览器相关的问题吗?
关于如何将问题分离出来的任何指针是否与.NET/Azure应用程序相关,或其他内容都会有所帮助。
谢谢你!
We are using Azure Web App Service to host our backend API in .NET 4.6.
We saw a particular web API ran 3 times exactly after 2 minutes interval. Out of those 3 runs, one should be triggered from the front end app (Angular 7 app hosted on Azure App Service). So the web API ran extra 2 times.
Observations:
This particular API ran for 8-10 minutes due to large number of files processing in each run. This was an exception generally it completes within a minute. All the required processing was done without any issue in three runs of API.
I verified the front end code and it won't call the API more than one. So I am not able to figure out why the API ran extra for 2 times? Is it due to any time out related setting in .NET or in Azure Web App?
This has not happened so far and is particularly observed for one specific person. May it be browser related issue?
Any pointer on how to segregate issue whether it is related to .NET/Azure application or something else would be helpful.
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
极不可能单独运行API,除非它是一个触发的时间触发功能,该功能有时会在怪异的电路下运行,但是如果其HTTP触发API 99.9%,则其代码调用它,只需记录调用并找出详细信息。
Highly unlikely the API ran by itself unless its a time triggered function which can sometimes run under weird circomstances, but if its a HTTP triggered API 99.9% its your code calling it, just log the invocations and find out the details.