Hi, I'm looking for some guidance on the efficiency of requesting individual articles by message-id compared to group and article number. For a server such as INN, does finding an article from its message-id impose extra load?
I'm operating a web/usenet gateway at https://cmacleod.me.uk/ng/ .
When I display a thread I need to get all the articles in it. I'm
wondering about
spreading the load of this across multiple nntp servers. However they would have different article numbering, so I would need to request each article
by its message-id. Is this practical, or would it impose an unreasonable load on the servers?
Jon Ribbens wrote:
It is reasonable to fetch articles by Message-ID.
NNTP's "NEWNEWS" command is designed to work that way.
| 502 NEWNEWS command disabled by administrator
guess why.
It is reasonable to fetch articles by Message-ID.
NNTP's "NEWNEWS" command is designed to work that way.
Jon Ribbens wrote:
It is reasonable to fetch articles by Message-ID.
NNTP's "NEWNEWS" command is designed to work that way.
| 502 NEWNEWS command disabled by administrator
guess why.
On Thu, 22 Aug 2024 07:49:43 -0000 (UTC), Jon Ribbens wrote:
It is reasonable to fetch articles by Message-ID.
NNTP's "NEWNEWS" command is designed to work that way.
but isn't NEWNEWS blocked on most servers?
Hi, I'm looking for some guidance on the efficiency of requesting
individual articles by message-id compared to group and article number.
For a server such as INN, does finding an article from its message-id
impose extra load?
It is reasonable to fetch articles by Message-ID.
NNTP's "NEWNEWS" command is designed to work that way.
It is reasonable to fetch articles by Message-ID.
NNTP's "NEWNEWS" command is designed to work that way.
| 502 NEWNEWS command disabled by administrator
guess why.
...
https://linux.die.net/man/8/nntpd
The optional allownewnews option enables the NNTP NEWNEWS command. NOTE:
For servers with a large volume of articles, the NEWNEWS command can be >expensive.
...
https://www.unix.com/man-page/centos/8/nntpd/ >https://www.cyrusimap.org/imap/reference/manpages/systemcommands/nntpd.html >https://manpages.ubuntu.com/manpages/kinetic/en/man8/cyrus-nntpd.8.html
...
I've no idea. I haven't looked since the 1990s, when it was very rarely,
if ever, blocked.
Jon Ribbens <jon+usenet@unequivocal.eu> writes:
I've no idea. I haven't looked since the 1990s, when it was very rarely,
if ever, blocked.
Hm, I'm not sure about that. Blocking NEWNEWS in INN goes back a long
time. The old implementation did history text file searches, IIRC, and
was rather inefficient for single groups if the server had a lot of
traffic. Maybe I'm misremembering, but I don't think I am; I'm pretty
sure I disabled NEWNEWS on the servers I was running in the late 1990s.
The current implementation is quite efficient if the user specifies a
single newsgroup, which is a common use case of NEWNEWS. If they specify
a wildmat that matches a bunch of groups, it's still fairly bad.
NEWNEWS * has to search the overview of every group on the server for articles in the date range, so if you have a lot of groups, that is going
to be painful.
It may perhaps be that you were not working at a UK dial-up ISP? :-)
It may have helped that the UK ISP marked at the time was dominated by
Demon Internet, who pioneered the dial-up market, and as far as I recall
they used their own custom news server, which certainly did support
NEWNEWS efficiently enough for their purposes.
I've no idea. I haven't looked since the 1990s, when it was very rarely,
if ever, blocked. But it would seem rather surprising if the efficiency
of looking up an article by Message-ID has somehow gone *down* in the >intervening period.
Colin Macleod <user7@cmacleod.me.uk.invalid> writes:
Hi, I'm looking for some guidance on the efficiency of requesting individual articles by message-id compared to group and article number.
For a server such as INN, does finding an article from its message-id impose extra load?
No, it should be fast. It's a history lookup of the message ID to get the storage token, and then retrieval of the article by storage token. It
should be roughly equivalent to retrieving the article by number. There's one extra hash calculation, I think, but it's going to be in the noise.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 498 |
Nodes: | 16 (2 / 14) |
Uptime: | 20:41:48 |
Calls: | 9,827 |
Calls today: | 6 |
Files: | 13,761 |
Messages: | 6,191,557 |