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

Is it possible to create txzmq daemon as twistd plugin? #55

Closed
tmpd opened this issue Jul 1, 2014 · 6 comments
Closed

Is it possible to create txzmq daemon as twistd plugin? #55

tmpd opened this issue Jul 1, 2014 · 6 comments

Comments

@tmpd
Copy link

tmpd commented Jul 1, 2014

Hi,

How can i create txzmq daemon as twistd plugin? I googled for some information, but without success. If it is possible to do, I will be grateful for any help, advice or information.

@vit1251
Copy link

vit1251 commented Jul 1, 2014

When you start using Twisted you will implement Protocol and ProtocolFactory on Python. Before you started will get more time and debug protocol mechanism. Also require understanding all internal case of ZeroMQ. When you interesting you can talk with me in IM and I try to help you get more information about twisted. Also you can poll real libzmq by timer via reactor in twisted and create twisted callback (but it workaround and not cleean solution).
P.S. Also you can use AMQP in Twisted from box.

@tmpd
Copy link
Author

tmpd commented Jul 1, 2014

Thanks for advice. I prefer ZeroMQ because i have experience with it. I will read more about Twisted and twistd plugins.
BR, tmpd

@tmpd tmpd closed this as completed Jul 1, 2014
@vit1251
Copy link

vit1251 commented Jul 2, 2014

You may look on exist Protocol solution like http://twistedmatrix.com/documents/11.0.0/api/twisted.protocols.memcache.html it is implementation of Memcache protocol. Also I suggest look on HTTP and LineReaderProtocol it is make understanding about protocols implementation in Twisted. But it a lot times of work and when you does not developer libzmq I think it really titanic work for implementation in your's project...

@tmpd
Copy link
Author

tmpd commented Jul 14, 2014

Hi,
Thanks again. I already implemented txzmq as twistd plugin. if you want as soon as possible, i will push example.

@smira
Copy link
Owner

smira commented Jul 14, 2014

@TPMD, if you have some examples you would like to share, please post it as gist or as pull request to this repo. Thanks.

@tmpd
Copy link
Author

tmpd commented Jul 14, 2014

I just created new repository with the example: https://github.com/TMPD/txzmqserver, because for some reason I couldn't push new branch to your repository.

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