Re: [WebDNA] HTTP Streaming -- impossible?

This WebDNA talk-list message is from

2010


It keeps the original formatting.
numero = 105579
interpreted = N
texte = >> How does the XMLHTTPRequest know when the file has changed on the server? >> It needs to know this so it can download the new and updated file, right? >> > Couldn't you use the same trigger to also look for a text file written to a > specific folder so that when that folder has the file in it, the trigger > would sweep the folder and display the result to the browser. Yes, I moved some of my code to the trigger file so it is only processed once per second. This reduces the amount of processing webdna must do for every client. And I'm writing a static .htm file now instead of having clients request a dynamic .dna file. Unfortunately I'm seeing some problems with this approach that did not occur when the client was hitting a dynamic webdna template, and I'm not yet sure why ... but sometimes the static .htm file comes up blank -- and this never happened when the requested page was a .dna file. I guess this could be because the static file is being retrieved before being completely rewritten, or because of something else, but one thing's for sure: I never got a blank page when I was requesting a .dna file. My simulator code is creating 1-11 new bids every second and it's writing each new bid to the same static file. It may be that even this relatively slow write frequency is "too fast" for the OS to to serve that reliably without it coming up blank every so often. If this is the case I'm better off using a dynamic webdna template to deliver the latest bid value to my bidders. > Also, I was wondering if you might be able to use the SPAWN context in this > scenario somehow? I thought about spawn, but since the auction data should be as live as possible there seems to be no advantage to spawning any of the processing ... other than to perhaps return a page to the bidders without actually waiting for their bids to be recorded in the db. Sincerely, Kenneth Grome Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] HTTP Streaming -- impossible? (Kenneth Grome 2010)
  2. Re: [WebDNA] HTTP Streaming -- impossible? (christophe.billiottet@webdna.us 2010)
  3. Re: [WebDNA] HTTP Streaming -- impossible? (Kenneth Grome 2010)
  4. Re: [WebDNA] HTTP Streaming -- impossible? (Kenneth Grome 2010)
  5. Re: [WebDNA] HTTP Streaming -- impossible? (Kenneth Grome 2010)
  6. Re: [WebDNA] HTTP Streaming -- impossible? (Govinda 2010)
  7. Re: [WebDNA] HTTP Streaming -- impossible? (sal danna 2010)
  8. Re: [WebDNA] HTTP Streaming -- impossible? (Jesse Proudman 2010)
  9. Re: [WebDNA] HTTP Streaming -- impossible? (Kenneth Grome 2010)
  10. Re: [WebDNA] HTTP Streaming -- impossible? (Jesse Proudman 2010)
  11. Re: [WebDNA] HTTP Streaming -- impossible? (Kenneth Grome 2010)
  12. Re: [WebDNA] HTTP Streaming -- impossible? (Govinda 2010)
  13. Re: [WebDNA] HTTP Streaming -- impossible? (Kenneth Grome 2010)
  14. Re: [WebDNA] HTTP Streaming -- impossible? (Brian Fries 2010)
  15. Re: [WebDNA] HTTP Streaming -- impossible? (Kenneth Grome 2010)
  16. Re: [WebDNA] HTTP Streaming -- impossible? (Kenneth Grome 2010)
  17. Re: [WebDNA] HTTP Streaming -- impossible? (Marc Thompson 2010)
  18. Re: [WebDNA] HTTP Streaming -- impossible? (sal danna 2010)
  19. Re: [WebDNA] HTTP Streaming -- impossible? (Lawrence 2010)
  20. Re: [WebDNA] HTTP Streaming -- impossible? (Kenneth Grome 2010)
  21. Re: [WebDNA] HTTP Streaming -- impossible? (Stuart Tremain 2010)
  22. Re: [WebDNA] HTTP Streaming -- impossible? (Kenneth Grome 2010)
  23. Re: [WebDNA] HTTP Streaming -- impossible? (Kenneth Grome 2010)
  24. Re: [WebDNA] HTTP Streaming -- impossible? (Stuart Tremain 2010)
  25. Re: [WebDNA] HTTP Streaming -- impossible? (sal danna 2010)
  26. [WebDNA] HTTP Streaming -- impossible? (Kenneth Grome 2010)
>> How does the XMLHTTPRequest know when the file has changed on the server? >> It needs to know this so it can download the new and updated file, right? >> > Couldn't you use the same trigger to also look for a text file written to a > specific folder so that when that folder has the file in it, the trigger > would sweep the folder and display the result to the browser. Yes, I moved some of my code to the trigger file so it is only processed once per second. This reduces the amount of processing webdna must do for every client. And I'm writing a static .htm file now instead of having clients request a dynamic .dna file. Unfortunately I'm seeing some problems with this approach that did not occur when the client was hitting a dynamic webdna template, and I'm not yet sure why ... but sometimes the static .htm file comes up blank -- and this never happened when the requested page was a .dna file. I guess this could be because the static file is being retrieved before being completely rewritten, or because of something else, but one thing's for sure: I never got a blank page when I was requesting a .dna file. My simulator code is creating 1-11 new bids every second and it's writing each new bid to the same static file. It may be that even this relatively slow write frequency is "too fast" for the OS to to serve that reliably without it coming up blank every so often. If this is the case I'm better off using a dynamic webdna template to deliver the latest bid value to my bidders. > Also, I was wondering if you might be able to use the SPAWN context in this > scenario somehow? I thought about spawn, but since the auction data should be as live as possible there seems to be no advantage to spawning any of the processing ... other than to perhaps return a page to the bidders without actually waiting for their bids to be recorded in the db. Sincerely, Kenneth Grome Kenneth Grome

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:

search for non-unique question (2001) WebCat2b12 - nesting [tags] (1997) [/application] error? (1997) Hosting Options (2000) Lock out multiple users with same password? (1999) Crashing Server (2000) Is this possible, WebCat2.0 and checkboxes (1997) [addlineitems] (1997) WebCat2 beta FTP site (1997) math a various prices (1997) HTML encoding in URLs (1997) RequiredFields template (1997) WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997) Tip: Image Maps (Server-Side) with WebCatalog (1997) Sorry for the simple Question.. (1999) searching illegal HTML (2002) show all problem (1997) OT: Calling All Freelance Programmers in PDX (2000) wierd crashes for multi-sendmails on NT (1997) Cool new site (1996)