wcf - Should we use webservices or do direct database access -


should use webservices or direct database access. ofcourse direct db access relatively faster , webservices if have make multiple platforms. time high in case of accessing data through webservice against db call or marginally high ?

i have disagree truthof42 in web services best practices data access. there big shift towards approach these days, don't think common use same best practice. because common/popular doesn't mean it's best fit situations.

why use web services?

  1. if plan on having more 1 application use generic data access layer.
  2. if plan on exposing data external clients.
  3. if want draw hard physical lines between application , database.

i argue making web service calls slower writing queries against database. can mitigate issues wise network planning , caching.

i agree aphelion in if it's simple application, keep simple.

a idea make interface in code gets data , start database implementation. if find you'd introduce web services later, can keep same interface , implement version makes web service calls instead of directly dialing database.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -