In this video, Marcus Hellberg teaches you how to run long tasks asynchronously in a Vaadin Flow app. By delegating slow tasks to a separate thread, you can keep the UI responsive and avoid freezes or stuck loading indicators.
0:00 - Intro
0:20 - The problem with synchronous slow tasks
1:00 - Synchronous vs async service calls in Spring Boot
1:48 - Show a progress indicator and disable the submit button
3:00 - Pitfall: Vaadin Flow code is synchronous
4:39 - Calling the backend service asynchronously with callbacks
5:58 - Updating the Vaadin UI from a background thread with @Push and ui.access()
8:24 - Outro
Free training video on using Push and WebSockets with Vaadin https://vaadin.com/learn/training/v14...
GitHub: https://github.com/marcushellberg/flo...