Sujet : Re: Doing everything asynchronously
De : user7 (at) *nospam* newsgrouper.org.invalid (Colin Macleod)
Groupes : news.software.readersDate : 17. Apr 2025, 21:08:50
Autres entêtes
Message-ID : <1744920530-7@newsgrouper.org>
References : 1
User-Agent : Newsgrouper/0.7.2
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.ukFool/Stack Developer.