🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #5085

Using NNRP for something like "nngrab"

#5085
From: Alan Barrett
Date: Sun, 08 Aug 1993 08:32
58 lines
3762 bytes
[I added news.software.nntp to the Newsgroups line]

In article <emv.2.00155066@mail.msen.com>,
emv@mail.msen.com (Edward Vielmetti) writes:
> In article <CBD6C9.967@twinsun.com> eggert@twinsun.com (Paul Eggert) writes:
>>         nngrab 'time.*zone'
>> and in two or three seconds I'll get a screen that lists all eight
>> articles in our 110-megabyte news spool whose subject lines contain the
>> regular expression 'time.*zone'.  I haven't run into another news
>> reader that searches subjects so quickly.
> Yes, this is a really nice feature.  So nice, in fact, that it would be
> nice to have that part of the news system pulled back into the NNTP or
> NNRP news reader protocol, so that other news readers could get back to
> the same database.

I agree that it would be great to have other newsreaders capable of
searching like that.  But I am not sure that it needs another protocol
extension.  Using XOVER, the client do something like this:

    get list of active groups
    for each active group that matches restrictions imposed by the user
    do
        get the NOV data for this group
        add interesting articles to an internal list
    done
    give user a menu of the interesting stuff

With the above scheme, the entire NOV database has to be sent over the
wire, which could be a performance problem (NOV databases can add up to
several Megabytes).  However, when nn uses an NFS-mounted nnmaster or
nnspew database, most of that database has to be sent over the wire for
nngrab to use, which would presumably also give rise to performance
problems, though they would probably not be as severe, due to NFS
cacheing on both the client and server sides, and due to the smaller
size of the nnspew database.

If only one header field is of interest, then XHDR could be used
instead of XOVER, which would reduce the network load significantly,
but perhaps not sufficiently.

An NNRP protocol extension could move the entire load from the client
to the server and drastically reduce the amount of data sent over the
wire, but it would be difficult to specify a suitably rich protocol
that would not unduly limit the operations the client could perform.

Perhaps there is a middle ground:  A small extension to XOVER and/or
XHDR that would move the regexp matching to the server, but leave the
client with the responsibility for looping over all desired groups.
This still has the problem of specifying a suitably rich regexp
language as part of the protocol, but perhaps that could be
side-stepped by specifying a simple regexp language to be implemented
on the server side -- something like file-globbing, a la wildmat, might
be good enough -- and having the client post-filter the results if it
wants to provide a richer regexp language to the user.

--apb
Alan Barrett, Dept. of Electronic Eng., Univ. of Natal, Durban, South Africa
RFC822: barrett@ee.und.ac.za
Technical Details
Message-ID: <242dn3$ce6@lucy.ee.und.ac.za>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmd.de!xlink.net!math.fu-berlin.de!nigel.msen.com!spool.mu.edu!agate!tcsi.tcs.com!uunet!psgrain!ee.und.ac.za!tplinfm
References: <CBB7I8.Cyu@gator.oau.org> <23sert$hs5@news.u.washington.edu> <CBD6C9.967@twinsun.com> <emv.2.00155066@mail.msen.com>

Show Full Headers
Complete Article Headers
Message-ID: <242dn3$ce6@lucy.ee.und.ac.za>
Subject: Using NNRP for something like "nngrab"
Date: Sun, 08 Aug 1993 08:32:35 +0000
From: barrett@lucy.ee.und.ac.za (Alan Barrett)
References: <CBB7I8.Cyu@gator.oau.org> <23sert$hs5@news.u.washington.edu> <CBD6C9.967@twinsun.com> <emv.2.00155066@mail.msen.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmd.de!xlink.net!math.fu-berlin.de!nigel.msen.com!spool.mu.edu!agate!tcsi.tcs.com!uunet!psgrain!ee.und.ac.za!tplinfm
Newsgroups: news.software.b,news.software.nn,news.software.readers,news.software.nntp
Organization: Elec. Eng., Univ. Natal, Durban, S. Africa
Lines: 58
Distribution: inet
NNTP-Posting-Host: lucy.ee.und.ac.za