Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6760729
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:05:55+00:00 2026-05-26T14:05:55+00:00

I have a web application that uses WCF to communicate with the back-end DB.

  • 0

I have a web application that uses WCF to communicate with the back-end DB. I already have everything working but I was wondering if it would be better to split up my fairly large Service Contract into several Contracts.

As it stands the service contract is a single general file with all operations contained within it. I know I could break it up into smaller contracts that are assocaited with the Data Objects in my business logic i.e. A Person object has a PersonContract etc.,

I am just worried that the web application will have to reference several WCF Services instead of the one and suffer as a result of this. Will having several smaller contracts in anyway affect performance, either negatively or positively?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T14:05:56+00:00Added an answer on May 26, 2026 at 2:05 pm

    IMO the Single Responsibility Principle (SRP) and Interface Segregation principle (the “S” and “I” in SOLID) still applies to WCF Service Contracts.

    The nature of refactoring would depend largely on what type of services you offer, e.g.

    • Data Services => You would typically consolidate each web service around main business entities.
    • Enterprise Business Services => Would typically consolidate groups of services around main business process themes (e.g. claims processing or order processing services)

    But in summary, don’t be shy to refactor your services (especially if you can forsee new Operations being added in future), and also take any opportunity to refactor and reuse any common theme in the interfaces.

    Edit : Apologies – w.r.t. Q about performance wasn’t answered. If you do find the overhead of multiple services problematic, you could compromise with one / few service(s), with many interfaces each, as in this SO post here. With a proxy, facade or service agent type pattern on the client, you could ‘hide’ the fact that your are in fact speaking to just the one / few services.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web application that uses a number of WCF Services. I deploy
I am working on a Silverlight application that uses WCF. I need to have
I have a WCF Web application that uses a WCF Class Library. My project
I have a web application that uses ASP.NET with InProc session handling. Normally, everything
I have a web application that uses ajax enabled wcf service Service.scv .... I
I have a web application that uses Ext-JS 2.2. In a certain component, we
I have a web application that uses the current version of JQuery that needs
I have a web application that uses TONS of javascript, and as usual, there
I have a web application that uses AzMan authorization to grant different functionality to
I have a web application that uses two databases. DB1 Users perform their CRUD

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.