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

Provide event bus for services #354

Merged
merged 2 commits into from
Oct 22, 2024

Conversation

tom-binary
Copy link
Contributor

This adds a ->bus method for lightweight notifications between services. It uses the Redis sharded pub/sub mechanism to send notifications between services.

This adds a "service bus", accessible through `$api->bus`. It's intended
for notifying other services about events or triggering actions that
don't require the full audit capabilities of a Redis stream.

It uses the sharded Redis pub/sub feature to avoid putting undue load on
larger clusters (the publish/subscribe methods in the transport have been
in place for a while, but used the old publish-to-all-shards PUBLISH/SUBSCRIBE
calls).
@tom-binary tom-binary merged commit ab7ba85 into deriv-com:master Oct 22, 2024
1 check passed
@tom-binary tom-binary deleted the feature/service_bus branch October 22, 2024 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant