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 79503
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T21:09:22+00:00 2026-05-10T21:09:22+00:00

I am not convinced – I think it might be useful to expose your

  • 0

I am not convinced – I think it might be useful to expose your data to different consumers that can build their front-end apps on top of your webservice.

Can someone provide samples of when using web-services to wrap data-access layer is a bad idea?

  • 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-10T21:09:22+00:00Added an answer on May 10, 2026 at 9:09 pm

    Depending on what you define as a ‘data access layer’, there may or may not be a good reason to do it. Traditionally, distributed API’s such as web services or RPC layers live on the next layer up. This has the following advantages:

    1. Without the tight coupling to the DB You can tune this layer to play nicely with distributed access – for example organising the API to minimise round trips.

    2. You can put an additional layer of validation on the API. A raw data access layer may permit bad data to be written to the system. For this reason, it would be bad to expose it to untrusted clients.

    3. You can put application-level security over the services layer in a way that might not be possible to a data access layer.

    4. Points 1 and 2 mean that you get re-use of the business rule validations in the middle-tier.

    Exposing a simple API for CRUD operations can also be achieved by directly connecting to the database server, so a web service layer over the top of this is not going to give you anything that the DBMS doesn’t already provide. Some DB engines can also directly serve queries over HTTP so you can tunnel it through most firewalls. However, the security aspects of this mean that you almost certainly don’t want to expose this to the public internet.

    While you could in theory expose CRUD operations (which is what I am assuming that you mean by ‘data access layer’) through a web service, there are some fairly good reasons not to do this and relatively little benefit to doing so.

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

Sidebar

Related Questions

I'm not 100% convinced that this is a good idea, but I bumped into
I am attempting to test some code that uses Request.Item(key) but I can not
I have read the MSDN article on MVVM and I am not really convinced.
Not ever sure if it can be done, but is it possible to use
I've already checked this.. similar question but I am not convinced about the answers...
I've got my own way of doing this but I'm not convinced its the
Javahelp is the Java based help system that can easily be integrated in a
Wikipedia says Ruby is a functional language, but I'm not convinced. Why or why
Yes, I'm yet another person to as this annoying question... but I'm not convinced
The ASP.NET runtime is meant for short work loads that can be run in

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.