what is the difference between 3 tier architecture and a mvc?

后端 未结 5 1436
不思量自难忘°
不思量自难忘° 2020-12-23 06:47

what is the difference between 3 tier architecture and a mvc ?

Are they same?

Both have 3 layers i.e model, views and controller

5条回答
  •  隐瞒了意图╮
    2020-12-23 07:46

    Their are similar in a way, like:

    • 3 tier divides the whole app in: UI, logic and data
    • MVC divides the UI part in: view (kind of UI of the UI), model (data) and controller (logic)

    But the difference comes from how the tiers communicate with each other:

    • 3-tier: anything goes through the logic tier (a->b, b->c and c->b, b->a)
    • MVC: they communicate 2 by 2, in a triangular way. (a->b, b->c, c->a)

提交回复
热议问题