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?
24108.zip (7.39 KB)