I have a C# program that calls a SQL database.
I want to duplicate this program 10 times and have all programs call the SQL database at the same time. How would this be done?
I am pulling data on a timer/loop. For example, if program A is executed before program B, the refresh times will differ. Is there a way to sync this refresh?
You’ll need to have a man in the middle. I mean, you need to provide a service between your desktop clients and the DB. That service will contain the update timer.
Now, every X seconds you ping that service to seek if the update time has changed. And every time that a client call for data, well, you update the timer on the service. So suppose there rest 3 minutes to update, every client knows that, but then your program A does something that alter that timer, well then, when others ping the service will note that and change it’s internal update timers also.