viable?: using frequent ajax polling of cloud storage for chat webapp?

68 views
Skip to first unread message

HOCINE BENFERHAT

unread,
Jun 18, 2012, 1:21:38 AM6/18/12
to google-a...@googlegroups.com
google cloud storage (gcs) advertises strong read-after-write consistency, so i thought it would provide a cheap way to implement a chatroom webapp on gae. frequent polling of gae would be expensive, so it would work like this:

when a user says something in the chatroom, the browser sends the msg to gae, which updates a json-formattted file on gcs. 
all users constantly poll gcs (once per second?) to see if anything has been said in the chatroom.

would this be a viable solution? sufficiently cheap/fast?

HOCINE BENFERHAT

unread,
Jun 18, 2012, 1:29:21 AM6/18/12
to google-a...@googlegroups.com
also, would it be possible to implement secure private chat rooms? perhaps by encrypting the gcs buckets?

Brandon Wirtz

unread,
Jun 19, 2012, 2:53:29 AM6/19/12
to google-a...@googlegroups.com

Use a time stamp in the request, and Edgecache can cache the request. That will let you  serve massive numbers of users pretty cheap.

 

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/1-8I1djwFs0J.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.

Reply all
Reply to author
Forward
0 new messages