(Quick Reference)

1.1.2 New Events API

Version: 3.3.5

1.1.2 New Events API

The Grails Async Framework has been extracted from Grails and moved to a separate project.

This allows the Async support to evolve independent of the framework itself in a fast moving and evolving area.

In order to support multiple different asynchronous and reactive frameworks Grails 3.3 has been decoupled from Reactor 2.x and an abstract EventBus notation added.

The EventBus interface provides the foundation and multiple implementations including GPars and RxJava.

A new set of annotations usable in services classes and regular Spring beans can be leveraged to publish and consume events:

  • Publisher - A transformation that transforms a method ensuring the return value is published as an event

  • Subscriber - A transformation that transforms a method to listen for an event.

For more information see the new documentation.