I have a few questions about the MQ process and specifically for ServiceStack.Azure.
First, the documentation states that Messages with Responses are published to the Response .inq
Often message handlers will just return a POCO response after it processes a message, e.g:
mqServer.RegisterHandler<Hello>(m =>
new HelloResponse { Result = "Hello, {0}!".Fmt(m.GetBody().Name) });
I’ve been testing the Azure MQ provider and what I don’t understand is that there is no HelloResponse queue created in service bus in my example.
mqServer.RegisterHandler<Hello>(o=>ServiceController.ExecuteMessage(o), noOfThreads:10);
Q1: Should there be a separate queue created in this case? The ExecuteMessage returns a HelloResponse in the code above so I assume it should be put into that queue and I could register a handler for it?
Q2: Is there a way to bypass the .outq if the message is void and we don’t want to notify any other processes? (edit: I see I asked this a while ago and there is a DisablePublishingResponse for an optin for this which I’ll test). If not then I assume we have to empty it ourselves?