Search code examples
nservicebuscommand-pattern

Instant and graceful response to the client from server side while using NServiceBus.Send


I agreed that the command pattern is an excellent way of building loosely coupled application. My concern is how to respond to the client instantly and gracefully about the status of the request. For example, a client making a request to place order. In the typical way, order will be created followed by sending order id as a JSON response to browser. In the command pattern particularly with NServiceBus, how is it possible to send the response?


Solution

  • Isn't this what Return and Reply are for?