Let's say that I want to consume AMQP messages from ASP.net MVC 4 using RabbitMQ. I store an object in System.Web.HttpContext.Current.Application which internally uses an instance of BackgroundWorker to listen for messages (the listener is created in Global.asax.cs)
Is this a good way to implement this operation or should I use a static class / singleton? I am inexperienced in ASP.net MVC so I am uncertain. Maybe ASP.net MVC 4 is not the best platform choose? What would you recommend?
The goal is to be able to monitor/log message traffic, kill/create/configure consumers at will from a web interface.
This is my first stackoverflow post as I believe in good research. But, this time I would like to hear from other people, thx :)