Article View: news.software.nntp
Article #38290Re: News server architecture (was: Submitting to Freenix)
From: T. William Wells
Date: Sat, 26 Jun 1999 00:00
Date: Sat, 26 Jun 1999 00:00
31 lines
2287 bytes
2287 bytes
In article <ylr9mzs91f.fsf_-_@windlord.stanford.edu>, Russ Allbery <rra@stanford.edu> wrote: : T William Wells <bill@twwells.com> writes: : > Curt Welch <curt@kcwc.com> wrote: : : >> You can't split the history DB into a separate process from the one : >> which receives articles and manages the active file info because the : >> latency of the IPC would kill your ability to receive articles quickly : >> (at least with my TCP/IP based IPC solution). : : > UDP would be more efficient. : : Really? I don't know a lot about the tradeoffs there; I thought the major : performance headache with streams is the connection setup/teardown, so if : you have a long-lasting connection it was mostly as fast as UDP. But I : admit to really not knowing much about this at all and would be happy to : have someone educate me. "Mostly". But TCP has flow control and error recovery which, especially on a single machine, just get in the way. In the implementation I did, I used UDP and it worked without any hassles. *And*, I got to handle errors my way instead of the TCP way. E.g., on receiving articles, if I didn't get a response back quickly enoguh, I just said fukit and accepted the article anyway, figuring that later stages of the process would dump the thing. (What I had was a message ID daemon, that kept an in-memory hash of recently received messages and only went to the history file if the message ID wasn't in memory.)
Technical Details
Message-ID:
<7l41s7$38$1@twwells.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<7g24e7$ckh$1@info.cs.uofs.edu> <19990625104626.501$xm@newsreader.com> <7l13lo$26kv$1@twwells.com> <ylr9mzs91f.fsf_-_@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <7l41s7$38$1@twwells.com> Subject: Re: News server architecture (was: Submitting to Freenix) Date: Sat, 26 Jun 1999 00:00:00 +0000 From: bill@twwells.com (T. William Wells) References: <7g24e7$ckh$1@info.cs.uofs.edu> <19990625104626.501$xm@newsreader.com> <7l13lo$26kv$1@twwells.com> <ylr9mzs91f.fsf_-_@windlord.stanford.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 494304642 X-Complaints-To: abuse@twwells.com X-Trace: twwells.com 930450121 105 209.118.236.61 (27 Jun 1999 02:22:01 GMT) Organization: None, Mt. Laurel, NJ NNTP-Posting-Date: 27 Jun 1999 02:22:01 GMT Newsgroups: news.software.nntp