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 Worker Client class #4

Open
wglass opened this issue Feb 23, 2016 · 0 comments
Open

Create Worker Client class #4

wglass opened this issue Feb 23, 2016 · 0 comments
Assignees
Milestone

Comments

@wglass
Copy link
Owner

wglass commented Feb 23, 2016

Somewhat analogous to the 'Processor' client in KIP-28:

https://cwiki.apache.org/confluence/display/KAFKA/KIP-28+-+Add+a+processor+client

Should be a grouped (with the 0.9 api) client that takes a set of input topics and one output topic, plus
a function used to process the messages.

from kiel import clients

w = clients.Worker(
    input_topics=("events.foo", "events.bar"),
    output_topic="events.bazz",
    processor=aggregate_counts,
)

Things to consider:

What sort of return value should the processor have?

It should probably actually be a generator or gen.coroutine. It's liable to be called several times before
having an output, especially in the case of aggregators.

@wglass wglass self-assigned this Feb 23, 2016
@wglass wglass added this to the 1.1.0 milestone Feb 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant