|
To most people, getting an error message is unacceptable. Telling end users they'll have to put up with this every now and then, and to just hit back and try again, isn't going to be very popular.
Flat files can be a workable solution sometimes, but this usually requires a single process to have constant access to the file and other processes that need it to make requests and have a little conversation between the software to get at the data in the file, or add more to it. Because of the way IIS assigns threads to handle requests, this isn't a good option here.
Excel could be enough to analyze the data, and you might even be able to use the ODBC Excel driver with a long timeout, so that if you need to add data but the file is locked, you'll just wait until the file is closed for your turn. Since adding a record won't take much time, the user wno't ever have to wait for ages. And the driver should have its own threading system that will be compatible with IIS.
Or, if your server's security allows, use the filesystem as a database. Create a new folder for each poll, and a new file within the right folder for each user session. Then list all the files in any particular folder to reap the responses.
|