JohnAdders / climate_narrative

CBES/NGFS scenario analysis narrative tool to support smaller firms
MIT License
4 stars 7 forks source link

Multi-user performance issues #246

Closed JohnAdders closed 2 years ago

JohnAdders commented 2 years ago

When hosted at shinyio or cgfi multiple users share a single R instance, since R is single threaded if there is a long running task then all users navigations and interactions must wait for the long running task to finish before they can be processed.

Some articles explaining a potential workaround

https://rstudio.github.io/promises/articles/shiny.html

https://www.r-bloggers.com/2020/03/shiny-performance-tuning-with-future-promises-part-1/ https://www.r-bloggers.com/2020/04/shiny-performance-tuning-with-future-promises-the-practice/

krzmip commented 2 years ago

It seems the solution does not work on CGFI server. Investigation in progress

krzmip commented 2 years ago

Investigation did not result in any meaningful conclusion. However, it turns out that the async functionality works now correctly, for unknown reason. Closing the issue