Article View: news.software.nntp
Article #65541Re: Which is faster: retrieve article by article number, or by Msg-ID?
From: Curt Welch
Date: Wed, 28 May 2003 20:02
Date: Wed, 28 May 2003 20:02
69 lines
4990 bytes
4990 bytes
Bas Ruiter <lordsnow@home.nl> wrote: > > Yeah, that's what he is talking about. On most servers, both are so > > fast that network latency to a remote server is going to be more of an > > issue than the speed of the article lookup. > > OK > > > What's more important than speed however is the fact that Message-id > > lookup is more likely to fail on some servers even though the article > > is on the server and can be retreived by group/article-number. This is > > a common configuaration problem on too many servers. > > This is a general problem, or a problem specific to a certain type of > server software? It's a common problem on the highwind servers (Typhoon etc.). You have to manually configure the size of the history database and if you don't do it, or set it too small, you get that problem. And it's a silent error so the admin has no idea there's a problem unless someone notices it. > > Also, some servers lately have been shown to not even work for > > message-id lookup if you don't select a group first. They are broken, > > but they exist. > > Broken according to the NNTP spec, but purposely so? i.e. broken by > design? If so, what could the possible advantages be to do that? Broken by accident I guess. The one case I believe I heard about (it was rumored to do this and not confirmed) was where a front end proxy server was used to direct all commands to different back end servers. Multiple back-end servers were used to allow the system to support more users but the front-end proxy was used to prevent the users from having to connect manually to different servers (like newsfeeds). The articles were split by group to different back-end servers so that all mp3 groups might be on one server, and text on another and pictures on a third etc. The proxy however had no ability to do article look-ups on it's own, it simply had to redirect commands to the correct back-end server. So when you selected an mp3 gruop, all your commands after that were directed to the mp3 server. On most servers, you can use an ARTICLE command to fetch by message-id without first selecting a group. On this proxy however, you had to select a group first. And I assume, if you tried to fetch by Message-ID after that, you could only retreive articles from the server you were connected to. If you seleted an MP3 group, and then tried to fetch a text article by Message-ID, it would fail because the article you wanted was not on the MP3 server. This could be fixed, but it would require that the front-end proxy either maintain it's own history database so it would know which back-end server to send all fetches by Message-ID to, or it would have to try any fetch that failed on every back-end server to make sure the article did not exist on any of the servers. They had just not made the proxy that complex so it was simply "broken" in regards to what other servers normally supported. > All in all, sounds like fetching articles according to group & number is > the way to go. Yeah, it is the best supported and safest way. And if you use Message-Ids, it's wise to only use it in the context of a known group and do the group command first even though it shouldn't be required. Fetching by Message-Id when dealing with multiple servers can save you from having to download a ton of headers, so there are reasons to use it. However, when you can just as easilly use article numbers, it wise to do that instead. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20030528160241.048$tn@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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!newsfeed2.earthlink.net!newsfeed.earthlink.net!wn14feed!worldnet.att.net!205.188.226.97!ngpeer.news.aol.com!feed3.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mailReferences:
<npf9dvsun1hdqbplg77evm6hsmd9nusdrf@4ax.com> <3ed4c2ea$0$2598$a1866201@newsreader.visi.com> <jbj9dvkc97essifpac828cc8167c6se2hc@4ax.com> <20030528112007.074$Pl@newsreader.com> <mql9dvk0a9mmpvh4bjufshjrfh05c271k8@4ax.com>Show Full Headers
Complete Article Headers
Message-ID: <20030528160241.048$tn@newsreader.com>
Subject: Re: Which is faster: retrieve article by article number, or by Msg-ID?
Date: Wed, 28 May 2003 20:02:41 +0000
From: curt@kcwc.com (Curt Welch)
References: <npf9dvsun1hdqbplg77evm6hsmd9nusdrf@4ax.com> <3ed4c2ea$0$2598$a1866201@newsreader.visi.com> <jbj9dvkc97essifpac828cc8167c6se2hc@4ax.com> <20030528112007.074$Pl@newsreader.com> <mql9dvk0a9mmpvh4bjufshjrfh05c271k8@4ax.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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!newsfeed2.earthlink.net!newsfeed.earthlink.net!wn14feed!worldnet.att.net!205.188.226.97!ngpeer.news.aol.com!feed3.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com 4-4mir9Ldn0KdJ20PsQd8m6qv0sBpCTo=wxW-K5DCFTAiaOeFF
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-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 68