Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: algorithm to get xml update [Thread Next] Re: algorithm to get xml updateTo: NULL Date: 6/12/2008 4:22:00 PM I have to know whether the xml file was changed first. Another problem is that, when there are many users are doing that(get the last modified date of the xml file every 10 seconds), will bring out the issue of server bandwidth and memory. Is there anything in C# just like real-time in Java? Either real-time or get the date every 10 seconds is better you think? "Peter Flynn" <peter.nosp@m...> wrote in message news:6bb06pF39a037U2@m...... > Elliot wrote: >> I propose to write a C# program to get the content of a xml file. >> However, that file may be modified after 10 seconds, 10 minutes or 10 >> hours. >> I think the algorithm of getting the content every 10 seconds to check >> whether it was chaged is too stupid, assuming there are 50,000 users >> running the program(cause a heavy workload for the web server, worse >> still it is unable to handle). >> Certainly, less than 10-second delay is acceptable if real-time is >> impossible. >> Please advise me a better algorithm. >> Any idea would be appreciated. > > Do you need to know *what* was changed, or merely the fact that it *was* > changed? > > If it's only the latter, and the file is a disk file, then a simple > script to monitor the file status or last-written date would be much > faster than a program that read and re-read the whole file. > > ///Peter | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
