I have created Web API which allows messages to be sent to the Queue. My Web API is designed with CQRS and DDD in mind. I want my message consumer to always be waiting for any messages on the queue to receive. Currently the way its done, this will only read messages if I make a request to the API to hit the method. Is there a way of either using console application or something that will always be running to consume messages at anytime given without having to make a request from the Web Api. So more of a automation task ? If so, how do I go about with it i.e. if its console app how would I keep it always running (IIS ?) and is there way to use Dependency Injection as I need to consume the message then send to my repository which lives on separate solution. ? or a way to make EasyNetQ run at start up ?
EasyNetQ / RabbitMQ consuming events in Web API
1.1k views Asked by hello world At
1
There are 1 answers
Related Questions in ASP.NET-WEB-API
- export function with netbeans from mysql to excel
- issue in my if statement to make comparison in my java program
- How do I change code template triggering behavior in Netbeans 8.0?
- How to get the last integer ID you query in MySQL
- Opening jar file with external library
- How to access a private method
- CoffeeScript For NetBeans 8.0 Plugin: Set Target Folder For Compiles JS
- error with google app engine deploy
- Why won't my JSF app deploy to GlassFish?
- NetBeans commenting
Related Questions in RABBITMQ
- export function with netbeans from mysql to excel
- issue in my if statement to make comparison in my java program
- How do I change code template triggering behavior in Netbeans 8.0?
- How to get the last integer ID you query in MySQL
- Opening jar file with external library
- How to access a private method
- CoffeeScript For NetBeans 8.0 Plugin: Set Target Folder For Compiles JS
- error with google app engine deploy
- Why won't my JSF app deploy to GlassFish?
- NetBeans commenting
Related Questions in CQRS
- export function with netbeans from mysql to excel
- issue in my if statement to make comparison in my java program
- How do I change code template triggering behavior in Netbeans 8.0?
- How to get the last integer ID you query in MySQL
- Opening jar file with external library
- How to access a private method
- CoffeeScript For NetBeans 8.0 Plugin: Set Target Folder For Compiles JS
- error with google app engine deploy
- Why won't my JSF app deploy to GlassFish?
- NetBeans commenting
Related Questions in EVENT-SOURCING
- export function with netbeans from mysql to excel
- issue in my if statement to make comparison in my java program
- How do I change code template triggering behavior in Netbeans 8.0?
- How to get the last integer ID you query in MySQL
- Opening jar file with external library
- How to access a private method
- CoffeeScript For NetBeans 8.0 Plugin: Set Target Folder For Compiles JS
- error with google app engine deploy
- Why won't my JSF app deploy to GlassFish?
- NetBeans commenting
Related Questions in EASYNETQ
- export function with netbeans from mysql to excel
- issue in my if statement to make comparison in my java program
- How do I change code template triggering behavior in Netbeans 8.0?
- How to get the last integer ID you query in MySQL
- Opening jar file with external library
- How to access a private method
- CoffeeScript For NetBeans 8.0 Plugin: Set Target Folder For Compiles JS
- error with google app engine deploy
- Why won't my JSF app deploy to GlassFish?
- NetBeans commenting
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
The best way to handle this situation in your case is to subscribe to bus events using AMPQ through EasyNetQ library. The recommended way of hosting it is by writing a windows service using topshelf library and subscribe to bus events inside that service on start.
IIS processes and threads are not reliable for such tasks as they are designed to be recycled on a regular basis which may cause some instabilities and inconsistencies in your application.
It is better to create a separate question for this, as it is obviously off-topic. Also, it requires a further elaboration as it is not clear what specifically you are struggling with.