Google App Engine 是否会为此操作向我的应用程序收费?

Do Google App Engine charge my application for this action?

我正在构建一个基于 App Engine 平台的 Java 聊天应用程序。该应用程序不会将数据存储到数据库中,而是存储在 public static variable.

好的,现在,这是逻辑

用户可以向服务器输入 chat.html 和 post 消息,消息将存储在 ConcurrentHashMap<User, List<String>

然后 chat.html 将有一个每 3 秒运行一次的 checkLatestMsg() 函数。因此函数将读取 ConcurrentHashMap<User, List<String> &

for(String s: list){
    if(s!=null && "".equals(s)){
        resp.setContentType("text/plain;charset=utf-8");
        resp.getWriter().println(s);
    }
  }

所以 resp.getWriter().println(s); 不会显示任何 list 没有数据。我的问题是:

会Google统计调用请求的次数吗?

如果我们发送请求但 resp.getWriter().println(s); 什么也没显示怎么办,那么 Google 会计算那个调用吗?

配额页面对此一无所知:https://cloud.google.com/appengine/docs/quotas

你能澄清一下吗?

没有 HTTP 调用配额这样的东西。这将按实例正常运行时间(每天 28 小时免费)和流量(1Gb 免费)计费。即使您的响应内容为空,您的 HTTP headers 也会占用一些流量。