Background: Shiny server (open source) hosted on Linux.
Hypothetical situation #1:
A single app hosted in one instance of Shiny server, with 4 cores (single thread) available.
App runs code sequentially.
If 100 users on separate machines tries to the connect to this single app, how is the load handle by Shiny server?
My understanding is that each user connection equals one R session, thus requiring 1 core per connection. Is this correct?
Hypothetical situation #2:
A single app hosted in one instance of Shiny server, with 4 cores (single thread) available.
App runs code in parallel, using 10 cores per run.
If 2 users on separate machines tries to the connect to this single app, how is the load handle by Shiny server in this case?
I don't believe there's a way to detect remaining cores.
How does Shinyapps.io handle the above?
Thanks in advance!