locked
webmethod vs webservice vs wcf service : io performance RRS feed

  • Question

  • User1786833724 posted

    <br>
    Hello, I am going to have an Ajax call that will do one single lightweight database query and then extensive io operation. Basically I have a screen where user can enter a range and i have to verify the no of pages in tif(f) file against our database operations.

    Also options to split all those multipage tif images and/or to merge them as a single PDF can be given.

    I am using leadtools and [ webmethod] from aspx.cs but I was curious to see if using web service or wcf service can improve performance.&lt;br&gt;<br>

    asp.net 4

    only one or two support.people are going to use it&lt;br&gt;<br>

    Max pages allowed: 1000
    Saturday, November 9, 2013 11:00 AM

Answers

  • User260886948 posted

    Hi,

    ASP.NET Web services was developed for building applications that send and receive messages by using the Simple Object Access Protocol (SOAP) over HTTP.

    WCF is for enabling .NET Framework applications to exchange messages with other software entities. SOAP is used by default, but the messages can be in any format, and conveyed by using any transport protocol.

    For the performance: webmethod vs webservice vs wcf service, I think it depends on your real application. So as the @Mike said, you should test it by yourself.

    And also please try to check the following article about how to improve the web service performance.
    #Improving Web Services Performance:
    http://msdn.microsoft.com/en-us/library/ff647786.aspx .

     

    Best Regards,
    Amy Peng

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, November 11, 2013 2:42 AM
  • User-488622176 posted

    The usage of WCF or web services as transport method has little or nothing to do with the performance of the overall implemenation. I'd focus on optimizing the part of the applicaiton you can control, instead of focussing on WCF vs webmethod.

    In your case : if you need to transfer the file back to the client, the size of the file will impact the performance much more the the wcf/webmethod choice. 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, November 12, 2013 8:34 AM

All replies

  • User-821857111 posted

    This is something you can test for yourself.

    Sunday, November 10, 2013 3:51 PM
  • User260886948 posted

    Hi,

    ASP.NET Web services was developed for building applications that send and receive messages by using the Simple Object Access Protocol (SOAP) over HTTP.

    WCF is for enabling .NET Framework applications to exchange messages with other software entities. SOAP is used by default, but the messages can be in any format, and conveyed by using any transport protocol.

    For the performance: webmethod vs webservice vs wcf service, I think it depends on your real application. So as the @Mike said, you should test it by yourself.

    And also please try to check the following article about how to improve the web service performance.
    #Improving Web Services Performance:
    http://msdn.microsoft.com/en-us/library/ff647786.aspx .

     

    Best Regards,
    Amy Peng

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, November 11, 2013 2:42 AM
  • User1786833724 posted

    I was trying to see if anyone had this tested even with somple scenario where any file IO was involved, I tested before posting and observed that Imageprocessing with leadtools does not take too much time as I am not doing anything more complex, My hunch is that, it is the file save ( disk IO) operation that bogs the process down as I have to save file either bunch of TIFF files splitted from the source or appending pages to PDF object or both. I've mentioned leadtools just to be specifty my scenario precisely it does not seem to be the culprit.

     

    Nevermind I will test and share the results.

    Monday, November 11, 2013 12:10 PM
  • User-821857111 posted

    There are so many facets to the test that you are looking to perform that anyone else's results will be meaningless to you unless you are able to replicate their environment exactly, That's why it is better for you to test this kind of integration in the same environmentin which you plan to deploy it.

    Monday, November 11, 2013 3:38 PM
  • User-488622176 posted

    The usage of WCF or web services as transport method has little or nothing to do with the performance of the overall implemenation. I'd focus on optimizing the part of the applicaiton you can control, instead of focussing on WCF vs webmethod.

    In your case : if you need to transfer the file back to the client, the size of the file will impact the performance much more the the wcf/webmethod choice. 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, November 12, 2013 8:34 AM