Re: [google-appengine] Server Sent Events in GAE Standard

2018-08-07 Thread Attila-Mihaly Balazs
Also, I would expect this not to work since the AppEngine instances don't 
talk directly to the client, but rather go trough the Google Front-end 
which buffers both requests and responses (so neither can be streamed).

Attila

-- 
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-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@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/26c04e33-d3bd-4cf7-86b7-7b2e19fa50d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Server Sent Events in GAE Standard

2018-08-06 Thread Steve Neal

Thanks for the advice - I'll add a comment to this pwhen I've had a chance 
to try Server Side Events.


On Monday, 6 August 2018 17:19:28 UTC+2, Steren Giannini wrote:
>
> You are correct. 
> And because App Engine in automatic scaling mode has a 60 sec request 
> timeout, this probably means that your events cannot be separated by more 
> than 60sec.
>
> Give it a try, let us know.
>
> On Mon, Aug 6, 2018 at 7:39 AM Barry Hunter  > wrote:
>
>> Well as such Server Sent Events IS long-polling!
>>
>> .. it's just wrapping it up in a 'multi-part' message, but as noted its 
>> still HTTP, using Chunked encoding. 
>>
>> ... and a browser provided trigger mechanism to catch each new 'event' 
>> message. 
>>
>>
>>
>>
>> On Mon, Aug 6, 2018 at 2:07 PM Steve Neal > > wrote:
>>
>>>
>>> I need to send messages from the Web server to a browser based 
>>> application.
>>>
>>> Server Sent Events are an obvious choice but I cannot see any supporting 
>>> documentation. Is it possible to do this with GAE standard using Java 8 ?
>>>
>>> If not, is there a way to run web sockets, or some other technology that 
>>> will allow messages to be sent to the browser. I don't want to resort to 
>>> polling from the browser.
>>>
>>> Thanks, Steve.
>>>
>>> -- 
>>> 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/da54131c-b8dc-44c6-ab36-bbb918ad3125%40googlegroups.com
>>>  
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> -- 
>> 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/CAJCAUu%2BXN547NFR_jdaSQnggiwVij%2Bm9M6hUDm073tFGcqMe8g%40mail.gmail.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@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/d48fe73e-dac7-4b20-84c0-272da94716b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Server Sent Events in GAE Standard

2018-08-06 Thread 'Steren Giannini' via Google App Engine
You are correct.
And because App Engine in automatic scaling mode has a 60 sec request
timeout, this probably means that your events cannot be separated by more
than 60sec.

Give it a try, let us know.

On Mon, Aug 6, 2018 at 7:39 AM Barry Hunter  wrote:

> Well as such Server Sent Events IS long-polling!
>
> .. it's just wrapping it up in a 'multi-part' message, but as noted its
> still HTTP, using Chunked encoding.
>
> ... and a browser provided trigger mechanism to catch each new 'event'
> message.
>
>
>
>
> On Mon, Aug 6, 2018 at 2:07 PM Steve Neal  wrote:
>
>>
>> I need to send messages from the Web server to a browser based
>> application.
>>
>> Server Sent Events are an obvious choice but I cannot see any supporting
>> documentation. Is it possible to do this with GAE standard using Java 8 ?
>>
>> If not, is there a way to run web sockets, or some other technology that
>> will allow messages to be sent to the browser. I don't want to resort to
>> polling from the browser.
>>
>> Thanks, Steve.
>>
>> --
>> 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-appengine+unsubscr...@googlegroups.com.
>> To post to this group, send email to google-appengine@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/da54131c-b8dc-44c6-ab36-bbb918ad3125%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@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/CAJCAUu%2BXN547NFR_jdaSQnggiwVij%2Bm9M6hUDm073tFGcqMe8g%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@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/CANHKq5HURiVv3zpTTEb-4DLeh0W3eujSVBy7HJnAQq5_kgW_xA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Server Sent Events in GAE Standard

2018-08-06 Thread Barry Hunter
Well as such Server Sent Events IS long-polling!

.. it's just wrapping it up in a 'multi-part' message, but as noted its
still HTTP, using Chunked encoding.

... and a browser provided trigger mechanism to catch each new 'event'
message.




On Mon, Aug 6, 2018 at 2:07 PM Steve Neal  wrote:

>
> I need to send messages from the Web server to a browser based application.
>
> Server Sent Events are an obvious choice but I cannot see any supporting
> documentation. Is it possible to do this with GAE standard using Java 8 ?
>
> If not, is there a way to run web sockets, or some other technology that
> will allow messages to be sent to the browser. I don't want to resort to
> polling from the browser.
>
> Thanks, Steve.
>
> --
> 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-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@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/da54131c-b8dc-44c6-ab36-bbb918ad3125%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@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/CAJCAUu%2BXN547NFR_jdaSQnggiwVij%2Bm9M6hUDm073tFGcqMe8g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Server Sent Events in GAE Standard

2018-08-06 Thread 'Steren Giannini' via Google App Engine
Hi,
Server sent events are based on the HTTP protocol, so I expect them to work
on App Engine.
We do not provide specific documentation, I followed this one in the past:
https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events.
Let us know how if they work as expected for you.

Websockets are not supported on App Engine.

Steren
Product Manager

On Mon, Aug 6, 2018, 06:07 Steve Neal  wrote:

>
> I need to send messages from the Web server to a browser based application.
>
> Server Sent Events are an obvious choice but I cannot see any supporting
> documentation. Is it possible to do this with GAE standard using Java 8 ?
>
> If not, is there a way to run web sockets, or some other technology that
> will allow messages to be sent to the browser. I don't want to resort to
> polling from the browser.
>
> Thanks, Steve.
>
> --
> 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-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@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/da54131c-b8dc-44c6-ab36-bbb918ad3125%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@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/CANHKq5Ex7xXKCSiUFOjeMFHN3n5t%3DcZ%2B-9NnRxi%2BCeC346s9tg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Server Sent Events in GAE standard environment - ADVICE PLEASE

2018-08-06 Thread Steve Neal

I need to be able send notifications to a web application from the app 
engine server. For me Server Sent Events seem to be the best option. 
However, I cannot find any supporting docs for this in GAE standard 
environment (Java 8). 

Is this feature implemented at all in GAE?

Is there something else I should be looking for? web sockets are another 
possibility for me, but from what I can tell, they aren't supported.

Thanks.

-- 
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-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@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/501f4c6c-513e-48e7-8b28-82ee99220261%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Server Sent Events in GAE Standard

2018-08-06 Thread Steve Neal

I need to send messages from the Web server to a browser based application.

Server Sent Events are an obvious choice but I cannot see any supporting 
documentation. Is it possible to do this with GAE standard using Java 8 ?

If not, is there a way to run web sockets, or some other technology that 
will allow messages to be sent to the browser. I don't want to resort to 
polling from the browser.

Thanks, Steve.

-- 
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-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@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/da54131c-b8dc-44c6-ab36-bbb918ad3125%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.