Channel API issues

170 views
Skip to first unread message

Aleksei Rovenski

unread,
Apr 2, 2012, 10:08:29 AM4/2/12
to google-a...@googlegroups.com
Hi all,

This is critical and started to happen 2-3 hours ago. 
First of all connected presence is not coming anymore (disconnected comes). This broke a flow in our application (yagoloo-chat). 
We added a tmp workaround to exclude connected presence handler from app flow, but only to find out that messages are now not reaching clients.
So client creates the channel and notifies the server that it is ready to receive messages, server sends message, but client never gets it.
Maybe one out of 20 is getting the message. This is really critical as our application is a chat app.
Please help,

cheers,
Aleksei

Tom Davis

unread,
Apr 2, 2012, 2:33:54 PM4/2/12
to google-a...@googlegroups.com

Not terribly helpful perhaps, but in using the channel API I always had to build
in polling backups because it wasn't uncommon at all for messages to not be
received. Presumably the chat messages are stored somewhere, so how about adding
a timeout such that if the client doesn't receive a message within N seconds,
poll for any missed messages?

Maybe it's just me, but I never considered the channel API to be very robust.
Tokens randomly didn't work, exceptions were raised from the library for
seemingly no reason, etc. I just use it as a tool to drastically cut down on
Datastore queries, not as the foundation of an application.

>
> cheers,
> Aleksei
>
> --
> 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/-/4PMdsL9OPJIJ.
> 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.
>

Aleksei Rovenski

unread,
Apr 3, 2012, 6:03:52 AM4/3/12
to google-a...@googlegroups.com
You are probably right. We should consider something like beaconpush, maybe it makes more sense.

cheers,
Aleksei

> To post to this group, send email to google-appengine@googlegroups.com.
> To unsubscribe from this group, send email to google-appengine+unsubscribe@googlegroups.com.

Phil Leggetter

unread,
Apr 3, 2012, 6:22:50 AM4/3/12
to google-a...@googlegroups.com
BeaconPush are stopping offering a hosted service as of September 2012. See http://blog.beaconpush.com/post/17708826108/discontinuation-of-cloud-plan

Your options now are Pusher (who I work for) and others listed on my realtime web technology guide.

Regards,

Phil @leggetter

Moishe Lettvin

unread,
Apr 3, 2012, 7:52:18 PM4/3/12
to google-a...@googlegroups.com
Are you still having trouble retrieving messages? The problem with presence has been fixed since about 2am this morning, but I haven't heard any other reports of dropped messages, and I'm not able to reproduce that.

--
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/-/4PMdsL9OPJIJ.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.

Aleksei Rovenski

unread,
Apr 4, 2012, 6:26:08 AM4/4/12
to google-a...@googlegroups.com
@Phil, I didn't know that, thanks for the info, will take a look and try it out

@Moishe, no all troubles are gone starting from yesterday.. we used to have another connectivity problem, but haven't seen it since then, so maybe it is also gone:
Btw when I created that issue I couldn't find a way to add Channel component label to it, I guess thats why there was no reaction about it? or is it smt that you do

Using the opportunity wanted also to ask any information about adding support for batch sending messages:
Each call to sendMessage takes 20-60 millis, so if user sends a message in chat room with 50 chatters, currently I have to create 10 tasks in order to decrease latency and this also eats instance hours. So having this would be a fantastic feature. 

And finally a question I should have probably asked a couple of month ago when selecting channel api for our application, can anybody share info about any big application using channel api seriously and that really depends on it?

On Wednesday, April 4, 2012 2:52:18 AM UTC+3, Moishe wrote:
Are you still having trouble retrieving messages? The problem with presence has been fixed since about 2am this morning, but I haven't heard any other reports of dropped messages, and I'm not able to reproduce that.

On Mon, Apr 2, 2012 at 8:08 AM, Aleksei Rovenski <aleksei....@gmail.com> wrote:
Hi all,

This is critical and started to happen 2-3 hours ago. 
First of all connected presence is not coming anymore (disconnected comes). This broke a flow in our application (yagoloo-chat). 
We added a tmp workaround to exclude connected presence handler from app flow, but only to find out that messages are now not reaching clients.
So client creates the channel and notifies the server that it is ready to receive messages, server sends message, but client never gets it.
Maybe one out of 20 is getting the message. This is really critical as our application is a chat app.
Please help,

cheers,
Aleksei

--
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/-/4PMdsL9OPJIJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to google-appengine+unsubscribe@googlegroups.com.

c h

unread,
May 24, 2012, 11:22:40 AM5/24/12
to google-a...@googlegroups.com
i'm having trouble on win7 Firefox.  i get the onOpen, but don't get error/close and still don't receive messages.  it's happening more frequently then i'd like.

from a billing perspective, do i get charged each time i try and "re-open" a channel using the same token?   (say every 5 mins i just call open to make sure i'm connected)

thanks,

cfh


On Tuesday, April 3, 2012 4:52:18 PM UTC-7, Moishe wrote:
Are you still having trouble retrieving messages? The problem with presence has been fixed since about 2am this morning, but I haven't heard any other reports of dropped messages, and I'm not able to reproduce that.

On Mon, Apr 2, 2012 at 8:08 AM, Aleksei Rovenski  wrote:
Hi all,

This is critical and started to happen 2-3 hours ago. 
First of all connected presence is not coming anymore (disconnected comes). This broke a flow in our application (yagoloo-chat). 
We added a tmp workaround to exclude connected presence handler from app flow, but only to find out that messages are now not reaching clients.
So client creates the channel and notifies the server that it is ready to receive messages, server sends message, but client never gets it.
Maybe one out of 20 is getting the message. This is really critical as our application is a chat app.
Please help,

cheers,
Aleksei

--
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/-/4PMdsL9OPJIJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to google-appengine+unsubscribe@googlegroups.com.

alex

unread,
May 24, 2012, 12:12:52 PM5/24/12
to google-a...@googlegroups.com
There's also a little open issue with Channels API here if this is your case:

c h

unread,
May 24, 2012, 1:56:52 PM5/24/12
to google-a...@googlegroups.com
sounds kinda like what i'm seeing.  thanks for the link!  i'll follow that issue.

for now back to boring old page refreshes. :(
Reply all
Reply to author
Forward
0 new messages