Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distributed events #1028

Open
DenuxPlays opened this issue Nov 26, 2024 · 2 comments
Open

Distributed events #1028

DenuxPlays opened this issue Nov 26, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@DenuxPlays
Copy link
Contributor

Feature Request

Currently we have Background Workers where one Job is only given to one Worker.
It would be great if we can fire events where one event is given to all workers.

I need to inform every server running when a specific entity is created.

Describe the solution you'd like

A system that works just like the workers but the event is published to every worker instead of only one.

Describe alternatives you've considered

There aren't really any alternatives in the rust ecosystem.

@DenuxPlays DenuxPlays added the enhancement New feature or request label Nov 26, 2024
@jondot
Copy link
Contributor

jondot commented Nov 26, 2024

Sounds like some kind of pubsub requirement (subscriptions via Redis for example) doesn’t it?

@DenuxPlays
Copy link
Contributor Author

Sounds like some kind of pubsub requirement (subscriptions via Redis for example) doesn’t it?

Yes kinda but that both can be used simultaneously and controlled via code.
Just like Messages and Events in other frameworks like spring or symfony.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants