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 #253

Open
cg0 opened this issue Aug 10, 2023 · 2 comments
Open

Create centralised event broker between Web and Bancho #253

cg0 opened this issue Aug 10, 2023 · 2 comments
Labels
enhancement New feature or request plugins Issues related to plugin system web Issues related to the web portion of Hirasawa

Comments

@cg0
Copy link
Member

cg0 commented Aug 10, 2023

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 cg0 added enhancement New feature or request web Issues related to the web portion of Hirasawa plugins Issues related to plugin system labels Aug 10, 2023
@cg0
Copy link
Member Author

cg0 commented Aug 10, 2023

Web ticket: HirasawaProject/Hirasawa-Web#16

@cg0
Copy link
Member Author

cg0 commented Aug 13, 2023

This ticket should also use environment variables for Redis credentials like #256

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request plugins Issues related to plugin system web Issues related to the web portion of Hirasawa
Projects
None yet
Development

No branches or pull requests

1 participant