https://github.com/blairj09/shiny-query-async
Asynchronous DB queries in Shiny
https://github.com/blairj09/shiny-query-async
Last synced: 4 months ago
JSON representation
Asynchronous DB queries in Shiny
- Host: GitHub
- URL: https://github.com/blairj09/shiny-query-async
- Owner: blairj09
- Created: 2020-06-11T19:29:15.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-01T01:38:51.000Z (over 5 years ago)
- Last Synced: 2025-01-24T16:11:22.474Z (10 months ago)
- Language: HTML
- Homepage:
- Size: 12.1 MB
- Stars: 8
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Shiny Asynchronous Database Queries
This repository contains 2 shiny applications that execute a simulated long
running query against a SQLite database. The [sync app](R/sync) runs the queries
synchronously (R's default behavior) and the [async app](R/async) runs queries
asynchronously.
Both applications were deployed to RStudio Connect. The synchronous app was
deployed twice: once with default run time parameters on RStudio Connect, and a
second time with max processes set to 20 and max connections per process set to
1 so that each session is run in it's on process.
[`shinyloadtest`](https://rstudio.github.io/shinyloadtest/) was used to run a 20
user, 20 minute load test against each of the three apps. The results of the
loadtest can be found [here](shinyloadtest/report.html).
Not surprisingly, the default RStudio Connect settings struggled to keep up with
the load. The scaled RStudio Connect settings did better, but the best
performing option was the asynchronous application.