.Net MVC应用程序架构的设计输入 [英] Design Inputs on .Net MVC Application Architecture

查看:93
本文介绍了.Net MVC应用程序架构的设计输入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


希望你做得很好。

Hope you are doing Great.


我需要有关我的以下设计的专家建议。实际上,我们有一个内置于.NET MVC的应用程序。它的当前后端是类库项目,数百名用户正在使用它。但不幸的是,类库的代码太杂乱了。我们打算用
添加相同的新功能,我有机会添加一个新的组件,以免增加类库的复杂性。

I needed an Expert advice about my below design. Actually, We have an application built in .NET MVC. it’s current backend is class library project and hundreds of users are using it. But unfortunately the class library’s code is too much cluttered. We intend to add new functionality for the same and I do have opportunity to add a new component to not to increase complexity in class library.


几个注意事项我们很快就计划扩展应用程序以供成千上万的用户使用此外,在不久的将来,我们打算为最终用户构建应用程序。

Couple of Considerations We soon plan to extend the application to be used by Thousand of users Also, In Near future, we intend to build App(s) for our end users.


那么可以更好的选择添加为新组件1)在现有类库中添加更多代码2)添加API

So what could be better option to add as a new component 1) Adding more code in existing class library 2) Adding an API


此外,后端组件的最新趋势是什么?使用类库或API

Also, what is latest trend for back end components ? using Class library or API


谢谢,

Sachin

推荐答案

根据您是否需要进行任何重构,可以将更多代码添加到现有类中。如果你必须重构很多代码,那么你可能想要解决问题。

Adding more code to your existing class may be fine depending on whether you need to do any refactoring. If you have to refactor a lot of code, then you may want to break things out.

如果你打算将应用程序扩展到成千上万的用户 - 那么你需要考虑性能,可扩展性,维护仅举几例。

If you are planning to extend your application to thousands of users - then you need to think about performance, scalability, maintenance to name a few.

我将实现  微服务架构, 
架构风格,将应用程序构建为以下服务集合:

I would implement a microservice architecture which is an architectural style that structures an application as a collection of services that are:


  • 高度可维护和可测试
  • 松散耦合
  • < li style ="">可独立部署
  • 围绕业务能力进行组织

过去几年我的所有项目都有一直遵循这种建筑风格。我的工作目标是Azure,但您仍然可以在非云环境中实施微服务。

All of my projects in the last few years have been following this architectural style. My work targets Azure, but you can still implement microservices in non-cloud environments.

在Azure上构建微服务


这篇关于.Net MVC应用程序架构的设计输入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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