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

Ask A Question

Stats

  • Questions 262k
  • Answers 262k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I just answered a similar question here for giving rounded… May 13, 2026 at 11:54 am
  • Editorial Team
    Editorial Team added an answer Maybe Invalidate(); is what you're looking for, it forces the… May 13, 2026 at 11:54 am
  • Editorial Team
    Editorial Team added an answer Seems like one of the Jasper Reports' jars is missing… May 13, 2026 at 11:54 am

Related Questions

I have a WCF web service that works perfectly with an http address, but
I am developing a Java web application that bases it behavior through large XML
Our application exposes queries by way of web services, and what we've found is
I have a launchd daemon that every so often uploads some data via a

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.