apache / apache/grails-core

Grails 3.0.1 - Multiple event consumers

Open
#8,971 2 comments 0 reactions 0 assignees View on GitHub
relates-to: v3 status: acknowledged type: enhancement
Dominant language
Groovy
Stars
2.9k
Forks
975
Avg merge
1d 22h
Merged PRs (30d)
92

Description

With Grails 2.x and platform-core plugin we could send an event that was consumed by multiple consumers. Event consumers could reply to the event and the original sender could collect replies from multiple consumers.

I cannot find a way to do this in Grails 3.0.1 so I created a trait that add this feature to my controllers and services. It works for my use-case, but I wonder if this is a common requirement and thus should be included in grails-plugin-events as a standard feature? Or is there another/better way to do this?

It would be great to get feedback from the Reactor guys on this topic.

Here's my trait: https://gist.github.com/goeh/b33363550de083ef541f
Feel free to comment and modify my implementation.

See discussion here: https://groups.google.com/forum/#!topic/grails-dev-discuss/gFZch37urpY

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the linked trait and the Google Groups discussion, then inspect the current grails-plugin-events behavior and its Reactor integration. The scope is to determine whether multiple event consumers and collected replies should be a standard feature, and to document an agreed design or alternative approach before implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.