Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

document shinyPaaS best practices #11

Open
maxheld83 opened this issue Jul 20, 2020 · 2 comments
Open

document shinyPaaS best practices #11

maxheld83 opened this issue Jul 20, 2020 · 2 comments

Comments

@maxheld83
Copy link
Owner

both for our internal cost justification, as well as potentially for other people, I'm going to document why/how to set up shiny in a public cloud PaaS.

Currently, we're going with Azure.

Notes:

@maxheld83
Copy link
Owner Author

should comment on particularities of shiny:

  • actually needs dynamic scaling, though mostly in the direction of to 0 😏. Especially relevant when app is shown to groups, seminars etc.
  • the whole point of shiny is to reduce time to value, and to leverage data scientist skills (rather than full-stack dev). So we should absolutely reduce the amount of general dev/ops overhead (Kubernetes, running your own server/vm, even running shiny server (pro)/rsconnect should all be avoided). The present muggle design avoids all of these.
  • shiny is inherently stateful and (related) runs on WebSockets, both of which don't fly with serverless/FaaS products such as google cloudrun. So we're a bit in a weird spot.
  • shinyapps.io also adresses all of these concerns (scales to 0!), but it does not
    • use images, so reproducibility is dodgy (packrat)
    • no good way to pass secrets to connect to external services
    • pricing may not be competitive (?) (probably is, if you factor in developer time).

@maxheld83
Copy link
Owner Author

heroku, at least via the (popular?) hero-buildpack-r is not ideal, because it does not use docker, but also relies on rsconnect-alike magic.
https://github.com/virtualstaticvoid/heroku-buildpack-r/

@maxheld83 maxheld83 transferred this issue from maxheld83/muggle Jul 29, 2020
maxheld83 added a commit that referenced this issue Jul 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant