State of "Send events in batches"

There is this checkbox “send events in batches” in the Session object of web projects. I seem to remember Ricardo saying that it might not be entirely safe to set it because the events might arrive in the wrong order or something. Has there been any progress in that area? Is it less “experimental” in 2025 than it was last year?

1 Like

Still experimental

1 Like

Yeah, I find “use with caution” a bit vague. My debug runs behave well as far as I can see.

1 Like

I haven’t received bug reports for that option in a while, and we do use this experimental option for the automated tests… but I understand that just a really small fraction of the users might be testing it.

I think it would be a good idea to start turning this switch on by default in a future release (2025r2 or 2025r3) for new projects. The option will sit there for a while, just in case you need to turn it off. The idea is still to make it the only option for everyone and remove the other one, eventually.

The other way round :sweat_smile:, events will always arrive in the correct order, when using this option. For example, in the typical login box with the email and password WebTextFields and a Default WebButton. If the user writes some text and press the enter key pretty fast, the Pressed event might arrive (or not!) before the TextChanged events. That doesn’t happen when Send Events In Batches option is True.

Thanks a lot for testing it, please let me know if you find any issue.

7 Likes

It works great for me esp. when I have a ton of WebContainers. MUCH faster loading.

4 Likes

Thanks everyone for the discussion and particularly to @Maximilian_Tyrtania1 for starting things off. Somehow I completely missed this option in the docs and have turned it on to hopefully improve performance.

2 Likes