Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Soapbox
  4. WCF man! It is sooooo slow! and on the local machine!

WCF man! It is sooooo slow! and on the local machine!

Scheduled Pinned Locked Moved The Soapbox
csharpasp-netwcfbusiness
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Brian C HartB Offline
    Brian C HartB Offline
    Brian C Hart
    wrote on last edited by
    #1

    I am writing a N-Tier website with the usual Data Layer/Business Layer/Presentation Layer pattern. It's done up in ASP.NET 4 with VB.NET 4 in VS2010. This is just an intuitive feel; I have no data to back this up. But is it just me, or is a business layer implemented as a WCF service just more slow than if I just implement the business layer as a class library (.dll) instead? Brian

    Sincerely Yours, Brian Hart

    J 1 Reply Last reply
    0
    • Brian C HartB Brian C Hart

      I am writing a N-Tier website with the usual Data Layer/Business Layer/Presentation Layer pattern. It's done up in ASP.NET 4 with VB.NET 4 in VS2010. This is just an intuitive feel; I have no data to back this up. But is it just me, or is a business layer implemented as a WCF service just more slow than if I just implement the business layer as a class library (.dll) instead? Brian

      Sincerely Yours, Brian Hart

      J Offline
      J Offline
      jschell
      wrote on last edited by
      #2

      Brian C Hart wrote:

      But is it just me, or is a business layer implemented as a WCF service just more slow than if I just implement the business layer as a class library (.dll) instead?

      A WCF service, regardless of the reason for it, is using a network protocol mechanism. If you are comparing that to functionality that doesn't use a network protocol then there will of course be a performance impact. But implicit within that is the following - WCF is a tool not a mandate - One uses a distributed infrastructure based on requirements and architecture needs. It isn't an implementation detail. - Performance is actually a concern. If an app does one txn an hour and the back end processing (not boundary layer) takes one second then performance is irrelevant in the boundary layer. If the app is doing 10,000 a second and the back end processing is taking 0.001 seconds then it might be relevant. But then WCF might in fact be part of the solution in that case. - That in a modern data center setting that network protocol by themselves (ignoring volume entirely and actual business functionality) is going to be a primary performance cost.

      M 1 Reply Last reply
      0
      • J jschell

        Brian C Hart wrote:

        But is it just me, or is a business layer implemented as a WCF service just more slow than if I just implement the business layer as a class library (.dll) instead?

        A WCF service, regardless of the reason for it, is using a network protocol mechanism. If you are comparing that to functionality that doesn't use a network protocol then there will of course be a performance impact. But implicit within that is the following - WCF is a tool not a mandate - One uses a distributed infrastructure based on requirements and architecture needs. It isn't an implementation detail. - Performance is actually a concern. If an app does one txn an hour and the back end processing (not boundary layer) takes one second then performance is irrelevant in the boundary layer. If the app is doing 10,000 a second and the back end processing is taking 0.001 seconds then it might be relevant. But then WCF might in fact be part of the solution in that case. - That in a modern data center setting that network protocol by themselves (ignoring volume entirely and actual business functionality) is going to be a primary performance cost.

        M Offline
        M Offline
        Mycroft Holmes
        wrote on last edited by
        #3

        We recently (a year ago) had a policy forced on us where the UI could not connect to the database, therefore forcing a service layer, hence WCF. Performance seems to be acceptable but nowhere near as quick as the old winforms. Whenever I get a comment from the users, usually a manager of some type, I point to the policy and raise my hands, "don't talk to me you guys make the rules"

        Never underestimate the power of human stupidity RAH

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups