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

  • Home
  • SEARCH
  • 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 71563
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T19:54:27+00:00 2026-05-10T19:54:27+00:00

Using a web service is often an excellent architectural approach. And, with the advent

  • 0

Using a web service is often an excellent architectural approach. And, with the advent of WCF in .Net, it’s getting even better.

But, in my experience, some people seem to think that web services should always be used in the data access layer for calls to the database. I don’t think that web services are the universal solution.

I am thinking of smaller intranet applications with a few dozen users. The web app and its web service are deployed to one web server, not a web farm. There isn’t going to be another web app in the future that can use this particular web service. It seems to me that the cost of calling the web service unnecessarily increases the burden on the web server. There is a performance hit to inter-process calls. Maintaining and debugging the code for the web app and the web service is more complicated. So is deployment. I just don’t see the advantages of using a web service here.

One could test this by creating two versions of the web app, with and without the web service, and do stress testing, but I haven’t done it.

Do you have an opinion on using web services for small-scale web app’s? Any other occasions when web services are not a good architectural choice?

  • 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. 2026-05-10T19:54:27+00:00Added an answer on May 10, 2026 at 7:54 pm

    Web Services are an absolutely horrible choice for data access. It’s a ton of overhead and complexity for almost zero benefit.

    If your app is going to run on one machine, why deny it the ability to do in-process data access calls? I’m not talking about directly accessing the database from your UI code, I’m talking about abstracting your repositories away but still including their assemblies in your running web site.

    There are cases where I’d recommend web services (and I’m assuming you mean SOAP) but that’s mostly for interoperability.

    The granularity of the services is also in question here. A service in the SOA sense will encapsulate an operation or a business process. Data access methods are only part of that process.

    In other words:

      - someService.SaveOrder(order);  // <-- bad     // some other code for shipping, charging, emailing, etc    - someService.FulfillOrder(order);  //<-- better     //the service encapsulates the entire process 

    Web services for the sake of web services is irresponsible programming.

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

Sidebar

Related Questions

I have a WCF web service that works perfectly with an http address, but
I've got a web service (ASP.NET 2.0) that I'm calling from javascript using jQuery's
Background: I'm in the process of creating a web service using ASP.NET 2.0. This
i am using web service asmx, whenever a new request comes, all objects will
I want to create tree structure using web service. I have used bottom up
we are using a web service for a web site to communicate with an
I'm using a web service which returns a list of products. I created a
I'm using a web service where the WSDL describes a single string element in
I'm using Exchange Web Service exposed from exchange 2007 SP1 server to create emails
I have this web service : using System.Web.Services; namespace Contracts { [WebService(Namespace = http://tempuri.org/)]

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.