English 中文(简体)
强制通道API轮询
原标题:Force Channel API to poll

希望Moishe看到这一点:在开发模式中,通道api客户端(javascript)采用轮询。。。并且使用非常快的轮询速率。四处打听后,我发现如果我

goog.appengine.Socket.POLLING_TIMEOUT_MS = interval;

我可以控制投票率。我想知道的是:

  • How do I know if/when the client is going to go into "poll mode" in production?
  • Is it possible to force the client into "poll mode"?
  • What happens if I reach the channel quota for my app? will the /_ah/channel/ endpoint just stop working altogether? or will it resort to polling?

-谢谢

最佳回答

答案:

  1. 客户端在生产中永远不会进入轮询模式。产品的实现方式完全不同。

  2. 见上文

  3. 对create_channel()的调用将失败,您将无法获得更多令牌。现有的令牌(以及通道)将一直工作到超时。

希望能有所帮助!

-莫伊舍

问题回答

暂无回答




相关问题
How to make logging.debug work on Appengine?

I m having a tough time getting the logging on Appengine working. the statement import logging is flagged as an unrecognized import in my PyDev Appengine project. I suspected that this was just an ...

gqlQuery returns object, want list of keys

Is there a way to convert the GqlQuery object to an array of keys, or is there a way to force the query to return an array of keys? For example: items = db.GqlQuery("SELECT __key__ FROM Items") ...

Integrating Google AppEngine with a Thick Client

I want to make a multi-user client-server solution with Java Swing thick client as a front-end and Google AppEngine (Java one) as a back-end. The problem is that GAE provides only web-based forms for ...

sorl.thumbnail : thumbnail is not a valid tag library?

I am trying to install sorl.thumbnail but am getting the following error message: thumbnail is not a valid tag library: Could not load template library from django.templatetags.thumbnail, No module ...

热门标签