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

An example Analysis of the General Development Framework for the Development of Wechat Public platform

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article is to share with you the content of sample analysis of a common development framework for the development of Wechat public platform. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

Existing commonly used service framework

Support a variety of business applications, we achieve it in a hierarchical way. The complex system is layered, and some functions or unique logic are encapsulated into different basic services or middleware. The business layer does not need to care about the specific implementation of the underlying layer, but can support powerful business applications by simply calling and assembling. This ensures hierarchical independence and makes the system easy to maintain and expand. On the basis of one platform, a variety of business applications can be built. Just like building a building, the foundation has been laid, and the building style can be varied. Also like cooking, a variety of ingredients are ready, you can carry out different combinations, you can make different delicacies. Commonly used frame structures: MVC, MVVM, etc. Here is the usual MVC architecture.

Wechat service framework

But the Wechat public platform is different from previous projects. Its implementation is no longer based on the underlying computer implementation. From the application level, it is necessary to encapsulate the upper layer of the business, that is, the display layer, the front-end logic layer and the communication layer. On the whole, the system supports all services through the design of a general Wechat service framework. The change of Wechat service framework is only related to the adjustment of Wechat interface. Multiple business systems share a Wechat service framework. Here is an implementation architecture. If there are any deficiencies, you are welcome to criticize and correct them.

1. Wechat service framework is responsible for interacting with Wechat server, including signature verification, message processing, message distribution, security policy, log processing, etc.

2. Through the service interface, the Wechat service framework is separated from the business logic. Through service registration, the business service is registered with the Wechat service framework.

3. Invoke specific business applications through the service distributor of Wechat service framework.

4. Business applications can be newly developed, or based on the existing business logic, encapsulate relevant services and provide corresponding Provider to support Wechat interfaces.

The specific frame diagram is as follows:

Some humble opinions on the implementation of Information system in the Future

Just some personal opinions.

From the long-term development of a business system, there will be many UI end of a set of business system. In particular, with the development of mobile Internet, many functions need to be mobile, and the previous PC side and Web side have a little limitation.

There is also the development and deepening of cloud computing, and our business services can also be deployed in the cloud. All these pose challenges to the traditional information system.

How to separate the business system from the front-end presentation?

How to support multiple terminals?

Can you achieve a set of business logic and multi-end presentation?

Whether it is to develop new systems and new applications, or to expand on existing systems, these problems must be seriously considered. Business logic needs to be more detailed and independent, and business logic needs to be extracted from the front end. In order to adapt to a variety of terminal applications, some adaptation layers and proxy layers may need to be added. Although it is very difficult, but in this period of rapid development of information technology, if we do not comply with the trend, it is bound to be eliminated by the times. Therefore, change is inevitable. The future information system development framework may become as shown in the following figure. This is just a simple outline, which will be discussed later.

Thank you for reading! This is the end of the article on "sample Analysis of the General Development Framework for the Development of Wechat Public platform". I hope the above content can be of some help to you, so that you can learn more knowledge. If you think the article is good, you can share it for more people to see!

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