Professional Web Applications Themes

Real-Time RSS Feed - Coldfusion - Getting Started

I have an RSS feed written in ColdFusion that is currently scheduled (in CF Administrator) to update every 3 hours. Instead, I plan to have it update every time a new doent is added to our database. The difficulty I see is that the ColdFusion file that creates the feed writes it to a single XML doent. That means if I add a doent at 1:00 p.m., and the next one at 1:15 p.m., the second overwrites the first. If a consumer doesn't have his/her RSS feed reader set to be reading continuously, doesn't he/she run the risk of missing ...

  1. #1

    Default Real-Time RSS Feed

    I have an RSS feed written in ColdFusion that is currently scheduled (in CF
    Administrator) to update every 3 hours. Instead, I plan to have it update every
    time a new doent is added to our database.

    The difficulty I see is that the ColdFusion file that creates the feed writes
    it to a single XML doent. That means if I add a doent at 1:00 p.m., and
    the next one at 1:15 p.m., the second overwrites the first. If a consumer
    doesn't have his/her RSS feed reader set to be reading continuously, doesn't
    he/she run the risk of missing lots of new doents?

    Advice would be greatly appreciated! --diane

    Dbast Guest

  2. #2

    Default Re: Real-Time RSS Feed

    I'm not 100% sure I understand the problem, but I'll take a stab at it.

    Yes, if you're only putting a single rss:item in the feed, consuming apps will
    lose data. The question is, why is the 1:15pm item replacing the 1:00pm item in
    the first place? The feed should maintain a list of (for example) 20 recent
    doents, with new items being added to the top of the feed and old ones being
    pruned from the bottom.

    Now, if you add twenty doents between 1:00 and 1:15, you're still going to
    be facing data loss. At that point, you'll need to up the number of items in
    the feed to 40, or whatever makes sense given your update frequency and the
    polling frequency of your consumers.

    --
    Roger

    rogben Guest

  3. #3

    Default Re: Real-Time RSS Feed

    Sorry I didn't thank you sooner. Your outline of the steps definitely got me on the right track, and the feed is working well now! --diane
    Dbast Guest

  4. #4

    Default Re: Real-Time RSS Feed

    Diane: No problem... glad I could help.
    rogben Guest

Similar Threads

  1. Real-time notification in ASP.NET
    By KIAMagentis in forum ASP.NET Web Services
    Replies: 4
    Last Post: January 11th, 02:57 PM
  2. real time graphics
    By nickblair in forum Macromedia Flash Player
    Replies: 0
    Last Post: December 14th, 05:45 AM
  3. 3D real Time
    By gusilvapires in forum Macromedia Director 3D
    Replies: 1
    Last Post: May 22nd, 03:53 PM
  4. Real Time 3D for TV
    By gjab13 in forum Macromedia Director 3D
    Replies: 4
    Last Post: December 22nd, 02:25 PM
  5. Real time converted to Unix time
    By Brian in forum PERL Miscellaneous
    Replies: 1
    Last Post: August 29th, 04:36 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139