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

Create centralised event broker between Web and Bancho #16

Open
cg0 opened this issue Aug 10, 2023 · 1 comment · May be fixed by #22
Open

Create centralised event broker between Web and Bancho #16

cg0 opened this issue Aug 10, 2023 · 1 comment · May be fixed by #22
Labels
enhancement New feature or request

Comments

@cg0
Copy link
Member

cg0 commented Aug 10, 2023

Required #5

We want to be able to broadcast events between the two platforms, this will be using Redis pub/sub.

As part of this ticket we want to create an event that allows events within Bancho to be sent to Web and visa versa, these events should be then fired through the native event system but also allowing custom remote events to be listened to

The channel format will be event:ClassName and the body will be a JSON encoded form of relevant data, when it refers to database objects we should send the ID, so instead of User we would send user_id.

Each event on one platform should have a native event with the same name, this allowed each platform to listen to eachother's events allowing read-only processing without a companion plugin on each end

@cg0
Copy link
Member Author

cg0 commented Aug 10, 2023

Bancho ticket: HirasawaProject/Hirasawa-Bancho#253

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

Successfully merging a pull request may close this issue.

1 participant