ASP.net Web 架构中的混乱
一点背景知识:
大约 5 年前,我开始了我的职业生涯,作为一名使用 ASP.net 和 C# 的 Web 开发人员,在担任 Web 开发人员仅一年后,我转向了低级编程(即 C/C++)世界。 现在,从过去 4 年开始,我一直在 C/C++ 领域工作。
目前,我被分配了一项开发大型 Web 应用程序的任务(大规模是指大量用户可能以百万计,并且这些用户之间存在大量通信,例如通信)在 Twitter 或 Facebook 上,显然还有一个巨大的后端数据库)。 由于我从事 ASP 和 C# 工作,所以我更喜欢使用 ASP.net 和 C# 来开发这个应用程序。
我的问题:
目前该项目正处于需求收集阶段,同时我被分配了一项设计其架构的任务。现在我谷歌搜索各种架构资源并遇到以下内容:
- MVP
- MVC
- 三轮胎架构(我在 5 年前使用的一个)
- 请多提一些,如果存在的话,因为我只找到这 3 个
现在我完全对前两个感到困惑,因为某些网站提一下,如果我使用 MVC,那么我就不允许使用 WEb 表单,等等。 。 。
其次,有些网站也提到了 SOAP 和 REST,但我觉得我无法与 ASP.net 和 C#(使用 .Net Framwork 4.0)一起使用。
首先,我要
提前道歉,因为我觉得这一切都引起了混乱,因为我拥有 C/C++ 经验而不是 Web 开发经验。 其次,我知道没有人为我完成工作,即使我不想这样做,我只需要良好的指导,即从哪里开始,我应该学习哪些资源等。
A little Background:
I started my career almost 5year ago as a web developer using ASP.net and C#, after working as a web developer for only a year i switched to the world of low level programming (i.e C/C++).
Now, from last 4 years i have been working in c/c++
At present i have been assigned a task to develop a large scale web application (by large scale i mean large number of users probably in million and huge communication among those user like communication at twitter or facebook and obviously a huge backend database aswell).
Since i worked in ASP and C#, so i will prefer to develop this application using ASP.net and C#
My Question:
Currently the project is in requirement gathering phase and in the meanwhile i am assigned a task to design its architecture. Now i google various architecture resources and came across following:
- MVP
- MVC
- Three Tire Architecture (One which i use 5 year back)
- Please mention some more, if there exist coz i only find those 3
Now i am totally confused with first two because some site mention that if i use MVC then i am not allowed to use WEb forms, and many more . . .
Secondly some sites also mention SOAP and REST but i feel that i am not able to use with ASP.net and C# (with the .Net Framwork 4.0)
What i Want
First, i appologise in advance coz i feel this all confusion arise because i have experience in C/C++ rather than web development.
Secondly, i know that no one did the job done for me and even i don't want to do so, i only need good guidence i.e where to start with, what resources should i study etc.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该网站是基于 MVC 构建的。
MVP 更适合较旧的 ASP.NET 技术(例如 WebForms),但可能会很麻烦。
三层架构更多的是一个整体系统架构,其中有数据库、服务公开数据库和使用数据库的消费者。有时,它也指将应用程序分为三层,例如数据、业务和演示。 MVC 和 MVP 只是 UI 模式。
现在,你希望有人告诉你使用什么,这是不可能的,因为我们只有一小块图片。然而,在设计应用程序时,我总是更喜欢 MVC 和高度面向对象的实践,除非要快速制作一些东西。
互联网上有很多关于所有这些技术的教程,您应该先熟悉它们,然后再决定使用哪一种。
This site is build on MVC.
MVP is more suitable for older ASP.NET technology like WebForms, but can be a pain.
Three
Tier
Architecture is more a overall system architecture where you have a database, service exposing database, and consumers using the database. Sometimes it also refers when you separate your app in three layers, like data, business and presentation. MVC and MVP are just UI patterns.Now, you want someone to tell you what to use, which is impossible, because we have only tiny piece of picture. However, I would always prefers MVC and heavily object-oriented practices when designing the application, except when something to be put fast is to be made.
The Internet is full on tutorials on all these technologies, you should familiarize yourself first with them, and then decide which one to use.