Please Help, dll or webservice which is best for middle layer(BLL)

Posted by Solomon_raja under ASP.NET on 7/17/2011 | Points: 10 | Views : 2644 | Status : [Member] | Replies : 3
Hi, We are Creating a Webapplication which is a 3 Tier Architecture, Application-aspx pages, BLL-Webservice, DAL- webservice. Most of others use BLL as dll not webservice, so my doubt is , which is best, whether to use webservice or dll in BLL , Which one is Best in Performance point of view, actually our webapplication will be used by nearly 6000 users. So kindly let me know which one is best for middle layer

Solomon Raja


Responses

Posted by: DotnetGuy on: 7/17/2011 [Member] Starter | Points: 25

Up
0
Down
Hi Use BLL for performance point of view, usage of webservice depends on the security required.

Solomon_raja, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 7/17/2011 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
hi Solomon

using a DLL has more performance than using a webservice. You should only use a webservice when needed not only because you like webservice. When you use a dll , it does not need to go via http , its like its local and it has some performance gains for you.



Thank you for posting at Dotnetfunda
[Administrator]

Solomon_raja, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sashys on: 7/17/2011 [Member] Starter | Points: 25

Up
0
Down
Solomon Raja,

The reason when we go for Webservice as a middle level is,
1. when Same business logic need to be exposed and used in mutiple places.
2.The same Webmethod can be used by other systems /apps as it is exposed.
Even the dll can be used in multiple places. More over, in future we can ehance the webservice with WCF, so that the end points can be anything.

If your business logic is just specific to one app/system, which will not be requried to any other app, pls go for dll as it is faster than Webservice.

Sasikumar .M

Solomon_raja, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response