Re:Node.js is now available on App Engine standard environment
by mylesborins on Tuesday June 12, 2018 @05:57PM
(#17298442)
You can always set up a cron service
https://cloud.google.com/appengine/docs/standard/nodejs/sche...
https://github.com/GoogleCloudPlatform/nodejs-microservices-...
(I work for GCP)
Re:Node.js is now available on App Engine standard environment
by doomslice on Tuesday June 12, 2018 @06:42PM
(#17298743)
How about eventsource or websocket connections? Will those work (both websockets to the server and to external servers)?
Re:Node.js is now available on App Engine standard environment
by tejohnso on Tuesday June 12, 2018 @06:54PM
(#17298826)
Requests are expected to complete within 60s so a websocket connection is probably not sensible.
https://cloud.google.com/appengine/docs/standard/java/how-re...
Re:Node.js is now available on App Engine standard environment
by jkarneges on Tuesday June 12, 2018 @07:09PM
(#17298907)
For handling incoming long-lived connections, you could pair with Fanout [1] (disclosure: founder). Basically the client sees a raw WebSocket, and your backend gets woken up with HTTP requests when things happen.
I haven't seen anything like this for outbound connections though.
However, I do have one question.
My app server currently polls another external endpoint periodically and does something based on the results. If I move it to standard will this still work? I assume not since it can scale to zero.