[Twisted-web] Twisted Application(Daemon) with multiple clients

Daniel Doron danielmeirdoron at gmail.com
Tue Oct 17 03:12:58 MDT 2017


Hi,

Sorry in advance for sending this to both Twisted mailing list. i was
not sure for which was it was most appropriate.

I have a design in which I would like to have a Twisted Application
which would periodically connect to a REST Server to pull
configuration information, i.e. as client and upon receiving that
information and processing would communicate spawn 1 or more clients
connecting to local process via Unix sockets to send them
configuration information.
I think I understand how the standard approach would be:
1. create a function that would be called with callLater/LoopingCall
2. in that function create my client, connect to the REST Server, get
info etc...

So:
1. Do you think my approach is correct? Essentially as explained I
need a service/daemon to periodically connect ot one server to pull
information and then connect to other local process to forward them
the relevant configuration.
2. How do I turn this into a twisted plugin? (daemon)


Thanks
-Daniel



More information about the Twisted-web mailing list