I am wondering what youll think the best option for this scenaro:
I have some software that needs access to the internet to send error reports and some other random stuff.
This software accesses a db (right now an access db) to get pricing info and availability (availability is updated upon item purchased) and the db does some other random stuff.
I really want this software to be able to use the internet connection to access an xml file on a websierver.. or an mysql server or ms sql server.. but my only problem is I am scared the internet might go down.. and if this happens, and no one can pull up pricing info and availability and there will be some pisses off people.
So I was just wondering what youll do for something like this.. Do youll cache the db once a day or something just incase something like this happens? or what.
I would just do something as simple as this:
If internet_connection = true then
use db at database.server.com
elseif internet_connection = false then
use db at C:\
end if
But, then all things would get out of sync if the internet connection goes down.. this is because I need to read and write to a db... so I would then need to be able to resync the db.. which this sounds way over my head (not sure if it is or not :/)
any ideas?
thanks! Lee
I have some software that needs access to the internet to send error reports and some other random stuff.
This software accesses a db (right now an access db) to get pricing info and availability (availability is updated upon item purchased) and the db does some other random stuff.
I really want this software to be able to use the internet connection to access an xml file on a websierver.. or an mysql server or ms sql server.. but my only problem is I am scared the internet might go down.. and if this happens, and no one can pull up pricing info and availability and there will be some pisses off people.
So I was just wondering what youll do for something like this.. Do youll cache the db once a day or something just incase something like this happens? or what.
I would just do something as simple as this:
If internet_connection = true then
use db at database.server.com
elseif internet_connection = false then
use db at C:\
end if
But, then all things would get out of sync if the internet connection goes down.. this is because I need to read and write to a db... so I would then need to be able to resync the db.. which this sounds way over my head (not sure if it is or not :/)
any ideas?
thanks! Lee