Web service as Data Access Layer (DAL)?

Web service as Data Access Layer (DAL)?

Page 1 of 1

3 Replies - 4315 Views - Last Post: 22 August 2010 - 10:55 PM Rate Topic: -----

#1 hidayatali  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 06-May 10

Web service as Data Access Layer (DAL)?

Posted 19 August 2010 - 02:48 AM

Is it wise to actually use web-services as data access layer (DAL) for any project. If the web-service is part of the that particular project. Please suggest.....

Thanks
Is This A Good Question/Topic? 0
  • +

Replies To: Web service as Data Access Layer (DAL)?

#2 hidayatali  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 06-May 10

Re: Web service as Data Access Layer (DAL)?

Posted 19 August 2010 - 09:27 PM

View Posthidayatali, on 19 August 2010 - 01:48 AM, said:

Is it wise to actually use web-services as data access layer (DAL) for any project. If the web-service is part of the that particular project. Please suggest.....

Thanks

Is there no one to help?
Was This Post Helpful? 0
  • +
  • -

#3 baavgai  Icon User is offline

  • Dreaming Coder
  • member icon

Reputation: 5832
  • View blog
  • Posts: 12,685
  • Joined: 16-October 07

Re: Web service as Data Access Layer (DAL)?

Posted 20 August 2010 - 04:05 AM

Sure. Why not? It's one of their primary uses, after all.

In any good program, the data is ultimately accessed through some collection of functions that deal with datastore CRUD. That data access layer should be a tier between the datastore and the rest of the program. Business logic should be a layer above.

If written correctly, the data functions should be modular and the rest of the application needn't worry about what the data store actually is. If you put those functions in a web service, that just another separation and shouldn't matter to the application as a whole.
Was This Post Helpful? 2
  • +
  • -

#4 hidayatali  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 06-May 10

Re: Web service as Data Access Layer (DAL)?

Posted 22 August 2010 - 10:55 PM

View Postbaavgai, on 20 August 2010 - 03:05 AM, said:

Sure. Why not? It's one of their primary uses, after all.

In any good program, the data is ultimately accessed through some collection of functions that deal with datastore CRUD. That data access layer should be a tier between the datastore and the rest of the program. Business logic should be a layer above.

If written correctly, the data functions should be modular and the rest of the application needn't worry about what the data store actually is. If you put those functions in a web service, that just another separation and shouldn't matter to the application as a whole.


Thanks for the reply. It was really helpful.

This post has been edited by hidayatali: 22 August 2010 - 10:58 PM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1