c# - MSMQ listener with WCF? -


scenario : want implement msmq in users input message through system.messaging api's. , there should listener observes queue when ever there message in queue want make database updation.

my first approach implement msmq trigger. able implement com interop dll trigger. wasnt able database operation , couldnt figure out wrong, tried lot . came know wcf msmq binding. new wcf have doubts.

which best approach host wcf case. iis or windows service?

and kind of listener service client necessary or can write database operations directly under service host operations without client invocation?

then came know wcf msmq binding. new wcf have doubts

well, that's valid. wcf has steep learning curve, config-heavy, , not everyone's cup of tea.

however, if you're integrating msmq, wcf has support , rock solid in terms of way implemented.

which best approach host wcf case. iis or windows service?

unless you're hosting exclusively on web environment, choose windows service every time. using topshelf, deployment , management overhead tiny, , there no external dependencies.

remember use msmqintegrationbinding rather netmsmqbinding, latter relies on wcf @ both ends, whereas former supports system.messaging on client, or better, use wcf on client , can use netmsmqbinding support "typed" messages.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -