🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #38278

News server architecture (was: Submitting to Freenix)

#38278
From: Russ Allbery
Date: Sat, 26 Jun 1999 00:00
41 lines
2742 bytes
Curt Welch <curt@kcwc.com> writes:

> But the basic design (multiple selelct loop processes talking to each
> other over TCP/IP connections) is nice in the fact that it should be
> very easy to port to a wide range of Unix platforms.  It uses no threads
> or shared memory, or shard disk files.  All IPC is though TCP/IP
> streams.  And you can move any of the deamons to remote machines.

Yeah, this is a really good point.

It used to be that one of the major advantages of INN over nearly anything
else was that it was insanely portable; unfortunately, the latest 2.3
stuff really does *require* a working mmap() implementation, which blows
some holes in that.  I think we might be able to get some of it back (a
library interface to the active file would be nice and could take care of
some of that).

> Overview is something I've still not solved.  I'm doing it the slow way
> right now by generating it on demand and caching it in-core.  But that's
> both too slow on the initial fetch and unworkable for a larger reader
> base (in-core cache would not be large enough).  I might end up creating
> a seperate overview deamon which manages it's own overview database to
> deal with this.

Overview is a really interesting hard problem.

> 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).

Yeah, that's my opinion too.  I'm not sure you even want to split it into
a separate thread.  Queuing history lookups and processing them from a
queue doesn't sound to me to be as nice of an architecture as just
wrapping the history lookups in a mutex, and you may even be able to get
more concurrency than just a mutex around the whole thing.

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Technical Details
Message-ID: <ylu2rvs93f.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
References: <7g24e7$ckh$1@info.cs.uofs.edu> <ylogi6qrhj.fsf@windlord.stanford.edu> <7ktqaa$k06$1@twwells.com> <yl3dzg28yw.fsf@windlord.stanford.edu> <37731731$0$374@news.execpc.com> <ylg13gyawh.fsf@windlord.stanford.edu> <19990625104626.501$xm@newsreader.com>

Show Full Headers
Complete Article Headers
Message-ID: <ylu2rvs93f.fsf_-_@windlord.stanford.edu>
Subject: News server architecture (was: Submitting to Freenix)
Date: Sat, 26 Jun 1999 00:00:00 +0000
From: Russ Allbery <rra@stanford.edu>
References: <7g24e7$ckh$1@info.cs.uofs.edu> <ylogi6qrhj.fsf@windlord.stanford.edu> <7ktqaa$k06$1@twwells.com> <yl3dzg28yw.fsf@windlord.stanford.edu> <37731731$0$374@news.execpc.com> <ylg13gyawh.fsf@windlord.stanford.edu> <19990625104626.501$xm@newsreader.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-mail
X-Deja-AN: 494066851
Organization: The Eyrie
Newsgroups: news.software.nntp