Article View: news.software.nntp
Article #42376Re: Header-Only feeds (was: A nice side benefit of WebReader)
From: Curt Welch
Date: Sat, 18 Dec 1999 00:00
Date: Sat, 18 Dec 1999 00:00
153 lines
8660 bytes
8660 bytes
ade@supernews.com (Ade Lovett) wrote: > On 17 Dec 1999 22:22:05 GMT, Curt Welch <curt@kcwc.com> wrote: > > > > [huge snip] > > > >But lets look at this volume issue another way. Lets think about all > >servers in the world which get the news.software.nntp group. Let's say > >there are N of them (reader boxes that is - let's just pretend there are > >not tranist servers for this). For any aticle (like this one) posted to > >the group in the current full-feed system, it will end up being > >transmited, and received exactly N times. Once for each server. (also > >ignoring the problems which cause the same article to sometimes be > >transmitted to the same box twice). > > >With the header-only system, the header takes the same path, but the > >body is only transmitted to the servers that had someone which read the > >article. Who knows what percent that would be, but it has to be less > >than N. > > Only true in a perfect world. The big assumption that you're making > here is the cache on one of your N servers is sufficiently large to > hold the bodies for all the articles which it maintains in its local > header index - if it's not, then you have to purge the cache of bodies > somehow. Very true. I was thinking in terms of coverting existing servers into header-only servers. They have enough disk cache (i.e. their news spools) to hold _all_ the articles now, and expire headers when they are forced to expire bodies. If you took that same space and used it to hold only headers, plus "cached" full articles, you would have much longer cach retentions than the server had article retention before the conversion. So doing 2 below would make a lot of sense and you would bascially have the "perfect world". > You have two choices for this purging: > > 1. purge the body, but leave the header in place. > > 2. purge the article header at the same time as the body. But, people would start setting up header-only feed systems with far less space than the old full-feed servers had, and you would start getting into the issues of having to expire articles from the cache too soon. After all, you could get away with this and not kill your retention like what happens on todays servers. So you would end up with (1) above, and you would end up with servers fetching the same article multiple times. How common that would turn out to be of course is hard to forsee. It could turn out to be a real killer because for the reading site, the extra fetches really wouldn't cause that much trouble. But for the serving site (which might already have an overload issue), it could be real killer when thousands of sites start fetching the same articles multiple times. > I won't even start on the potential for DoS cache-thrashing attacks. Well, is that much worse than what happens if people flood the newsgroups now? > >Now because the price structure of the net is not distance sensitive (we > >pay the same to send a byte next door as we do to send it around the > >world), > > Again, not true. There are plenty of real-world examples where the > cost of sending a byte of traffic varies with the destination. Go back and read my next paragraph. You missed the point I was making. What I said was the "price" structure was not distance sensitive but the "cost" was. So yes, of course, I agree with you. What we pay for bandwidth is not distance sensitive, but what it costs to move data is distance sensitive. > >Overall I think I'm talking myself into believing that this would be a > >good thing for usenet.... > > Possibly, though not as much as you'd imagine at first glance. > > Factor in all the unfortunate side-effects of the real world, some of > which are continuously changing, and it may still be worth it. Yeah, and it's so hard to predict how this would really work, and add to that the unknown factors that are sure to show up, and you just can't tell for sure what will happen. Clearly we would just have to try it on a small scale so we could get a feel for what it's like in the real world. Many times, when unforseen problems show up, unforseen soultions show up as well. > The modelling work in itself would be an interesting project. Yes it seems that way to me as well. On the "try it" concept I just had some insight into that while I was driving home from a move a few minutes ago. I was thinking I could add support for this into my server, and start sending out local articles with Body: headers. I'd set up my own public body server for those articles as well. But what good would it do? I'd still have to send out full articles to my peers. And if some other site out there implemented similar support, what good would it do? My incomming feeds won't have the ability to send me header-only version of those articles so I'd still be getting the full articles from that other site. It wouldn't do any of us any good until a lot of us were doing this. But then the obvious occured to me. If any other site is willing to try this, we could start peering with each other! We'd only exchange the header-only articles that we had to work with. At first that would mean that I'd only send them my local header-only articles, and they would send me their local header-only articles. But as others implemented it, they could peer with either (or both of us), etc. and we would then over time form a larger header-only peering network. So, if we had the software, all it takes is two sites to start experimenting with the idea. And right off the bat, you would start saving on your incomming feeds, (assuming the basic idea here worked) because the header-only versions of the articles would most likely be beating the "real" articles to your server. And the more sites we could get to try it (even if only as an experiment), the more we could see how it worked in real life. The basic hacks required to support this I think really are not all that complex at all. For local articles (or any articles you are willing to act as a body server for), you need to add or modify the Body: header. For the special outgoing head-only feeds to head-only peers you need a hack in the feed system to allow you to select only articles with Body: headers, and you need a hack to send only the articles header even if you have the whole thing in your spool. And you need similar feed hacks to keep you from sending head-only articles to your normal peers. Not just articles with the Body: header, but articles like that which have no body. And in the article read code (for ARTICLE/BODY commands), you need the most complex part of the code which is the stuff that has to go fetch the article from a remote system. But once you get the article, you just put it in the spool just like a new article, and do a little majic to make it 'replace' the old header only version which you had before. Once that's done, you just process the users ARTICLE/BODY command like you normally would. I'm thinking that for my server this is less than a day's work to hack this basic support in. Maybe if I can find the time to do this, I could lend my server code to a few folks for some real world experiments.... -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<19991217215259.934$KK@newsreader.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<38569b7a$0$224@nntp1.ba.best.com> <6aJWOE2g9YI1qQ46VtGbCuiICWXm@4ax.com> <3856bc3d$0$229@nntp1.ba.best.com> <19991216152219.196$Pi_-_@newsreader.com> <3859e39c$0$232@nntp1.ba.best.com> <874sdihsk0.fsf@erlenstar.demon.co.uk> <brad-37F756.11104117121999@news.skynet.be> <871z8lhkdt.fsf@erlenstar.demon.co.uk> <19991217172205.802$6I@newsreader.com> <slrn85lj0u.138.ade@anaconda.lovett.com>Show Full Headers
Complete Article Headers
Message-ID: <19991217215259.934$KK@newsreader.com>
Subject: Re: Header-Only feeds (was: A nice side benefit of WebReader)
Date: Sat, 18 Dec 1999 00:00:00 +0000
From: curt@kcwc.com (Curt Welch)
References: <38569b7a$0$224@nntp1.ba.best.com> <6aJWOE2g9YI1qQ46VtGbCuiICWXm@4ax.com> <3856bc3d$0$229@nntp1.ba.best.com> <19991216152219.196$Pi_-_@newsreader.com> <3859e39c$0$232@nntp1.ba.best.com> <874sdihsk0.fsf@erlenstar.demon.co.uk> <brad-37F756.11104117121999@news.skynet.be> <871z8lhkdt.fsf@erlenstar.demon.co.uk> <19991217172205.802$6I@newsreader.com> <slrn85lj0u.138.ade@anaconda.lovett.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 562189595
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5 %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-User: Curt@NewsReader.Com
Organization: NewsReader.Com
X-Url: http://CurtWelch.Com/
Newsgroups: news.software.readers,news.software.nntp