🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #92764

Re: csiph.com

#92764
From: Colin Macleod
Date: Thu, 07 May 2026 02:24
39 lines
4064 bytes
"Kevin Bowling" <kevin.bowling@kev009.com> posted:
> 
> The internals would need some rework to actually handle multi-server,
> article numbers are still too convenient for i.e. efficient cache
> structures and efficient read tracking, but that could still work with a
> tuple if needed.  

I went through a similar evolution with Newsgrouper.  I started with
a single nntp server (eternal-september) and just used its article 
numbers directly.  But then I wanted to add in other servers with
longer history, plus old stuff from the Internet Archive, etc..
After trying various alternatives I moved to identifying articles
within a group by their unix-format timestamp (seconds since 1/1/1970).
I get this from parsing the Date header.  If this collides with another
article in the same group I just increment it until it's unique.
This system would break down if a group got more than one post per
second for a sustained period, but at that level of traffic other
things would probably be breaking anyway.

This system makes it easy to combine posts from different sources
with consistent ordering.  On the downside, computing the number of
new posts for a user is no longer just subtracting the new highest
post number from what it was on their last visit.  That is now an
SQL query to count the number of posts with timestamps higher than 
the previous highest one, but with a suitable index that's very fast.

One tricky point is that this per-group de-duplication of timestamps
can cause a cross-posted article to have different timestamps in
different groups.  For a cross-posted article I provide links to see
it in the context of each other group where it exists, but I can't use
timestamp-based links for this because they might vary, so here I use
the same kind of group/<msgid> link you describe.

-- 
Colin Macleod ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ https://cmacleod.me.uk

FEED    HOUSE   SAVE    FEED    HOUSE   SAVE    FEED    HOUSE   SAVE
GAZA    GAZA    GAZA    GAZA    GAZA    GAZA    GAZA    GAZA    GAZA
NOW!    NOW!    NOW!    NOW!    NOW!    NOW!    NOW!    NOW!    NOW!
Technical Details
Message-ID: <1778120654-7@newsgrouper.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!newsgrouper.org!.POSTED!not-for-mail
References: <10t2kh8$1a6i$1@csiph.com> <69fba2e5.97cee40bab53652b@csiph.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!newsgrouper.org!.POSTED!not-for-mail
From: Colin Macleod <user7@newsgrouper.org.invalid>
Newsgroups: news.software.nntp
Subject: Re: csiph.com
References: <10t2kh8$1a6i$1@csiph.com> <69fba2e5.97cee40bab53652b@csiph.com>
Date: Thu, 07 May 2026 02:24:14 GMT
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Message-ID: <1778120654-7@newsgrouper.org>
Injection-Info: newsgrouper.org; mail-complaints-to="newsgrouper@yahoo.com"; posting-account=user7
Injection-Date: Thu, 07 May 2026 02:24:14 GMT
User-Agent: Newsgrouper/0.9.0
Organization: You cannot be serious!!!
X-Face: ;>4')~8UD=d.R[\.@A;)N{u_j#_=cmLx$}bIc4.3By~hf[q~|cf59?%bLtS)G@w#32G1%7y
 kz`PF}nwv'neqs,&gJm|V!,Xuekf[YIYQB7[Px"t#|rqb20(<F+y~
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAWlBMVEUOqj99lWv/gSb8+vzH
 yfDKcKfawMf/wXL/xwX/0DL/4MgAnuf////woTuJAg9haNWbJVrmDRbf8/wXqt0wOcfWPknT
 or8xStFls+AyPs/XiXvV447V5/JsPbGdJXGAAAAByElEQVRIie2V0XqDIAyFqaGoaKWztSDi
 +7/mkkoVFLbuonfLTeUzP+ckNMjaPwb7Bz4CcB+uh/eA0YdWSvE3mBW4Y4zKvW+JG6XGu+p/
 BYJnMHrkwVrYYbDyB6AFNap1Ie3XMwaZB1oEXnWLAXPtQEikEgNmBWh7C6SDTCGzwN0DmD+I
 l7WiKErIAHoBRNcF1iURGaC5EQDXrgt9EyFTANwaQ7+PrrPRRnKTSAEocN39ScqigDwg9gJP
 QOYBG1fwDrB3lLPU5wC4FJcU4JqGJy1Bpku8aWggjkXLzDngudE8HNtaro7iefDndvBEjsBx
 x40xIcCXEtDT9SpiR1YprTXNcQh4Rxjn+bxNt+NK08yPd7ooAgB7ZPyjQGIxDc9sjamGrqK+
 DwCz9OgZj5kIcI8zbq3nk0jMQyCAG5+RwJjnWRm79SgAACsIbiUiZoJEj8dctkdAMLYJEPFA
 AUFbTEVqpuHEWPoSg7qq4QigwJTMb8uqSl0zWQFZVXW49oBj7JQzFAm8AHSUvrjRUGzVAxNj
 yW8D5tfxiw0Qbj9mUqKfejdLmyWsYon6FVV1zA/b6uNUbVGXB6PrSfdi8gqlFygnmajr89/p
 b4k/bLhxPQ+xAAAAAElFTkSuQmCC
Behaviour: undefined