To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.admin.generalOpen lugnet.admin.general in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Administrative / General / 5404
5403  |  5405
Subject: 
Re: Pseudo-streaming live news (was: Re: Monitor Page)
Newsgroups: 
lugnet.admin.general
Date: 
Tue, 21 Mar 2000 21:49:12 GMT
Viewed: 
1820 times
  
In lugnet.admin.general, Todd Lehman writes:
In lugnet.admin.general, Jeremy H. Sproat writes:
My client is fairly modular and extensable.  I'm using a callback interface
for the consumer of news items, so that changes to the client engine are
minimal.
One suggestion:  Separate the producer into a separate, totally encapsulated
daemon which just sits there running 24x7 and slurps new articles whenever
they appear and spools them into some directory on the local drive.  That way,
it can run while you sleep, even if you've exited the main user interface
program.

Too late!  All done!  :-,

But that would be easy to do; I could simply write a daemon class that consumes
tidbits by spooling them for serving later.  The drawback to doing this, is
that one *might* need to run two JVM's -- one for the spooler, one for the
client.  I need to think about that...

That way, you can fire up multiple filter/viewer combos,
either as separate processes or separate threads within a single process.  And
if you shut down the last viewer, the spooler dameon continues to run in the
background so that when you return, all of the stuff is already fetched.

Hmmm...  This sounds more like a middle-tier app than a client app; my
original intent was for a client-only solution.  But after reading back on the
subthread between you and Dan, I can see the need for it.

Fortunately, my client engine can pass the tidbits to any class that implements
the callback interface.  It shouldn't be too difficult to *completely* mirror
your avid.cgi script, if the consumer class caches the tidbits and serves them
later in an identical fashion.  Lemme look into this as well...

Cheers,
- jsproat



Message has 2 Replies:
  Re: Pseudo-streaming live news (was: Re: Monitor Page)
 
(...) For general review, the app: (URL) the source: (URL) I'm assuming JDK 1.2.2. Build scripts are for Win32 (but this should be insanely easy to build on Un*x). You can run the app by "java -jar text_streaming_news.jar". All it does is print the (...) (25 years ago, 21-Mar-00, to lugnet.admin.general)  
  Re: Pseudo-streaming live news (was: Re: Monitor Page)
 
(...) Another advantage of having a separate, detached fetcher/spooler for incoming new messages is that it can be turned around backwards and instead of polling the server periodically, it can be made callable by the server, if clients registered (...) (25 years ago, 21-Mar-00, to lugnet.admin.general)

Message is in Reply To:
  Re: Pseudo-streaming live news (was: Re: Monitor Page)
 
(...) Great! Neat-o! One suggestion: Separate the producer into a separate, totally encapsulated daemon which just sits there running 24x7 and slurps new articles whenever they appear and spools them into some directory on the local drive. That way, (...) (25 years ago, 21-Mar-00, to lugnet.admin.general)  

66 Messages in This Thread:























Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR