PollGenerateReport循环:在一段时间内您可以轮询服务器的次数是否有限制? [英] PollGenerateReport looping: Is there a limit of how many times you may poll the server in a period of time?

查看:59
本文介绍了PollGenerateReport循环:在一段时间内您可以轮询服务器的次数是否有限制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我已经启动并完美运行了API,所以现在我正在尝试优化API例程。

I have the the API up and running perfectly and so now I am at the point where I am trying to optimize the API routines.

在我的应用程序中,我正在下载多个报告(帐户,广告系列,广告组,关键字)并在信息仪表板上显示这些报告。我遇到的问题是,在服务器上轮询报告并在仪表板上显示它们需要大约30秒,
这在生产环境中是不可接受的。

In my application, I am downloading several reports (account, campaign, ad group, keyword) and displaying them on an information dashboard. The issue I am having is that it takes ~30 seconds to poll the server for the reports and display them on the dashboard, which is unacceptable in a production environment.

I通过在轮询服务器以获取报告状态之间重新定义等待时间,能够将时间缩短到约8-10秒。我现在每隔1秒检查一次状态,最多30秒,然后退出循环。这在生产中是否可以接受?
这对我的情况来说非常理想。将响应时间从30秒降低到10秒是非常重要的!

I was able to bring the time down to ~8-10 seconds by redefining the wait time in between polling the server for the report status. I am now checking for the status every 1 second up to 30 seconds before exiting the loop. Is this acceptable in production? This would be very optimal for my situation. Bringing the response time down 66% from 30 seconds to 10 seconds is significant!

我可以在服务器上轮询报告状态的次数有限制吗?

Is there a limit to how many times I may poll the server for the report status?

谢谢。

推荐答案

你好。

这似乎是合理的。  ;也许 你甚至可以从2秒开始并增加轮询时间,直到你发现显着的性能滞后。目前对投票报告没有限制。

That seems reasonable. Perhaps you could even start with 2 seconds and increase the poll time until you notice significant performance lag. There are currently no limits for polling reports.

请限制在待处理状态下提交的并发报告数量,例如少于20或25日。如果您提交的报告太多,服务可能会开始限制。限制极高的使用量可以保证所有Bing Ads
客户的公平使用。

Please limit the number of concurrent reports that are submitted in Pending status e.g. less than 20 or 25. The service may begin throttling if you submit too many reports. Throttling extremely high-volume usage maintains fair usage for all Bing Ads clients.

最好,

Eric

Best,
Eric


这篇关于PollGenerateReport循环:在一段时间内您可以轮询服务器的次数是否有限制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆