Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - algorithm to get xml update >Thread Next - Re: algorithm to get xml update Re: algorithm to get xml updateTo: NULL Date: 6/11/2008 11:00:00 PM 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 | |||
|
