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

Introduce hooks for Cluster subscribe and unsubscribe #4176

Open
J-Gras opened this issue Jan 15, 2025 · 2 comments
Open

Introduce hooks for Cluster subscribe and unsubscribe #4176

J-Gras opened this issue Jan 15, 2025 · 2 comments
Labels

Comments

@J-Gras
Copy link
Contributor

J-Gras commented Jan 15, 2025

I have a use case where I want to know which topics a node is subscribed to. For this, I'd like to have hooks like Cluster::on_subscribe(topic_prefix: string) and Cluster::on_unsubscribe(topic_prefix: string) to maintain a list of currently subscribed topics.

@awelzel awelzel added Area: Scripting good first issue A good place to get started working with Zeek. labels Jan 15, 2025
@0xxon
Copy link
Member

0xxon commented Jan 21, 2025

Out of curiosity - could you perhaps sketch the use-case for this?

@J-Gras
Copy link
Contributor Author

J-Gras commented Jan 21, 2025

The gist: I have an external process that needs to understand where messages will flow to do synchronization. It's a little bit weird, because it's somehow contrary to the idea behind a publish-subscribe-architecture 🤷

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

No branches or pull requests

3 participants