Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Push and many UI events
Hello community,
in my UI i use a Grid + Push with a LazyQueryContainer (max 5000 rows) . If i create a entity in the backend, i will send a event over a event bus. The UI receive the event and add the entity to the container in an access runnable.
But if i create 5.000-10.000 entities in a short time, the UI will freeze because the access queue is overloaded.
So what can i do? What is best practice in vaadin to handle many events?
vaadinUI.access(() -> {
addEntityToContainer()
});
Thanks and cheers
Dennis
Small modfied example application from https://github.com/peholmst/vaadin4spring/tree/master/samples/push-sample which demonstrate the effect.
And what is better many small access runnables or 1 big access runnable?