Тёмный
No video :(

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

Posit PBC
Подписаться 39 тыс.
Просмотров 2,8 тыс.
50% 1

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

Опубликовано:

 

29 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 6   
@mylomylo2994
@mylomylo2994 Месяц назад
This is amazing.
@WaiguruMuriuki
@WaiguruMuriuki 3 месяца назад
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.
@SamEdwardes
@SamEdwardes 3 месяца назад
This is awesome! Nice work shiny team 🎉
@user-hl1fk6lw8k
@user-hl1fk6lw8k 3 месяца назад
Thanks for the feature.❤
@manumathew8529
@manumathew8529 2 месяца назад
This is great🎉
@focardozom2
@focardozom2 Месяц назад
Could you please explain how to import the data when working with Shinylive using a quarto document?
Далее
Reforged | Update 0.30.0 Trailer | Standoff 2
02:05
Просмотров 789 тыс.
Has Generative AI Already Peaked? - Computerphile
12:48
`const` was a mistake
31:50
Просмотров 134 тыс.
Every React Concept Explained in 12 Minutes
11:53
Просмотров 586 тыс.
Reforged | Update 0.30.0 Trailer | Standoff 2
02:05
Просмотров 789 тыс.