Re: Doing everything asynchronously

Liste des Groupes 
Sujet : Re: Doing everything asynchronously
De : user7 (at) *nospam* newsgrouper.org.invalid (Colin Macleod)
Groupes : news.software.readers
Date : 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.uk

Fool/Stack Developer.

Date Sujet#  Auteur
15 Apr 25 * Doing everything asynchronously4Richard
17 Apr 25 `* Re: Doing everything asynchronously3Colin Macleod
25 Apr 25  `* Re: Doing everything asynchronously2Richard
25 Apr 25   `- Re: Doing everything asynchronously1Colin Macleod

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal