Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to realize Web Server, Business Server and Database Server by Asp.net

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly introduces Asp.net how to achieve Web server, business server, database server, the article is very detailed, has a certain reference value, interested friends must read!

Enterprise-level projects, from the beginning did not think of what kind of huge http://www.php.cn/css/css-rwd-frameworks.html" target= "_ blank" > framework, because the initial pressure will not be very great. So scalability has become the core requirement.

The traditional three-tier structure. Application layer, business logic layer, data persistence layer. In view of the need to separate the server to reduce the pressure on the server, it is divided into Web server, business server and database server; and the reasonable and smooth call of the data logic between the three, especially the front and rear, is the key point that I need to record.

Web

Frontend application service, request api API to obtain data rendering page.

1. Build MVC framework, introduce common Model and interface call class library.

two。 Use the bootstrap framework to build a front-end page framework that gives priority to mobile.

3. According to the business needs, call the backend interface and render the page.

Web Api (logical Services)

The build provides a stateless interface based on Http to handle interactive requests on the web. There are the following key aspects:

1. On the premise that the interface is stateless, the permission level and corresponding legitimacy of the request are judged. (rewrite the Http request, plus the legitimacy judgment of the request, AOP-like aspect judgment)

two。 Provide or according to a unified data model for smooth interaction between front and rear. The request and return model of Entity to build the dependency inversion relationship. Simplify the uniform request code)

3. Access the database, logically process, and persist the data to the database.

SqlServer database

Ibatis is used as the orm framework to improve the freedom and expansibility under the premise of database interaction efficiency and concise code writing.

These are all the contents of the article "how Asp.net implements Web server, business server and database server". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report