Raise an event or send a team?

We have created a web application that is an e-book reader. Therefore, you need to keep in mind that the domain is not exactly the one who reads the physical book. Now we are trying to collect user behavior by storing information about the pages of the e-book that our users have access to. Since this information goes to the data warehouse, we thought that creating an event from bookcontroller is the right way to do this.

bus.Publish ()

But we are not sure that this should be a publication or transmission, because there is really only one consumer for this event, and this is our team of business analysts. We also read that it is not recommended to publish from a web application (http://www.make-awesome.com/2010/10/why-not-publish-nservicebus-messages-from-a-web-application/). So now an alternative is to use bus.Send (RecordPageAccessedCommand)

But the above command does not change our application state. So is this really a team? I have a feeling that the mistake we are making is to use the NServiebus (Publish, Send) functions and try to equate it with which command or event.

Please let me know what this solution is.

+5
source share
2 answers

, "" .

, , , - . , , - , .

, 0..n , - . , - , . , "", .

, , , . , / .

+10

RecordPageAccessedCommand - , - , .

. " -", , . / .

, , , 1000 , " -" 1000 , .. Bus.Publish(), , .

, " -", IT/OPS.

+1

All Articles