What is the difference between framework and archi

2020-05-11 10:31发布

I would like to know the difference between framework and architecture.
for example: dotnetnuke is the framework and mvc is the architecture.

so if we take both of this as a example, can anyone tell me difference between them?
Want to know which one is using when and where?
Which is good in terms of user requirement satisfaction?

12条回答
Viruses.
2楼-- · 2020-05-11 10:54

Simply put -- architecture is theory, framework is implementation.

查看更多
Bombasti
3楼-- · 2020-05-11 10:55

Frameworks is a collection of classes and tools that help you developing great softwares ... like .net framework or Qt.
Architecture is entirely different : it refers to design pattern or how an application or a framework is organized. What are the modules that compose it and how they communicate together !

查看更多
趁早两清
4楼-- · 2020-05-11 10:59

Let me illustrate the difference.

Framework:

Framework

Architecture:

Architecture

查看更多
何必那么认真
5楼-- · 2020-05-11 10:59

Architecture is about style, abstract idea, flow, methodology, concept. Framework is something which implements the style, idea, concept etc..or makes it easier to implement it. example,

Architecture: Every component should have standard pluggable interfaces and it should be possible to connect any component to any other.

Framework: Then lego building blocks can be the framework.

Library: some readymade combinations of blocks that would work as the pillars.

Application: A building structure using the pillars and other building blocks(application).

查看更多
家丑人穷心不美
6楼-- · 2020-05-11 11:00

Also to note the difference between design and architecture:

Design: When you talk about what to do when a user logs in ?
Ex. Usability, portability, accessibility etc.

Architecture: When you talk about what to do when 5000 users logs in simultaneously ?
Ex. Scalability, reliability, availability, performance etc.

查看更多
来,给爷笑一个
7楼-- · 2020-05-11 11:05

MVC is pattern as supposed to an architecture, it may be used as a technique in your architecture though. Framework as others have said is a collection of tools you use to implement your architecture. In other words framework is the tool-belt.

查看更多
登录 后发表回答