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

Add stream/stop support #9

Open
wkornewald opened this issue Feb 20, 2015 · 3 comments
Open

Add stream/stop support #9

wkornewald opened this issue Feb 20, 2015 · 3 comments

Comments

@wkornewald
Copy link

Could you please add support for streaming events, so it's possible to watch for e.g. member updates?

@KushalP
Copy link
Owner

KushalP commented Feb 24, 2015

Hi @wkornewald, I'd really like to get this added in, but I'm not sure what the most idiomatic way to get it working would look like.

What's your expectation in terms of how you'd like it to work? Something using gevent or twisted ? Or something else entirely?

@wkornewald
Copy link
Author

Hi Kushal,
I guess an asyncio version would be nice, but in general I was thinking of it being pretty transparent from the user's perspective:

Non-streaming calls would still work like they currently do (call a func, get return value).

Streaming events could simply be callback-based. You'd call a func to register the callback and get a return value which can be used to unregister the callback later.

For simplicity's sake, I'd probably use a separate connection in its own thread for each registered callback. No need to mess with demultiplexing responses (too complex, no practical advantage here).

@charleswhchan
Copy link
Contributor

I am not sure if this is the same request, but I would like to see support for serf's query command.

It would be nice to be able to send a query and receive all the replies from all members.

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