Web API呼叫在Azure App服务中发送了3次

发布于 2025-01-28 12:17:13 字数 506 浏览 4 评论 0原文

我们正在使用Azure Web应用程序服务来托管.NET 4.6中的后端API。

间隔2分钟后,我们看到特定的Web API正好跑了3次。在这3次运行中,应从前端应用程序(Azure App Service托管的Angular 7应用程序)触发一个。因此,Web API额外运行了2次。

观察值:

  1. 由于每次运行中的大量文件处理,此特定的API持续了8-10分钟。通常,这是一个例外,它在一分钟内完成。所有所需的处理都是在三次API中没有任何问题的情况下完成的。

  2. 我验证了前端代码,它不会将API称为多个。因此,我无法弄清楚为什么API额外运行2次?是由于.NET或Azure Web应用中的任何时间相关设置吗?

  3. 到目前为止,这还没有发生,对于一个特定的人来说,这是特别观察到的。可以是浏览器相关的问题吗?

关于如何将问题分离出来的任何指针是否与.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:

  1. 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.

  2. 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?

  3. 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

近箐 2025-02-04 12:17:13

极不可能单独运行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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文