Re: [WebDNA] HTTP Streaming - POSSIBLE!
This WebDNA talk-list message is from 2010
It keeps the original formatting.
numero = 105573
interpreted = N
texte = Let's say a folder is created for each auction item. Then every time a new bid comes in it writes a new sequential file. Now when a new bidder views a potential item it would search the number of files in that auctions directory and would keep the connection open with a waitforfile command until a new bid comes in. Then when the file is created it simply refreshed the page and waits for the next bid sequential file.This solves your server load issues because it doesn't demand packets to constantly be exchanged.Each client reloads once, and only when a new bid is created. A pure WEBDNA solutions...Sounds simple, perhaps I'm not understanding the dilemma or problem...Sincerely,Scott Waltersscott@ideassoftware.comOn Jul 12, 2010, at 6:22 PM, Kenneth Grome wrote:>> Which included a script that reloaded itself>> upon the creation of the next sequential file.>> I already have a mockup of my auction site working with a simple > meta-refresh in an iframe, so I don't see how your approach is going > to solve any problems for me.>> The problems I am anticipating are latency and overhead. Maybe I > can get rid of some of that with XMLHTTPRequest, but I don't think > it's going to help much, because even though Javascript can be > programmed to open a new server connection via XMLHTTPRequest as > soon as the last one closes, the browser still has to repetitively > open and close these connections -- every second or two at a minimum > if I'm hoping to keep the browsers updated with the most recent bid > price.>> Unfortunately this polling must be initiated by the browser, not by > the server, and this means as many as a couple thousand connections > per second -- just to CHECK to see if the data has been updated. If > the data has not been updated then it's a wasted connection because > the connection still has to be opened, then the current data sent > (again), then the connection closed.>> A better alternative might be to "keep the connection open" and send > each update to the browser as it happens, over the same open > connection. This gets rid of the latency inherent in polling once > each second because the data gets sent immediately instead of > waiting to be sent upon the next polling request ... and it gets rid > of most of the overhead inherent in building up and tearing down all > those connections.>> Unfortunately webdna is not appropriate for this type of > application, so I've come up with a work-around meta-refresh / > iframe technique as a possible alternative. It's not the best > alternative, that's for sure, but it's a potential solution that I > can understand. I only hope that webdna is fast enough to respond > to all those connections.>> Or I hope to find a better alternative ...>> Sincerely,> Kenneth Grome>>>> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list
.> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> Bug Reporting: support@webdna.us>
Associated Messages, from the most recent to the oldest:
Let's say a folder is created for each auction item. Then every time a new bid comes in it writes a new sequential file. Now when a new bidder views a potential item it would search the number of files in that auctions directory and would keep the connection open with a waitforfile command until a new bid comes in. Then when the file is created it simply refreshed the page and waits for the next bid sequential file.This solves your server load issues because it doesn't demand packets to constantly be exchanged.Each client reloads once, and only when a new bid is created. A pure WEBDNA solutions...Sounds simple, perhaps I'm not understanding the dilemma or problem...Sincerely,Scott Waltersscott@ideassoftware.comOn Jul 12, 2010, at 6:22 PM, Kenneth Grome wrote:>> Which included a script that reloaded itself>> upon the creation of the next sequential file.>> I already have a mockup of my auction site working with a simple > meta-refresh in an iframe, so I don't see how your approach is going > to solve any problems for me.>> The problems I am anticipating are latency and overhead. Maybe I > can get rid of some of that with XMLHTTPRequest, but I don't think > it's going to help much, because even though Javascript can be > programmed to open a new server connection via XMLHTTPRequest as > soon as the last one closes, the browser still has to repetitively > open and close these connections -- every second or two at a minimum > if I'm hoping to keep the browsers updated with the most recent bid > price.>> Unfortunately this polling must be initiated by the browser, not by > the server, and this means as many as a couple thousand connections > per second -- just to CHECK to see if the data has been updated. If > the data has not been updated then it's a wasted connection because > the connection still has to be opened, then the current data sent > (again), then the connection closed.>> A better alternative might be to "keep the connection open" and send > each update to the browser as it happens, over the same open > connection. This gets rid of the latency inherent in polling once > each second because the data gets sent immediately instead of > waiting to be sent upon the next polling request ... and it gets rid > of most of the overhead inherent in building up and tearing down all > those connections.>> Unfortunately webdna is not appropriate for this type of > application, so I've come up with a work-around meta-refresh / > iframe technique as a possible alternative. It's not the best > alternative, that's for sure, but it's a potential solution that I > can understand. I only hope that webdna is fast enough to respond > to all those connections.>> Or I hope to find a better alternative ...>> Sincerely,> Kenneth Grome>>>> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> Bug Reporting: support@webdna.us>
Scott Walters
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
[append] (1997)
URL for Discussion Archive (1997)
Error Template (1999)
can WC render sites out? (1997)
Multiple adding (1997)
oops private message leaked into talk list (1997)
Bad creator codes which cause access denied errormessage (1997)
MOOOOOO (2000)
Re:Emailer and encryption (1997)
Bug Report, maybe (1997)
ooops...WebCatalog [FoundItems] Problem - LONG - (1997)
Help name our technology! (1997)
WCS Newbie question (1997)
Drop Down Menu from comma delimited values. (2002)
Comments in db? (1997)
Zip Code Database (2004)
[Sum] function? (1997)
Re:HELP - NONE STOP DIGESTS. Digest for 4/24/97) (1997)
autosensing lanague selection (1997)
Price Change (2000)