Scaling and Infrastructure - Why is My Shiny App Slow?

By:
Appsilon Team
August 24, 2021

<h2>Scaling and Infrastructure</h2> Performance is an inevitable concern for all successful applications. With success comes greater adoption. This widespread adoption leads to issues from lack of processing power and memory to network failures. Questions begin circulating like “Why is your app so slow?” or “How do you scale Shiny to support more users?”. Scaling at the infrastructure level can be a cost-friendly option to help alleviate problems with your Shiny app's performance.  At Appsilon, we’ve developed Shiny enterprise apps that scale for hundreds of concurrent users. You can throw money at options like improving memory to existing servers, or adding more servers. And in some cases, these options are the correct route to take. However, there are other areas of improvement if you focus efforts on the Shiny application itself.  <blockquote><strong>Want to learn more? Watch our video on <a href="https://appsilon.com/how-to-scale-a-shiny-dashboard/" target="_blank" rel="noopener noreferrer">how we scaled a Shiny App to hundreds users</a>.</strong></blockquote> In the presentation below, Pedro Silva discusses Appsilon’s approach to performance on an infrastructure level. Although the talk is geared towards developers with a higher skill level, Pedro’s talking points are valuable to all devs looking to create a faster, successful app.  <iframe title="YouTube video player" src="https://www.youtube.com/embed/iI5L8qmmZaU" width="560" height="315" frameborder="0" allowfullscreen="allowfullscreen"></iframe> <a href="https://appsilon.com/author/pedro/" target="_blank" rel="noopener noreferrer"><b>Pedro Silva</b></a><b>, R/Shiny Developer at Appsilon,</b><a href="https://appsilon.com/shiny-videogame-video-tutorial/" target="_blank" rel="noopener noreferrer"> <b>Grand Prize Winner 2020 Shiny Contest</b></a> <h2>Abstract</h2> For a Data Scientist, Shiny can be an amazing tool for creating fast and powerful prototypes and dashboards. But what to do when your application becomes TOO popular and more and more people want to use it?  As the number of users grows, keeping up with the demand of a Shiny application can be tricky, and there is only so much you can do to improve performance at the code level.  This presentation gives an overview of our custom approach to improving Shiny dashboard performance on an infrastructure level. It also includes tips for scaling Shiny dashboards to hundreds of concurrent users while keeping your budget under control. <blockquote><strong>Need help scaling with RStudio Connect? Appsilon is a proud <a href="https://appsilon.com/appsilon-data-science-is-now-an-rstudio-full-service-certified-partner/" target="_blank" rel="noopener noreferrer">RStudio Full Service Certified Partner</a>. </strong></blockquote> <h2 id="anchor-5">Let's Build Something Beautiful Together</h2> Appsilon provides innovative <strong>data</strong> <strong>analytics</strong>, <strong>machine</strong> <strong>learning</strong>, and <strong>managed services </strong>solutions for Fortune 500 companies, NGOs, and non-profit organizations. We deliver <strong>the world’s most advanced <a class="gmail-QuillHelpers-link gmail-textEditor-link" href="https://wordpress.appsilon.com/shiny" target="_blank" rel="nofollow noopener noreferrer">R Shiny</a> applications</strong>, with a unique ability to rapidly develop and scale enterprise Shiny dashboards. Our proprietary machine learning frameworks allow us to deliver <strong><a href="https://appsilon.com/computer-vision/">Computer Vision</a></strong>, <strong>NLP</strong>, and <strong>fraud detection</strong> prototypes in as little as one week. Appsilon Tech Team Members regularly contribute to open-source packages. This is part of our commitment to positively impact the world through technology. Consider dropping a star on your favorite<a href="https://shiny.tools/"> shiny packages</a> at our <a href="https://github.com/Appsilon">Github</a> to let us know we’re on the right track. Do you have any comments or questions? Swing by our feedback threads, like the <a href="https://github.com/Appsilon/shiny.fluent/discussions/24" target="_blank" rel="noopener noreferrer">discussion</a> at our new <a href="https://github.com/Appsilon/shiny.fluent" target="_blank" rel="noopener noreferrer">shiny.fluent package.</a> We love to hear from the R community. If you spot an issue or room for improvement, don’t hesitate to send a pull request. <a href="https://appsilon.com/shiny/" target="_blank" rel="noopener noreferrer"><img class="aligncenter size-full wp-image-7584" src="https://webflow-prod-assets.s3.amazonaws.com/6525256482c9e9a06c7a9d3c%2F65b020286d8f975c0820526a_World-ClassEnterpriseShinyDashboards_city_Appsilonlogo_wht_15.webp" alt="world class enterprise Shiny dashboards" width="1914" height="880" /></a>

Have questions or insights?

Engage with experts, share ideas and take your data journey to the next level!

Is Your Software GxP Compliant?

Download a checklist designed for clinical managers in data departments to make sure that software meets requirements for FDA and EMA submissions.
Explore Possibilities

Share Your Data Goals with Us

From advanced analytics to platform development and pharma consulting, we craft solutions tailored to your needs.

Talk to our Experts
shiny
shiny dashboards
community
r community
infrastructure