🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #39043

Re: NNTP - building the ultimate server

#39043
From: Curt Welch
Date: Tue, 10 Aug 1999 00:00
27 lines
2320 bytes
toby.douglass@arm.com (Comrade Yum Yum) wrote:
> I couldn't agree more.  I'm thinking about writing an NNTP server, and
> threading is an obviously sensible and useful programming method for
> servicing requests.  If you agree with that, and use threads, the better
> your threads are, the better your service will be.  And if you've no
> threads at all, you're either running single threaded (not viable,
> surely) or you're forced to start a full, heavyweight process for each
> request ....

Not true at all.  If you are on a single CPU machine, you are running a
single thread.  It's only an issue of which way is best for scheduling all
the work to do (threads, vs processes, vs select loops, etc).  Threads are
not the obvious best soulution at all.  They are just one soultion which
has it's advantages and disadvantages.

And there are lots of options for using multiple processes short of
starting a process of each connection.  (e.g. inn's overchan processes).

And unlike HTTP, NNTP connections are mostly long lived, so the time
required to start a new process is not nearly so important even if you do
decide to fork a new process for each connection.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

Technical Details
Message-ID: <19990810192829.214$8D@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
References: <37a5671a.1475189546@news.ftech.net> <brad-0208991250220001@brad.techos.skynet.be> <37a87721.1479292265@news.ftech.net> <brad-0208991326230001@brad.techos.skynet.be> <yl672wcwjk.fsf@windlord.stanford.edu> <MPG.121a6f08bc803747989cab@news.earthlink.net>

Show Full Headers
Complete Article Headers
Message-ID: <19990810192829.214$8D@newsreader.com>
Subject: Re: NNTP - building the ultimate server
Date: Tue, 10 Aug 1999 00:00:00 +0000
From: curt@kcwc.com (Curt Welch)
References: <37a5671a.1475189546@news.ftech.net> <brad-0208991250220001@brad.techos.skynet.be> <37a87721.1479292265@news.ftech.net> <brad-0208991326230001@brad.techos.skynet.be> <yl672wcwjk.fsf@windlord.stanford.edu> <MPG.121a6f08bc803747989cab@news.earthlink.net>
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: 511242114
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5 %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-User: Curt@NewsReader.Com
Organization: NewsReader.Com
X-Url: http://CurtWelch.Com/
Newsgroups: news.software.nntp