Implementing a long running server process with status page

Hi,

I’d like to know what the optimal way of implementing a long running server process would be.

The use case is to have a screen that allows the user to upload (potentially hundreds of) documents, kick off a background based server process and then return control to the user. Then the user can navigate to another screen to see what the current upload status is.

Would I be better off using the standard spring approach of implementing an event listener or is there a better way to do this in Vaadin?

I’m using the latest version of Vaadin with Java 21.

Uploading files is separate thing, but for long-running tasks you might want to take a look at this recent blog post and examples for UIs.

Also, if you are interested in robust Java background processing framework, JobRunr is pretty popular.

3 Likes

Many thanks for the quick response. The “Really Long Actions” example is exactly what I was looking for.

1 Like