我们正计划在 web 中开发一个大型应用程序,我们目前的计划是为业务层中的每个类创建一个 WCF 服务。这有效吗?我想知道在大型 Web 应用程序中我们可以在哪里使用 WCF 以及使用它的主要优点
我们有这些项目
1) MVC3 with Razor that handles UI
2) Class Library Project that communicate with Database
3) WCF Project
我们使用的方法
1)Creates UI and Model in MVC
2)Makes dll that communicate with UI (eg:Save function/Update function) using ClassLibrary Project
3)The Class Library Created is Added (Added to Bin) in WCF Project
4) Builds the WCF and Host It in Server
5) The Hosted Service is Used in MVC Project for Communication with DB
我们的技术负责人说它重量轻且更安全,但我想知道他为什么说要WCF
用于整个应用程序