Reputation: 27012
If I start a Shiny application using
R -e 'shiny::runApp("/app", host="0.0.0.0", port=8888)'
how does it handle concurrent requests / what is its worker model?
Is each request handled in a different thread, process, does it use an event-loop model, or even, does it just handle them one at a time?
Upvotes: 1
Views: 392
Reputation: 29397
shiny
, and its built on top of node
websocket
to that threadevent loop model
flush cycle
which does the following: receiving, updating, reacting, and sending
so while reactives
or observers
are updated its not possible to update other inputs. This is done to avoid race conditionsasync
programming within shiny
by using promises package js
libraries you can work with the V8 package react.js
with shiny
Upvotes: 3