开发者

Setting up MVC app on a server

I have one dll containing my entire mvc app running on iis7 server. Should I instead have compiled controllers and business logic into separate dll's? Furthermo开发者_如何学Cre, should I install the non controller dll's in a separate server and if so do I configure a new virtual directory to the remote server?

What is the typical practice here? Thanks


I guess that depends on your business needs, but in general I am a fan of modularity. We have our Model shared between multiple sites so it is in its own DLL and the controllers etc. for each site are generally in another (for each site) and additional add-ons in their own as well.

Compiling into one DLL would probably get you a performance increase, but you would be hurt when it comes to upgrading individual modules.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜