Thread View: news.software.nntp
5 messages
5 total messages
Started by Mark Morley
Thu, 24 Apr 2003 17:47
Any problems with this design?
Author: Mark Morley
Date: Thu, 24 Apr 2003 17:47
Date: Thu, 24 Apr 2003 17:47
88 lines
5522 bytes
5522 bytes
I've been working on a new piece of software that I currently call "Grapevine" (subject to change). I now have a fully functional proto-type that is in initial testing by several users, but I'm looking for feedback from the NNTP experts on the overall design. Grapevine is a caching NNTP proxy and aggregator. That is, it looks and acts like a regular NNRP server but behind the scenes it fetches and merges active files, XOVER records, and articles from any number of upstream servers (I'm currently testing it with 44 servers). The goal is to make a large number of groups available to my users, with excellent completeness, retainment, and speed, while conserving bandwidth (for me as well as the upstream servers) and disk space. If you're at all familiar with NNTPCache then you'll have a good idea of what Grapevine does. But unlike NNTPCache, Grapevine is not restricted to a single server for any given newsgroup (although it can be if that's what you want). Here's an overview of how it works: First of all there's a process that runs once every day or so. It connects to each upstream server, fetches the active files, and then merges them all into a local active file. Each server can have its own set of filters to restrict which groups you'll accept from it. A second process runs every 20 minutes or so and fetches XOVER records for any active groups (ie: groups that users actually read) from every server that carries the group in question. These are merged and given a new local article number. This same process also expires old XOVER records, which is quite fast (it uses a MySQL backend to store everything). The first time a client requests a group, it will appear to be empty, but this timestamps the group and it will be filled in (XOVER) within 20 minutes or so. As long as clients continue to access the group it will remain up to date. If clients stop reading the group for a period of time (configurable of course), it will eventually stop fetching it. A third process handles client requests and is the actual NNRP server. It deals with articles in terms of the local article numbers, so the article list you get may represent the contents of any number of servers. When you request an article, it first tries to fetch it from the local cache (and articles may optionally be compressed to save space), then from the server that originally provided the XOVER data for it (and due to a per-server minimum time between XOVER downloads, this winds up distributing the article downloads across different servers, which can lessen the bandwidth to any one particular server). If that fails, it tries to fetch it from each server that carries the group (in a configurable server priority order). So article completion is very good (assuming you have many servers that you can access). When you post, the article is queued rather than injected immediately, which makes it appear extremely fast to end users. Various tests are performed immediately of course (required headers, too many newsgroups, etc.) but the actual posting is handled by yet another process that scans the article queue every 5 minutes or so. Articles are posted to each server that carries one or more of the groups in question. Question: what dangers, if any, are there in posting in parallel to multiple servers? My tests so far indicate that no duplicates are generated, even when an article is posted to a dozen or more separate servers at the same time. I'm guessing this should be fine as long as none of the upstreams change the message ID (which would mean they are broken). The NNRP server doesn't handle ALL the possible commands, but so far I haven't found a client that doesn't work fine with it. I've personally tested Xnews, Netscape, Outlook, and TIN, and other users have reported success with various other products. Another process runs nightly to expire cached articles (XOVER data is expired separately via the second process explained above). Currently connections to servers are opened as needed, but processes are ordered in such a way as to minimize this. I'm currently working on an optional module that will act as a sort of "socket cache", to further minimize the number of connects/disconnects, which will save even more bandwidth and speed things up a little bit more. I'm also working on an optional NoCeM module. Any thoughts or comments on this overall design? Feature suggestions? And is there any interest in software like this or is it just me? Mark
Re: Any problems with this design?
Author: Curt Welch
Date: Thu, 24 Apr 2003 18:22
Date: Thu, 24 Apr 2003 18:22
71 lines
4734 bytes
4734 bytes
Mark Morley <mark@islandnet.com> wrote: > Articles are posted to > each server that carries one or more of the groups in question. > > Question: what dangers, if any, are there in posting in parallel to > multiple servers? Don't do that. It will cause dups and other minor errors. The big problem is that some servers will ignore the Message-ID that you supply with the article and replace it with one of it's own. Every server that does that will cause your article to be double posted. This isn't common, but it exists. The first time someone configures your software to use one of those servers, eveything they post will be double posted. Airnews was the main well known server that did this, though Frank has said he's going to change that (and maybe already has). Recently teranews changed their servers to do the same thing. Other servers in the nntpserver "family" seem to do this as well. Never POST an article more than once to Usenet is a good general rule to follow. If you want to submit the article to multiple sites, you need to set up newsfeeds to do that and send the article with IHAVE or CHECK/TAKETHIS. If you want your software to work from end-user accounts only, then just POST it once, never post it twice. The mynews software I'm told has a feature to muilti-post articles like you talk about to help fix propagation problems. But it won't submit the article to mutliple servers at the same time. It submits to one, then waits a period of time (like one day I think), and if the article has not shown up on the other servers, it will repost the article on the other server. But, I hope his software is using something other than just the Message-ID to check for the article or else even waiting a day is not going to prevent double posts when the first server changed the Message-ID. The POST command should only be used for submiting "new" articles to usenet, not for transport of articles inside usenet. If you use POST to submit articles, then your software is acting as a client and if a clinet POSTS the article 10 times, you should not be surprised when you end up with 10 copies of the article on Usenet. The other minor issue is that when you POST an aritcle, the server is allowed to modify it by adding extra headers and some will also add footers etc. If you POST the article to mutliple servers, you will end up with 10 different versions of the same article on Usenet because all the posting servers would have modified the article in different ways (adding Abuse addresses, Dates, NNTP-Posting-Host headers etc). This is just wrong because people try to talk about "an article" on usenet, and they in fact are not talking about the same article. Also, articles can sometimes get corrupted when posted and if that happens, you want the same corrupted post everyone on usenet, not good copies on some servers and corrupted copies on other servers. > My tests so far indicate that no duplicates are > generated, even when an article is posted to a dozen or more separate > servers at the same time. I'm guessing this should be fine as long as > none of the upstreams change the message ID (which would mean they are > broken). Exactly, some servers are broken. But even without the "broken" servers on Usenet that change the Message-Id when you POST, it's just wrong to post the same article multiple times. Even if you don't have duplicates, you do end up with many different versions of the same article spread around Usenet and that's just wrong. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: Any problems with this design?
Author: Mark Morley
Date: Thu, 24 Apr 2003 19:19
Date: Thu, 24 Apr 2003 19:19
14 lines
1493 bytes
1493 bytes
Curt Welch wrote: > Exactly, some servers are broken. But even without the "broken" servers on > Usenet that change the Message-Id when you POST, it's just wrong to post > the same article multiple times. Even if you don't have duplicates, you do > end up with many different versions of the same article spread around > Usenet and that's just wrong. Thanks for the reply, good to know. Mark
Re: Any problems with this design?
Author: J.B. Moreno
Date: Fri, 25 Apr 2003 00:45
Date: Fri, 25 Apr 2003 00:45
21 lines
1688 bytes
1688 bytes
In article <20030424142242.266$6a@newsreader.com>, Curt Welch <curt@kcwc.com> wrote: > Mark Morley <mark@islandnet.com> wrote: > > Articles are posted to > > each server that carries one or more of the groups in question. > > > > Question: what dangers, if any, are there in posting in parallel to > > multiple servers? > > Don't do that. It will cause dups and other minor errors. > > The big problem is that some servers will ignore the Message-ID that you > supply with the article and replace it with one of it's own. This is (somewhat) checkable -- i.e. post a message to a test group, see if the id is replaced. -- J.B. Moreno
Re: Any problems with this design?
Author: Juergen Helbing
Date: Fri, 25 Apr 2003 04:09
Date: Fri, 25 Apr 2003 04:09
36 lines
1979 bytes
1979 bytes
Mark Morley <mark@islandnet.com> wrote: >[...] >Question: what dangers, if any, are there in posting in parallel to >multiple servers? My tests so far indicate that no duplicates are >generated, even when an article is posted to a dozen or more separate >servers at the same time. I'm guessing this should be fine as long as >none of the upstreams change the message ID (which would mean they are >broken). You never know when one of your upstream hosts changes the policy how to handle MgsIDs. My own server is also feeding to several servers. But I do this with a time delay (minutes, ... hours). Tip: If you are really using a POST command then you should issue a STAT <msgid> command before. It indicates properly if the message is already at the upstream host. >Any thoughts or comments on this overall design? Feature suggestions? >And is there any interest in software like this or is it just me? Your conceptions is very close to my own software (MyNews for Windows).... It does nearly the same things. Feel free to visit my site (see sig). There are some docs and manual pages. HTH -- Juergen --------------------------- MyNews for Windows: http://www.winews.net
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads