Skip to content

[Feature] Support async event dispatch in EventBus #1447

@robocanic

Description

@robocanic

What would you like to be added:
Support async event dispatch in EventBus.

  1. Use a buffer channel to temporarily store events, and provide the channel size as a configurable option for users.
  2. Keep the subscribe/consume logic same as Sync pattern.

Why is this needed:
The EventBus only support to dispatch events synchronously, implies that all events needs to be processed immediately. However, in some scenarios, there are numerous events that do not require synchronous blocking processing. Therefore, we need to support asynchronous distribution of events.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions