Right now, I have a program that works like this. An old legacy system puts a row into a database. That row is status 0. I have a Windows Console application in .Net that checks the DB ever 5 seconds, and sends a printing command to a printer.
This architecture is really chewing up a ton of resources on the computer where the console app runs. Essentially, there are a TON of empty commands that get run. Only once in a while is a printing command put into the DB. However, as soon as the DB gets the printing command the program needs to process it ASAP.
Any suggestions on how to make this work better? I think an on-demand thing might be better - IE the legacy system sending some kind of signal right to my program. Not sure how to accomplish this.
Any help would be AWESOME.