I have a Client (A Till) and a server which I am developing in C#.
I wish to implement some sort of network queuing system. So basically, when a method wants to send some data to the server, it will try first and if it fails, then add it to a "queue" and try to send x seconds again later.
Generally, the data which is being sent to the server is 2 strings, on after the other. The first being an id of some sort, the next being a string which is formatted in XML.
It would be nice if this queue could survive a termination of the application.
Any ideas on how to implement such a thing? Maybe I'm going about this a completly wrong way?
I have this idea of saving the xml files to the hard drive in a queue folder and having a thread constantly running in the background to check for files in this folder and try to send them to the server. Maye there is a better way for this?
Thanks for the help :)