jordigarcl
01/13/2020, 12:21 PMapplicationEventPublished.publish(event)
in a kotlin coroutine is a good alternative to Spring’s @Async
method for asynchronous processing of events.
This is a Spring Boot application (No Webflux), so the Controller would have to implement CoroutineScope
to avoid using GlobalScope.