Architecture of service layer RRS feed

  • Question

  • Currently, I am choosing between request/response methods and usual methods.

    int DoSomething (int param1, bool param2);
    DoSomethingResponse DoSomething (DoSomethingRequest request);

    What approach is better? Аnd why?


    Saturday, November 13, 2010 4:30 PM

All replies

  • I always like my usual methods.

    By request response I guess you mean an asynchronous call raising a callback.  Only way to go with Silverlight.



    Monday, November 15, 2010 2:59 PM
  • Are you choosing between messages and primitive type parameter/paremeter list?

    Message incapsulates the parameters inside. You forced to deal with one param as an input (the request message) and one param as an output (the response message).

    If your code operates, for example, on the inprocess level, you don't need messages.

    But if you have to work, for example, on the WCF service level, using messages make sense. WCF, SOAP, etc. operate with messages and you would not be forced to map your internal objects to differen presentation, if you also use messages.

    But there are no strict rules! It is up to you.

    Leonid Ganeline [BizTalk MVP] Biztalkien blog
    Sunday, November 21, 2010 10:55 PM