Joe Cheng | Managing long-running operations in Shiny | Posit

  Рет қаралды 1,950

Posit PBC

Posit PBC

28 күн бұрын

It’s been years since Shiny evolved to allow asynchronous operations within applications, improving scalability. The introduction of the {promises} package enabled concurrent processing between multiple Shiny sessions, a significant step forward in handling background tasks. However, this did not address the need for intra-session concurrency, where users expect to interact with the application while long-running calculations are executed in the background.
Recently, we added a new ExtendedTask feature to Shiny to allow for such intra-session concurrency. This new feature provides a different approach for developers to incorporate asynchronous tasks, enabling smoother user interactions during intensive computations. Alongside ExtendedTask, this talk will also discuss newer methods for launching asynchronous tasks, besides the usual {future} package. The focus will be on the practical application and integration of these features into Shiny applications.
Links mentioned in the video:
⬡ Shiny in Production: Principles, practices, and tools, • Joe Cheng | Shiny in p...
Timestamps:
0:20 Make your slow code fast
1:43 Long-running operations are a problem
3:28 Inter-session concurrency and intra-session concurrency
4:24 Introducing ExtendedTask
5:17 Demo of a slow API using ExtendedTask
6:13 Slow code example (R)
7:16 Fix slow code with ExtendedTask (R)
8:55 Slow code example (Python)
7:16 Fix slow code with ExtendedTask (Python)
10:46 Links to get started
11:06 ExtendedTask backstory intro
11:28 ExtendedTask vs. Shiny Async
15:50 How reactive programming works in Shiny
21:31 How ExtendedTask works in the reactive process
25:38 What we’re still working on
26:35 {future} alternatives
31:47 Wrapping up

Пікірлер: 4
@WaiguruMuriuki
@WaiguruMuriuki 25 күн бұрын
I have created many shiny dashboards using promise and future for long tasks. However, I was always feeling there was a better idea out there. Then, wallla!!!, we have this. Thanks Cheng.
@manumathew8529
@manumathew8529 4 күн бұрын
This is great🎉
@SamEdwardes
@SamEdwardes 24 күн бұрын
This is awesome! Nice work shiny team 🎉
@user-hl1fk6lw8k
@user-hl1fk6lw8k 26 күн бұрын
Thanks for the feature.❤
Introducing Shiny for Python Templates | Carson Sievert | Posit
15:44
How-to: Dark Mode on Shiny for Python apps✨
0:54
Posit PBC
Рет қаралды 613
Sigma Girl Education #sigma #viral #comedy
00:16
CRAZY GREAPA
Рет қаралды 114 МЛН
1🥺🎉 #thankyou
00:29
はじめしゃちょー(hajime)
Рет қаралды 80 МЛН
Шокирующая Речь Выпускника 😳📽️@CarrolltonTexas
00:43
Глеб Рандалайнен
Рет қаралды 11 МЛН
How I Build B2B Sales and Marketing Funnels
25:38
Viewabo
Рет қаралды 11
Analyze and explore data stored in Snowflake using R
8:34
Posit PBC
Рет қаралды 1,2 М.
{shinylive}: Serverless Shiny Apps | Barret Schloerke | Posit
11:49
Spring Tips: Spring AI Redux
22:49
SpringDeveloper
Рет қаралды 2,5 М.
How To Create Interactive Maps with R | Step-By-Step Tutorial
21:26
the staff wheeled me out of the store in a cart 🙀🦄💩✨🥴
0:11
iPolina Queen of the Cringe 👑
Рет қаралды 3,8 МЛН
ПРОВЕРИЛ НА ПРОЧНОСТЬ (@novayaeracom - Instagram)
0:16
В ТРЕНДЕ
Рет қаралды 3,9 МЛН
ЭРИ КИРИБ ҚОЛДИ 😨
0:15
Hasan Shorts
Рет қаралды 8 МЛН
🍕Пиццерия FNAF в реальной жизни #shorts
0:41