[Twisted-Python] Client/Server to stream text logfiles?

Johan Rydberg johan.rydberg at edgeware.tv
Wed Sep 28 02:34:00 EDT 2011


On 9/28/11 1:19 AM, Glyph Lefkowitz wrote:
> Hi Victor,
>
> This /should/ be pretty easy to accomplish; this kind of thing is 
> generally very straightforward using Twisted.  Obviously you'd have to 
> implement a protocol for talking to Gamin, but I think the protocol 
> involved is well-documented and very straightforward.
I would say that streaming logs in a _reliable_ fashion is a non-trivial 
problem.

If you want to make sure that you do not miss any log lines, you cannot 
simply just
push them over the connection.  You will never know what messages was 
received on the
other side after a loss of the connection.

That's why people have developed things like 
http://www.librelp.com/relp.html and
Scribe.

I guess it all depends on your requirements.

I would also like to point out that Twisted would be a perfect match for 
writing
such a thing.

-- 
Johan Rydberg
Product Designer

Edgeware AB
Mäster Samuelsgatan 56
SE-111 21 Stockholm, Sweden




More information about the Twisted-Python mailing list