[Twisted-Python] twisted & pydispatcher?
Hi ho! Would you recommend or discourage using pyDispatcher in a twisted application? Are there any known traps? Best regards, Henning Hraban Ramm Südkurier Medienhaus / MediaPro Support/Admin/Development Dept.
Henning.Ramm@mediapro-gmbh.de wrote:
Hi ho!
Would you recommend or discourage using pyDispatcher in a twisted application? Are there any known traps?
We use PyDispatcher + Twisted extensively in Cinemon. Thing to keep in mind is that PyDispatcher is *synchronous*, so if you have a large number of handlers/observers registered for a given event you could stall Twisted as you process the one event. We often use a callLater( 0, send ) pattern to move the event processing into its own "timeslice" for heavily-observed events. Good luck, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com
participants (2)
-
Henning.Ramm@mediapro-gmbh.de
-
Mike C. Fletcher