I am building a Java chat app based on App Engine platform. The app will not store data into database but in a public static variable.
Ok, Now, here is the logic
A user can enter chat.html & post messages to server and the messages will be stored inside a ConcurrentHashMap<User, List<String>
Then chat.html will have a checkLatestMsg() function that runs every 3 secs. Thus function will read the ConcurrentHashMap<User, List<String> &
for(String s: list){
if(s!=null && "".equals(s)){
resp.setContentType("text/plain;charset=utf-8");
resp.getWriter().println(s);
}
}
So the resp.getWriter().println(s); won't show anything the list has no data. My question is that:
Will Google count the number of call requests?
What if we send a request but resp.getWriter().println(s); shows nothing, then will Google count that call?
The Quota pages tell nothing about this: https://cloud.google.com/appengine/docs/quotas
Could you clarify it?
Appengine is designed specifically to make developers think about and build distributed systems, and what you describe isn't distributed at all.
You should choose another platform (assuming you need to host this in the cloud), you will save yourself trouble. If you're keen to use appengine, you need to do more reading and experimentation, until you have a firm grasp of its strengths and weaknesses. What you described will not, in the general sense, work.
To answer you question directly, all requests will count against your quota but the application you describe will probably never go over the free tier. So don't worry about it.
Unfortunately, the implementation you describe is completely unsuitable for appengine.
Appengine is designed specifically to make developers think about and build distributed systems, and what you describe isn't distributed at all.
You should choose another platform (assuming you need to host this in the cloud), you will save yourself trouble. If you're keen to use appengine, you need to do more reading and experimentation, until you have a firm grasp of its strengths and weaknesses. What you described will not, in the general sense, work.
To answer you question directly, all requests will count against your quota but the application you describe will probably never go over the free tier. So don't worry about it.
--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/9baeba11-22f3-4542-9655-81ccf6d4e773%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.