abpframework / abpframework/abp

IDistributedEventBus publish event by string EventName

Open
#16,694 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

discussion feature
Dominant language
C#
Stars
14.4k
Forks
3.7k
Avg merge
15h 32m
Merged PRs (30d)
106

Description

Is there an existing issue for this?
  • I have searched the existing issues
Is your feature request related to a problem? Please describe the problem.

I want to write a generally used api for publishing any events. And it's a microservice, so it's hard to access the EventType.
can I publish event by eventName and json object data.

Describe the solution you'd like

Volo.Abp.EventBus.Distributed.IDistributedEventBus add a method like:

Task PublishAsync(string eventName, object eventData);
Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the IDistributedEventBus interface and trace the existing distributed event publishing entry points. Determine how event names and object data should be resolved and serialized across the microservice boundary, then verify that the new API has defined behavior for successful and invalid publishes.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api, backend, distributed-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.