vaadin4spring icon indicating copy to clipboard operation
vaadin4spring copied to clipboard

Support for asynchronous events

Open peholmst opened this issue 10 years ago • 5 comments

Make it possible to publish events in one thread and notify listeners in another thread:

  • all listeners / thread
  • one listener / thread

peholmst avatar Jun 24 '14 08:06 peholmst

Petter, might you integrate Reactor?

E.g., like in http://spring.io/guides/gs/messaging-reactor/.

Are you thinking to have EventBus have overloaded methods that support asynchronous behavior with a boolean flag? Or an alternate implementation (e.g, ScopedAsyncEventBus)?

I'd be interested in lending a hand here.

fastnsilver avatar Aug 29 '14 20:08 fastnsilver

I have no experience with Reactor, but if you think it would make sense to integrate with it, I'll consider it.

My idea was to extend the current EventBus with a new interface and implementation that support async methods in addition to the current synchronous ones. This is what I've been playing around with: https://github.com/peholmst/vaadin4spring/tree/feature/eventbus_enhancements

The biggest challenges will probably be how to make the thread pool configurable and how to transfer context from the main thread to the executing thread.

peholmst avatar Aug 31 '14 17:08 peholmst

And if you are interested to get your hands dirty with this, please go ahead. :-)

peholmst avatar Aug 31 '14 17:08 peholmst

I am interested in integrating the Reactor project as well. Has there been any efforts since last year on this?

cyberoblivion avatar Dec 23 '15 17:12 cyberoblivion

None. Feel free to get your hands dirty if you're interested.

peholmst avatar Dec 23 '15 18:12 peholmst