I have a scenario where I want to display a bunch of data on a web page.
The data gets populated into database by some process (which I have no control over) only at (7:00 AM) a specific time in the morning or manually starting the process. (P.S The same data is also being used in some other place on the web page in a different form, but from a different channel.)
I was thinking to put in some logic on page that
- retrieve data into a xml file and read data from the xml file (to avoid trips to database)
- retrieve data only if it is 7:10 am in the morning. But if someone manually starts the process database is updated, but my web page won't be updated till 7:10 AM. Even 1 second out of sync of data is not acceptable.
What is the best way to do this? Any smart solutions? I want to avoid round trips to database for same data again and again.
SQL server 2000, ASP.