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?
- if plan on having more 1 application use generic data access layer.
- if plan on exposing data external clients.
- 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
Post a Comment