Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #80965
| From | Peter Otten <__peter__@web.de> |
|---|---|
| Subject | Re: OTish: using short-term TCP connections to send to multiple slaves |
| Date | 2014-11-17 09:16 +0100 |
| Organization | None |
| References | <SMCdnZ700MHHD_XJnZ2dnUVZ8iSdnZ2d@brightview.co.uk> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.15951.1416212236.18130.python-list@python.org> (permalink) |
jkn wrote: > Hi all > This is a little bit OT for this newsgroup, but I intend to use python > for prototyping at least, and I know there are a lot of knowledgeable > people using Python in a Network context here... > > I have a use case of a single 'master' machine which will need to > periodically 'push' data to a variety of 'slave' devices on a small local > subnet, over Ethernet. We are talking perhaps a dozen devices in all with > comms occurring perhaps once very few seconds, to much less often - once > per half an hour, or less. There is probably an upper bound of 64KB or so > of data that is likely to be sent on each occasion. > > Previous similar systems have attempted to do this by maintaining multiple > long-term TCP connections from the master to all the slave devices. The > Master is the server and the slaves periodically check the master to see > what has changed. Although this ... works ..., we have had trouble > maintaining the connection, for reasons ... I am not yet fully aware of. > > We are now considering an alternative approach where the master maintains > a list of slave devices and acts as a client. Each device is a server from > the point of view of data transfer. We would then use a short-lived TCP > connection when data is available; the Master would connect to each slave > which needed the data, send it, and close the connection. > > I should also add that we desire our system to be 'robust' in the face of > situations such as cable unplugging, device power cycles, etc. > > Although this might get round some of our current problems, I can see that > we might end up with new problems to deal with. I am wondering if this > scenario rings bells with anyone, and seeking pointers to what has been > done elsewhere. As I say, I am expecting to prototype it in Python so any > specifics also welcome! > > (suggestions as to a better forum to ask for previous experience also > gratefully received) > > Thanks al lot for any thoughts/suggestions You said *any* suggestions, so: I know nothing about them, but would a messaging infrastructure like RabbitMQ or ZeroMQ be useful?
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
OTish: using short-term TCP connections to send to multiple slaves jkn <jkn_gg@nicorp.f9.co.uk> - 2014-11-16 12:02 +0000
Re: OTish: using short-term TCP connections to send to multiple slaves Chris Angelico <rosuav@gmail.com> - 2014-11-16 23:36 +1100
Re: OTish: using short-term TCP connections to send to multiple slaves Marko Rauhamaa <marko@pacujo.net> - 2014-11-16 14:44 +0200
Re: OTish: using short-term TCP connections to send to multiple slaves Alain Ketterlin <alain@dpt-info.u-strasbg.fr> - 2014-11-16 14:43 +0100
Re: OTish: using short-term TCP connections to send to multiple slaves Chris Angelico <rosuav@gmail.com> - 2014-11-17 02:13 +1100
Re: OTish: using short-term TCP connections to send to multiple slaves Grant Edwards <invalid@invalid.invalid> - 2014-11-16 16:53 +0000
Re: OTish: using short-term TCP connections to send to multiple slaves Roy Smith <roy@panix.com> - 2014-11-16 12:21 -0500
Re: OTish: using short-term TCP connections to send to multiple slaves Grant Edwards <invalid@invalid.invalid> - 2014-11-16 17:35 +0000
Re: OTish: using short-term TCP connections to send to multiple slaves Chris Angelico <rosuav@gmail.com> - 2014-11-17 08:56 +1100
Re: OTish: using short-term TCP connections to send to multiple slaves alister <alister.nospam.ware@ntlworld.com> - 2014-11-17 10:46 +0000
Re: OTish: using short-term TCP connections to send to multiple slaves jkn <jkn_gg@nicorp.f9.co.uk> - 2014-11-16 21:45 +0000
Re: OTish: using short-term TCP connections to send to multiple slaves Grant Edwards <invalid@invalid.invalid> - 2014-11-17 16:56 +0000
Re: OTish: using short-term TCP connections to send to multiple slaves Grant Edwards <invalid@invalid.invalid> - 2014-11-16 16:42 +0000
Re: OTish: using short-term TCP connections to send to multiple slaves Peter Otten <__peter__@web.de> - 2014-11-17 09:16 +0100
csiph-web