MarkEdmondson1234 / appengine-shiny

Looking at deploying Shiny apps on Google App Engine with flexible containers
17 stars 3 forks source link

websocket support needed #1

Open MarkEdmondson1234 opened 7 years ago

MarkEdmondson1234 commented 7 years ago

Not doable at this time

screen shot 2017-03-04 at 00 22 25

https://github.com/GoogleCloudPlatform/appengine-sidecars-docker/issues/48

dfalbel commented 6 years ago

@MarkEdmondson1234 do you think this is working now, after more than 1 year?

MarkEdmondson1234 commented 6 years ago

Hi! Yes it is doable if you are on the alpha for websockets for Google App Engine. However, I found that App Engine Flexible doesn't scale down to zero, so it only is really worthwhile if you have enough traffic to warrant having at least one VM on all the time. However, these days I am happy with the Kubernetes solution (aside getting over Kubernetes learning curve), since that does scale to zero, scales up to a billion etc. I blogged about that here if you are interested.

dfalbel commented 6 years ago

sorry! Hi! :) Thanks for the link, i'll try using kubernetes instead, but It doesn't seem to be as simple as app engine :( Do you know any other service that can also host docker containers and don't have problems with web sockets. I've been using now.sh but they added an image size limit of 100MB and it's not working anymore.

MarkEdmondson1234 commented 6 years ago

You could try Amazon or Azure container support, I think they have a similar service, but you’d have to check the web socket situation.

dfalbel commented 6 years ago

Ok thanks! Finally using kubernetes was much simpler since I don't need to serve many apps inside the cluster, so I could use:

kubectl expose deployment app --type LoadBalancer \
  --port 80 --target-port 8080

Thanks very much!