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

Support for pattern based topic in kafka #4

Closed
woile opened this issue Feb 26, 2020 · 2 comments
Closed

Support for pattern based topic in kafka #4

woile opened this issue Feb 26, 2020 · 2 comments

Comments

@woile
Copy link
Contributor

woile commented Feb 26, 2020

A single consumer cannot read from a pattern and a normal topic.
So at least 2 consumers must be created. This can be done internally, no problem here.

Now... how should the interface look?

async with broadcast.subscribe(channel="logs/*") as subscriber:

If we want to use the current channel parameter, then a Consumer should be created each
time .subscribe is called (if not mistaken).

async with broadcast.subscribe(pattern="logs/*") as subscriber:

In this case we can have 2 consumers only, but we'd have a pattern keyword
which may not be supported by every backend.

@tomchristie
Copy link
Member

API matches up with what I'd expect, yup.

@alex-oleshkevich alex-oleshkevich mentioned this issue Apr 3, 2024
19 tasks
@alex-oleshkevich
Copy link
Member

Closing as stale.

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

No branches or pull requests

3 participants