Transferring data from a web application to a C # console application

I need to send data from a web application to a console application. The current plan requires the web application to send data to the database, and the console application to query the database then act on the data when it is inserted. Should I modify the console application to enable the http handler so that the web application can send data so that there is no need to poll the database? Is there a better way to transfer data between these two applications? A console application should never send data to a web application.

Update

This is a .NET 2.0 console application, so WCF does not seem like a viable option. The data payload is quite small (several 9-digit identification fields, less than 150 bytes in total) and will be sent at a speed of about 10 per minute. There is no firewall between the two applications.

+3
source share
3 answers

, , BackgroundWorker. , , . , , , , . , TimeStamp , , , , . , .

0

, WCF .

[]
, wcf asp.net. ( ) . , , .

+2

. , ( , , , ), ( , /, ) ..

- . - , webservice (wcf), (msmq),.net .

0

Source: https://habr.com/ru/post/1702848/


All Articles