Understanding the scalability of RShiny apps hosted on ShinyServer

后端 未结 3 1784
囚心锁ツ
囚心锁ツ 2021-01-31 04:48

I am building a series of interactive shiny web apps for a project that I am considering turning into a Company. My background is in data science and I don\'t have a lot of expe

3条回答
  •  没有蜡笔的小新
    2021-01-31 05:13

    1. For a large number of concurrent users, use a load balancer like nginx and enable the autoscaling of your app, e.g. through Kubernetes.

    2. You can deploy your app on Heroku. On the paid tiers it includes NoOps autoscaling of your app. See this tutorial on how to deploy a Shiny app in a Docker container on Heroku: https://medium.com/analytics-vidhya/deploying-an-r-shiny-app-on-heroku-free-tier-b31003858b68

    3. You can query the table last update timestamp in the Shiny server logic with reactivePoll() and rerun your db query if it changed. It is not "real-time" but depending on your application close enough if you set the time interval small.

提交回复
热议问题