Required Changes To My RSS Feed Format

Posted January 23, 2007 at 11:01 AM

Tags: Work

Some of you may know that I was recently added to the MXNA feed site. Some of you may not. Either way, MXNA hits my RSS feed like no body's business and actually managed to crash my site last night with some long running threads. Crashing the site means crashing the server and since my server space is graciously donated by my boss Jim Curran over at Nylon Technology, this is unacceptable.

In order to remedy this, I have updated my RSS feed to provide no more than 500 characters per post and to strip out all HTML elements. If you want to read more, you have to come to the site and view the entry for yourself. Sorry if this is an inconvenience for anyone, but it is what is necessary.

Post Comment  |  Ask Ben  |  Permalink  |  Print Page



Learning ColdFusion 9 - ColdFusion 9 tutorials, samples, examples, demos

Reader Comments

Jan 23, 2007 at 11:32 AM // reply »
22 Comments

Ben:

Can you explain in more detail how MXNA can crash your web server? I had not heard before that MXNA was a problem.


Jan 23, 2007 at 11:35 AM // reply »
6,516 Comments

Sorry, I was not clear with what was going on. My RSS feed was NOT efficient. It was crazy long. MXNA just hits its it a lot. Because my RSS feed was not working well, the increased traffic to it was crashing my site.

So, just to iterate - it was NOT a problem with MXNA, it was a problem with MY RSS FEED. It just was brought to light because of the higher traffic.


Jan 23, 2007 at 3:19 PM // reply »
3 Comments

Ben, I had the same problem when I was added to MXNA (in addition to a backup software crashing my MySQL server, but that's another story). I had to do something very similar to what you did.


Jan 23, 2007 at 3:55 PM // reply »
7 Comments

I know it's a roundabout way of solving the problem, but you may want to look into using http://www.feedburner.com to handle RSS feeds. I've been very impressed with them so far, and through a redirect on my site you can still go to http://www.adamfortuna.com/feed and feedburner handles it.


Jan 23, 2007 at 4:35 PM // reply »
11 Comments

You could try Ray's scopecache on the main feed or make the feed static by saving the feed out to an XML file and only refreshing the file when you add a post. static files would reduce load on your database and CF server and would also provide a spider friendly URL.

The only major issue I see is how you provide custom feeds and having to deal with all the permutations might be a nightmare unless you create some way of caching bits of different feeds and then performing a quick post-assembly.


Jan 23, 2007 at 4:54 PM // reply »
6,516 Comments

Adam, Chris,

All good suggestions. I think the problem was the sheer amount of data that was transfering in the RSS feed. With only a small snippet, I don't know of I need to take the time to optimize just yet. However, I do like the static idea. I will think that one over. I will also look into FeedBurner.

Thanks fellas!


Post Comment  |  Ask Ben

Recent Blog Comments
Nov 22, 2009 at 4:30 AM
jQuery Live() Method And Event Bubbling
dasegtezr ... read »
Nov 22, 2009 at 4:03 AM
jQuery Live() Method And Event Bubbling
C_fieri ... read »
Nov 22, 2009 at 1:56 AM
Learning ColdFusion 9: Using CFQuery In CFScript Can Enable SQL Injection Attacks
Why adobe would give you script equivalent of cfquery is beyond me. I love cfquery tag because it helps me wriite clean sql, and get away from the horrible jdbc queries If I wanted to write javali ... read »
Nov 22, 2009 at 1:45 AM
Streaming Text Using ColdFusion's CFContent Tag And The Variable Attribute
The reason you would want to do this is to stream. Ack json/xml files to ria clients I used thus technique before because putting json in response stream causes debugging info to come thru As well a ... read »
Nov 21, 2009 at 6:47 PM
Hal Helms - Real World Object Oriented Development, Sarasota - Day Five
@charlie griefer, Thank you.. ... read »
Nov 21, 2009 at 5:15 PM
Using ColdFusion Structures To Remove Duplicate List Values
@Jose Galdamez, Oh heh yeah I didn't paste the whole code. I should have defined the vars -- my bad. It's fixed thou. Thanks. ... read »
Nov 21, 2009 at 4:49 PM
Styling The ColdFusion 8 WriteToBrowser CFImage Output
Great work yet again Ben! Whilst I didn't use this whole code, I copied some of your regex code for a similar problem with the lack of an alt attribute and unescaped ampersands in CFIMAGE for Railo 3 ... read »
Nov 21, 2009 at 1:13 PM
My First ColdFusion Builder Extension - Encrypting And Decrypting CFM / CFC Files
@Ben, Because I am pedantic, I just want to make sure that everyone knows there is absolutely no encryption going on. There is only encoding and obfuscation. The cfencode tool only obfuscates your C ... read »