Article View: news.software.nntp
Article #39181Re: NNTP protocol question
From: Russ Allbery
Date: Sun, 15 Aug 1999 00:00
Date: Sun, 15 Aug 1999 00:00
111 lines
6594 bytes
6594 bytes
In news.software.nntp, Ade Lovett <ade@supernews.com> writes: > On 15 Aug 1999 18:05:03 -0700, Russ Allbery <rra@stanford.edu> wrote: >> No, I'm sorry, but I'm not wrong here. To implement NEWNEWS >> efficiently, while still properly dealing with crossposting > 977/nntp-base-08 says nothing about crossposts for NEWNEWS. All it > talks about is "a list of message-ids of articles .. one per line". Please take a few moments to try to figure out what I might be talking about rather than just assuming I'm not making any sense. The client gives NEWNEWS a set of newsgroup patterns and expects a list of new news in those newsgroups. The implementation had better return articles that were crossposted as well as articles that were posted to just that newsgroup. This becomes an issue because some server implementations, for reasons related to their article store, treat articles as posted to one "main group" and a number of other "secondary" groups, and that needs to be hidden from the client using NEWNEWS. Obvious, not particularly exciting, but it is something that you have to think about when you're writing code. >> and the full syntax of the command (which allows specification of >> distribution restrictions) requires a data storage that is not present >> on most news servers. > Not true. In it's general sense, a news server is made up of a number > of articles, and indexing information about those articles. That's nice. In it's specific sense, a news server is made up of a particular type of article store and a particular set of indexes, and the indexes needed to implement NEWNEWS efficiently are not present on most news servers. > This is more an artefact of thinking in terms of *current* news software, > rather than *future* news software. Ade, what part of "is not present on most news servers" is not coming across here? Would you please either start reading what I'm saying and respond to it, or if you really want to go off on a tangent about *potential* news server implementations rather than *actual* news server implementations (which is what this thread was about), stop accusing me of saying things that aren't true? Of *course* I'm thinking in terms of current news software; that's what the question was about! > As I've said in other posts, current software is simply going to stop > scaling. INN, for example, with its single-threaded core, is eventually > going to stop working. You're using a very odd definition of working. Using a more conventional definition, INN is never going to stop working as long as there are Unix-like systems. The number of articles per second that INN can currently handle it's still going to be able to handle in ten years. Nothing is going to cause it to magically stop accepting articles. Saying that software isn't going to be able to handle another ten-fold increase in Usenet volume is *not* the same thing as saying that it's going to stop working. You have to take into account whether the site running that server is going to *want* those additional articles to determine whether it is going to break for their particular needs. >> Provided you're willing to settle for slop around the edges, given that >> articles don't arrive at different servers at the same time. > Well, couple a local client-side messageID database with a little slop > in sending the date/time part of the NEWNEWS command, and you're pretty > well sorted. Certainly a damn sight easier than dealing with the "my > server just renumbered all their articles" problem. There are a bunch of different solutions to this problem; I don't think NEWNEWS is the best one. I think server-side state a la IMAP (but hopefully with a better command syntax and protocol) is a better one, frankly, being largely convinced by a recent conversation with Tim Showalter on the subject, although that requires a stronger authentication infrastructure than most news server installations have. If you store the state on the server, then you can renumber the stored state when you renumber your article spool, and the server has all the necessary information to do that right. Multiple servers, changing over to a new server, and the like are all hard problems. NEWNEWS, as pointed out, suffers from different problems but still has problems. (One of which is that overview retrieval by message ID isn't as efficient as overview retrieval by article number range since you can't do ranges, and ranges are a big win in both disk I/O and network traffic.) > HEAD requires retrieving the headers for an article. That's not > necessarily the same as opening the article. It just happens to be the > way current servers do it. The headers are probably 30-50% of the article in the common case. Opening the article, opening 30% of the article, it's basically the same difference compared to XOVER, which dumps (or at least can) a preformatted file to the network and can handle a request for several hundred or thousand articles at once with a single command. I really would like to see the implementation that manages to make 1000 HEAD requests as fast as an XOVER request for a 1000 article range. > In addition, there is some useful information that can (and is) being > used for killfiling purposes, that isn't contained within the "standard" > overview information 99% of your users don't care because their software isn't capable of it anyway. Optimize for the common case. If they really want to see some particular header, put it in the overview; that's why the overview is extensible. -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Technical Details
Message-ID:
<ylzozs5tku.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-mailReferences:
<7oqj34$j662@bbs2.pnl.gov> <rr1rfe3rkrl72@news.supernews.com> <37B2C58D.4569C005@pc.grm.hia.no> <eZft3.857$5H1.4753@news2.randori.com> <ylhfm1g2c6.fsf@windlord.stanford.edu> <slrn7rek6s.ajq.ade@localhost.lovett.com> <yllnbc7cxs.fsf@windlord.stanford.edu> <slrn7res81.atr.ade@localhost.lovett.com>Show Full Headers
Complete Article Headers
Message-ID: <ylzozs5tku.fsf@windlord.stanford.edu> Subject: Re: NNTP protocol question Date: Sun, 15 Aug 1999 00:00:00 +0000 From: Russ Allbery <rra@stanford.edu> References: <7oqj34$j662@bbs2.pnl.gov> <rr1rfe3rkrl72@news.supernews.com> <37B2C58D.4569C005@pc.grm.hia.no> <eZft3.857$5H1.4753@news2.randori.com> <ylhfm1g2c6.fsf@windlord.stanford.edu> <slrn7rek6s.ajq.ade@localhost.lovett.com> <yllnbc7cxs.fsf@windlord.stanford.edu> <slrn7res81.atr.ade@localhost.lovett.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: 513217294 Organization: The Eyrie Newsgroups: news.software.nntp,news.software.readers