Article View: news.software.readers
Article #267742Re: Doing everything asynchronously
From: Colin Macleod
Date: Thu, 17 Apr 2025 20:08
Date: Thu, 17 Apr 2025 20:08
21 lines
3046 bytes
3046 bytes
legalize+jeeves@mail.xmission.com (Richard) posted: > > I'd be curious to know if there are any other open source news readers > that do this ... do as much work concurrently (multi-threaded) or > asynchronously (single or multi-threaded) ahead of time while waiting > for user input. It's a very different architecture, but in my Newsgrouper (web gateway to usenet) I prefetch various things. E.g when a user enters a discussion thread I queue up jobs to prefetch any new articles in that thread. These jobs are then processed by separate "newsgetter" processes which write them into a Redis cache so they can be returned immediately if the user goes on to read them. I run 4 newsgetter processes, each has an nntp connection to the usenet server, so multiple articles can be fetched in parallel. The code is at: https://chiselapp.com/user/cmacleod/repository/newsgrouper/home -- Colin Macleod ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ https://cmacleod.me.uk Fool/Stack Developer.
Technical Details
Message-ID:
<1744920530-7@newsgrouper.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!apf8.newsdeef.eu!nnrp.usenet.blueworldhosting.com!!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!newsgrouper.org!.POSTED!not-for-mailReferences:
<vtma2m$1p8ir$2@news.xmission.com>Show Full Headers
Complete Article Headers
Message-ID: <1744920530-7@newsgrouper.org>
Subject: Re: Doing everything asynchronously
Date: Thu, 17 Apr 2025 20:08:50 GMT
From: Colin Macleod <user7@newsgrouper.org.invalid>
References: <vtma2m$1p8ir$2@news.xmission.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!apf8.newsdeef.eu!nnrp.usenet.blueworldhosting.com!!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!newsgrouper.org!.POSTED!not-for-mail
Newsgroups: news.software.readers
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Info: newsgrouper.org; mail-complaints-to="newsgrouper@yahoo.com"; posting-account=user7
Injection-Date: Thu, 17 Apr 2025 20:08:50 GMT
User-Agent: Newsgrouper/0.7.2
Organisation: shmorganisation
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