模块化应用 [英] Modular application

查看:88
本文介绍了模块化应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我们决定重构我们的旧Web ASP.NET MVC项目.我们决定使用模块化体系结构,并围绕ASP.NET WebAPI构建它,以为其编写依赖和独立的模块.是否有帮助构建模块化Web应用程序的教程或说明或库?如果是这样,您能指出我这一点吗?在此先感谢!

Recently we decided to refactor our old web ASP.NET MVC project. We decided to use modular architecture and build it around the ASP.NET WebAPI to write dependent and independent modules for it. Is there any tutorial or explanation or library helping build modular web applications? If so, can you point me to this? Thanks in advance!!

推荐答案

取决于您的需要.如果您需要向您的应用程序域之外的世界提供服务,请使用SOA.如果只需要项目组织,则可以使用 Microsoft应用程序体系结构或某些 .NET业务体系结构指南.您应该会看到其中一些使用旧版 Web服务 WCF 的指南,但是 Web API 会以某种方式取代它们.

Depends on your necessity. If you need to provide service to the world outside your app domain go for SOA. If you need only project organization, just fallow Microsoft Application Architecture, or some Business Architecture Guide for .NET. You should see some of those guides using legacy Web Services or WCF, but Web API come to replace those in some way.

如今,Web API已经可以在IIS之外使用,并且使用OWIN中间件很容易做到这一点.鉴于您需要模块化,这应该是对您的项目的很好补充.

Web API today already can go outside IIS, and It's easy to do that using OWIN middleware. This should be a good addition to your project given that you want modularity.

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆