An information-based development system based on a web framework, a computer device, and a computer program product
Through a hierarchical architecture based on the Web framework, the problem of insufficient efficiency and security in the information development system is solved, and efficient and secure information development is achieved.
Patent Information
- Application Number
- CN202510519628.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-24
- Publication Date
- 2025-07-08
- Estimated Expiration
- 2045-04-24
AI Technical Summary
The development efficiency of existing information development systems is low, and the system performance and security are poor.
Using an information development system based on the Web framework, the hierarchical architecture of the development bus, user plane mapping layer, intermediate layer and Django architecture layer is used to realize request classification and data interaction, improve development efficiency and ensure system performance and security.
Significantly improve development efficiency, ensure system performance and security, and support cross-platform applications.
Smart Images

Figure CN120034530B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of new generation information technology, and particularly relates to an information-based development system based on a web framework, a computer device, and a computer program product. Background Art
[0002] As a software architecture widely used currently, the web framework is increasingly influencing all aspects of Internet web interaction. The web framework, full name Web Application Framework, is a software architecture for building web applications. It provides developers with a set of standardized development models and tool sets, aiming to simplify the development process of web applications. In the early stage of web development, developers needed to implement various functions from the bottom layer, such as HTTP request processing, data interaction, etc., which was not only time-consuming but also error-prone. The emergence of the web framework has changed this situation. By encapsulating the underlying details, it enables developers to focus on the implementation of business logic, thus developing dynamic websites, web applications, and web services more efficiently. For example, the Django framework provides a powerful ORM system, enabling developers to easily complete database operations without directly writing SQL statements.
[0003] The core functions of the web framework are mainly reflected in the following aspects: First, it can directly handle HTTP requests and responses. This means that developers can quickly generate code for handling HTTP requests through the concise syntax provided by the framework without delving into the underlying network protocols. Second, the web framework provides an efficient routing mechanism that can map different URLs to corresponding processing functions. This not only improves the maintainability of the code but also enables developers to design the architecture of the website more flexibly. In addition, the framework simplifies the data access process. Through the built-in template engine, developers can easily combine dynamic data with HTML templates to generate user interfaces. The integration of these functions greatly reduces the development workload, improves the development efficiency, and also reduces the development difficulty.
[0004] In practical applications, Web frameworks are widely used in Web development projects of various scales. For small projects, such as personal blogs or small business websites, Web frameworks can help developers quickly build a basic website architecture and implement data display and user interaction functions. For large and complex projects, such as e-commerce platforms or enterprise-level applications, Web frameworks provide powerful support, including advanced functions such as user authentication, permission management, and data caching. Taking the Flask framework in Python as an example, it is widely used in various Web development scenarios due to its lightweight and flexibility. Developers can easily implement various complex functions by using the rich extensions provided by Flask. In addition, Web frameworks support multiple programming languages and development environments, which allows developers to choose the appropriate framework according to project requirements and personal preferences.
[0005] On this basis, system development based on Web frameworks is also in the ascendant. System development based on Web frameworks is a method of using ready-made Web frameworks to build and deploy web applications. The core of this method lies in using the abstraction layer and toolset provided by the framework to simplify the development process and improve development efficiency. By following the conventions and patterns of the framework, developers can quickly build the basic architecture of the application, including routing control, data models, user interfaces, and business logic. This development method not only reduces the need to write code from scratch but also enhances the stability and security of the application through the built-in functions of the framework, such as security, database interaction, and session management.
[0006] In system development based on Web frameworks, developers usually adopt the MVC (Model-View-Controller) or similar architectural patterns to organize the code. This pattern separates different concerns of the application, making the code more modular and easier to manage and maintain. The model is responsible for handling data and business rules, the view is responsible for presenting data, and the controller acts as a mediator between the model and the view, handling user input and updating the model. In this way, developers can more easily carry out team collaboration, and at the same time, it also makes the testing and debugging of the application more efficient. In addition, system development based on Web frameworks also emphasizes the reusability and scalability of the code. The framework usually provides a series of libraries and plugins that can be shared and reused by different projects, thus reducing development time and costs. At the same time, as the application grows and requirements change, the modular design of the framework makes it easier to add new functions or modify existing functions. This flexibility is the key to quickly responding to market changes and technological progress. In short, system development based on Web frameworks not only accelerates the development process but also helps developers build more robust, maintainable, and scalable web applications by providing a set of mature solutions.
[0007] The present invention provides an information development system based on a web framework, which executes web application generation in a development mode with separate front-end and back-end and interoperability. First, based on the decomposition of system functions, the present invention establishes a fitting development bus, maps the development functions to the bus architecture, and separates the two major system development elements of data processing and function implementation. Secondly, the user plane mapping layer is used to provide front-end system functions and connect to the middle layer to achieve clustering of user data and user requests. Thirdly, the present application adopts the Django architecture as the basic logic for system back-end processing. On this basis, a multi-modal system processing back-end for matching request classification is preferably introduced compared with the prior art, and different types of user plane requests are refined, and an orderly request data processing logic is completed. By reasonably selecting the Web framework, the development efficiency is significantly improved, the system performance and security are ensured, and cross-platform applications are supported. Summary of the Invention
[0008] Aiming at the disadvantages of low development efficiency, poor system performance and security in the information development system in the prior art, the present invention aims to provide an information development system, a computer device and a computer program product based on a web framework that are superior to the prior art. By reasonably selecting the Web framework, the development efficiency is significantly improved, the system performance and security are ensured, and cross-platform applications are supported.
[0009] To achieve the above object, the technical solution of the present invention is as follows:
[0010] An information development system based on a web framework, the system includes:
[0011] A fitting development bus, which is used to execute the development of an information system based on a web framework in a bus mode, establish a web framework fitting bus, and configure the network element architecture of the web framework fitting bus;
[0012] A user plane mapping layer, which is used to construct a user interaction framework, provide user interaction functions, and convert the user's interaction into a user request in a component-based development manner and transmit it to the middle layer;
[0013] A middle layer, which receives the user requests from the user plane mapping layer, performs request association, and based on the request association result, transmits the request cluster to the first Django architecture layer;
[0014] A first Django architecture layer, which is used to execute back-end request processing and data interaction based on a web framework;
[0015] A second Django architecture layer, which is used to execute the processing and data interaction of the second type of requests based on a web framework;
[0016] The web framework regulation layer generates a web application that conforms to the corresponding functional layer architecture and performs automatic testing based on the request processing logic configured in the fitting development bus.
[0017] Preferably, specific network elements of the web framework fitting bus correspond to specific functional layers of the front end or the back end;
[0018] Preferably, the first Django architecture layer classifies the user request clusters mapped by the front end into first-class user requests and second-class user requests; the first Django architecture layer retains the first-class user requests and passes the first-class user requests to the request processing module of the first Django architecture layer; the first Django architecture layer also forwards the second-class user requests to the second Django architecture layer;
[0019] Preferably, the web framework fitting bus is set as a bus-style web system architecture, the main data transmission route is set as the total line route, and each layer of data interaction is a functional network element connected to the total line route, where:
[0020] The interaction request flow is fitted into the signaling flow of the bus;
[0021] The data processing and transmission are fitted into the data processing and data flow of the bus.
[0022] Preferably, the first-class user requests are requests in the request cluster that are associated and not associated with other requests;
[0023] The second-class user requests are requests in the request cluster that are associated with other requests.
[0024] Preferably, the associated requests in the request cluster are requests that other requests need to call in this cluster of requests.
[0025] Preferably, the requests in the request cluster that are associated with other requests are requests that need to call other requests in this cluster of requests.
[0026] Preferably, the system further includes a web framework regulation layer that generates a web application that conforms to the corresponding functional layer architecture and performs automatic testing based on the request processing logic configured in the fitting development bus.
[0027] Preferably, the first Django architecture layer retains the first-class user requests and passes the first-class user requests to the request processing module of the first Django architecture layer, specifically:
[0028] The first Django architecture layer extracts the associated information of the first type of user requests, marks the associated requests, and provides data processing services and request response mechanisms for the first type of user requests, generates the first type of response information for the first type of user requests, and generates an associated processing completed flag for the associated requests of the first type of user requests, attaches it to the first type of response information, and transmits it to the second Django architecture layer.
[0029] Preferably, the second Django architecture layer is used to execute the second type of request processing and data interaction based on the web framework. Specifically: the second Django architecture layer extracts the associated information of the second type of user requests, and receives the first type of response information. According to the request ID of the second type of user requests, trace back to the associated first type of user request ID, match the associated request of the first type of user requests in the first type of response information to generate an associated processing completed flag, and confirm whether the corresponding first type of user requests have been processed. If so, process the second type of user requests in real time; if not, suspend the corresponding thread, feedback the signaling to be processed to the first Django architecture layer, and wait for the first Django architecture layer to complete the processing of the corresponding first type of user requests.
[0030] At the same time, the present invention also proposes a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. The characteristic is that when the processor executes the program, it implements the information-based development system based on the web framework as described above.
[0031] At the same time, the present invention also proposes a computer program product. The computer program product contains computer instructions. When the computer instructions are run through the processor, they execute the corresponding functions of the information-based development system based on the web framework as described above.
[0032] The present invention proposes an information-based development system based on the web framework, and executes web application generation in a development mode with separate front-end and back-end and interconnection. The present invention first builds a fitting development bus based on system function decomposition, maps the development functions to the bus architecture, and separates the two major system development elements of data processing and function implementation; secondly, uses the user plane mapping layer to provide front-end system functions and connects to the middle layer to achieve clustering of user data and user requests. Thirdly, this application uses the Django architecture as the basic logic for system back-end processing. On this basis, a multi-modal system processing back-end for matching request classification is preferably introduced compared with the prior art, and different types of user plane requests are refinedly processed to achieve an orderly request data processing logic. By reasonably selecting the Web framework, the development efficiency is significantly improved, the system performance and security are ensured, and cross-platform applications are supported. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1It is a basic example diagram of the information-based development system based on the web framework shown in the present invention;
[0034] Figure 2 It is a basic example diagram of the fitting development bus in the information-based development system based on the web framework shown in the present invention;
[0035] Figure 3 It is an example diagram of the interconnection between the first Django architecture layer and the second Django architecture layer in the information-based development system based on the web framework claimed in the present invention;
[0036] Figure 4 It is one of the embodiments of the interaction between the user plane mapping layer and the middle layer of the information-based development system based on the web framework claimed in the present invention;
[0037] Figure 5 It is one of the specific embodiments of the interaction between the fitting development bus and the web framework regulation layer of the information-based development system based on the web framework claimed in the present invention. Detailed implementation manners
[0038] The following specifically describes several embodiments and beneficial effects of the information-based development system and method based on the web framework claimed in the present invention, which helps to conduct a more detailed review and decomposition of the present invention.
[0039] To better understand the technical solution of the present invention, the embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
[0040] It should be clear that the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts belong to the scope of protection of the present invention.
[0041] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms of "a", "the" and "said" used in the embodiments of the present invention and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.
[0042] It should be understood that the term " / and / " used herein is only a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " herein generally represents an "or" relationship between the associated objects before and after.
[0043] It should be understood that although the terms first, second, etc. may be used in the embodiments of the present invention to describe methods and corresponding devices, these keywords should not be limited to these terms. These terms are only used to distinguish the keywords from each other. For example, without departing from the scope of the embodiments of the present invention, the second Django architecture layer, etc. may also be referred to as the first Django architecture layer, and the first Django architecture layer, etc. may also be referred to as the second Django architecture layer.
[0044] Depending on the context, the word "if" as used herein can be interpreted as "when" or "while" or "in response to determining" or "in response to detecting". Similarly, depending on the context, the phrase "if determined" or "if detected (stated condition or event)" can be interpreted as "when determined" or "in response to determining" or "when detected (stated condition or event)" or "in response to detecting (stated condition or event)".
[0045] As Figures 1-5 shown, it is a basic example diagram of an information development system based on a web framework shown in the present invention. As a preferred embodiment that can be superimposed, preferably, each node or module can perform data interconnection and instruction transmission with other nodes or modules. Of course, as another preferred embodiment that can be superimposed, some nodes may not have interconnection with some other nodes or may be allowed to be closed, opened, and interconnected with other nodes.
[0046] As Figures 1-4 shown, it is one of the embodiments of the information development system based on a web framework and its specific included modules and interconnection relationships claimed in the present invention. The system includes:
[0047] A fitting development bus, which is used to execute the development of an information system based on a web framework in a bus mode, establish a web framework fitting bus, and configure the network element architecture of the web framework fitting bus;
[0048] A user plane mapping layer, which is used to construct a user interaction framework, provide user interaction functions, and convert the user's interaction into a user request in a component-based development manner and transmit it to the middle layer;
[0049] A middle layer, which receives the user request from the user plane mapping layer, performs request association, and based on the request association result, transmits the request cluster to the first Django architecture layer;
[0050] As a preferable stackable embodiment, the intermediate layer receives user requests from the user plane mapping layer, performs request association, and based on the request association result, transmits the request cluster to the first Django architecture layer. Specifically: The intermediate layer receives user requests from the user plane mapping layer, and determines which requests need to call other uninitiated or initiated requests. That is, the execution of request Req(i) requires calling Req(j), where i and j are sequence numbers. Among them, Req(j) is the request to be associated and invoked, and Req(j) may also be one of the user requests from the user plane mapping layer, or a request automatically called by the system during the execution process. Then Req(i) and Req(j) will be associated into a request cluster. Among them, Req(j) will be classified as the first type of user request later, and Req(i) will be classified as the second type of user request later. Similarly, if the execution of Req(j) necessarily calls Req(k), then Req(k) is also included in this request cluster, and Req(k) will also be classified as the first type of user request later.
[0051] The first Django architecture layer uses Django to implement the backend interaction of the web framework. The first Django architecture layer is used to execute backend request processing and data interaction based on the web framework;
[0052] The second Django architecture layer is used to execute the second type of request processing and data interaction based on the web framework;
[0053] The web framework regulation layer generates a web application that conforms to the corresponding functional layer architecture and performs automatic testing based on the request processing logic configured in the fitting development bus.
[0054] As a preferable stackable embodiment, a specific network element of the web framework fitting bus corresponds to a specific functional layer of the front end or the back end;
[0055] As another preferable stackable embodiment, the first Django architecture layer classifies the user request cluster mapped by the front end into the first type of user request and the second type of user request; the first Django architecture layer retains the first type of user request and passes the first type of user request to the request processing module of the first Django architecture layer; the first Django architecture layer also forwards the second type of user request to the second Django architecture layer;
[0056] As another preferable stackable embodiment, the web framework fitting bus is set as a bus-type web system architecture, the main data transmission route is set as the main line route, and each layer of data interaction is a functional network element connected to the main line route. Among them:
[0057] Fit the interaction request flow to the signaling flow of the bus;
[0058] Fit the data processing and transmission to the data processing and data flow of the bus.
[0059] As another superimposable preferred embodiment, the first type of user request is the request in the request cluster that is associated and not associated with other requests;
[0060] The second type of user request is the request in the request cluster that is associated with other requests.
[0061] As another superimposable preferred embodiment, the associated request in the request cluster is the request that other requests need to call among the requests in the cluster.
[0062] As another superimposable preferred embodiment, the request in the request cluster that is associated with other requests is the request that needs to call other requests among the requests in the cluster.
[0063] As another superimposable preferred embodiment, the system further includes a web framework regulation layer, and the web framework regulation layer generates a web application that conforms to the corresponding functional layer architecture and executes automatic testing based on the request processing logic configured in the fitting development bus.
[0064] Preferably, the first Django architecture layer retains the first type of user request and passes the first type of user request to the request processing module of the first Django architecture layer. Specifically:
[0065] The first Django architecture layer extracts the association information of the first type of user request, marks the associated request, provides a data processing service and a request response mechanism for the first type of user request, generates the first type of response information of the first type of user request, and generates an association processing completed flag for the associated request of the first type of user request, attaches it to the first type of response information, and passes it to the second Django architecture layer.
[0066] As another superimposable preferred embodiment, the second Django architecture layer is used to execute the second type of request processing and data interaction based on the web framework. Specifically: the second Django architecture layer extracts the association information of the second type of user request, receives the first type of response information, traces the associated first type of user request ID according to the request ID of the second type of user request, matches the associated request of the first type of user request in the first type of response information to generate an association processing completed flag, confirms whether the corresponding first type of user request has been processed, and if so, processes the second type of user request in real time; if not, suspends the corresponding thread, feeds back the signaling to be processed to the first Django architecture layer, and waits for the first Django architecture layer to complete the processing of the corresponding first type of user request.
[0067] Meanwhile, the present invention also provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein when the processor executes the program, it implements the information development system based on a web framework as described above.
[0068] Meanwhile, the present invention also provides a computer program product, which contains computer instructions that, when run through a processor, execute the corresponding functions of the information development system based on a web framework as described above.
[0069] The present invention provides an information development system based on a web framework, which executes web application generation in a development mode with separate front-end and back-end interoperability. First, based on the decomposition of system functions, the present invention establishes a fitting development bus, maps the development functions to the bus architecture, and separates the two major system development elements of data processing and function implementation. Secondly, a user plane mapping layer is used to provide front-end system functions and connect to the middle layer to achieve clustering of user data and user requests. Thirdly, the present application adopts the Django architecture as the basic logic for system back-end processing. On this basis, a multi-modal system processing back-end for matching request classification is preferably introduced compared with the prior art, and different types of user plane requests are refinedly processed to implement an orderly request data processing logic. By reasonably selecting a Web framework, the development efficiency is significantly improved, the system performance and security are ensured, and cross-platform applications are supported.
[0070] In all the above embodiments, to meet the requirements of some special data transmission, read / write functions, additional devices, modules, components, hardware, pin connections, or differences in memory and processors can be added to the above method operation process and its corresponding device to expand functions.
[0071] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the above-described methods, devices, and units can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein.
[0072] In several embodiments provided by the present invention, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the method steps is only a logical or functional division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces, and the indirect couplings or communication connections of devices or units can be in electrical, mechanical, or other forms.
[0073] Each unit described as a step of the method or a separated component of the device may or may not be logically or physically separated, nor is it necessarily a physical unit. That is, it may be located in one place or distributed over multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0074] In addition, each method step and its implementation and functional unit in various embodiments of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a hardware plus a software functional unit.
[0075] The above-mentioned method and device, which are integrated units that can be implemented in the form of software functional units, can be stored in a computer-readable storage medium. The above-mentioned software functional unit stored in a storage medium includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to execute some steps of the method described in various embodiments of the present invention. The foregoing storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), NVRAMs, magnetic disks, or optical discs.
[0076] The above are only the preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included within the scope of protection of the present invention.
[0077] It should be noted that: the above embodiments are only used to more clearly explain and elaborate the technical solution of the present invention, rather than limiting it; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements on some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims
1. An information-based development system based on a web framework, characterized in that: The system includes: A fitting development bus, which is used to execute the development of an information system based on a web framework in a bus mode, establish a web framework fitting bus, configure the network element architecture of the web framework fitting bus, transform the interaction request flow into the signaling flow of the bus, and fit the data processing and transmission into the data processing and data flow of the bus; A user plane mapping layer, which is used to construct a user interaction framework, provide user interaction functions, and transform the user's interaction into a user request in a componentized development manner and transfer it to the middle layer; A middle layer, which receives the user requests from the user plane mapping layer and performs request association. Based on the request association result, it transmits the request cluster to the first Django architecture layer; A first Django architecture layer, which is used to execute the backend request processing and data interaction based on the web framework; the first Django architecture layer classifies the user request cluster mapped by the front end into a first type of user request and a second type of user request; the first Django architecture layer retains the first type of user request and transfers the first type of user request to the request processing module of the first Django architecture layer; the first Django architecture layer also forwards the second type of user request to the second Django architecture layer; A second Django architecture layer, which is used to execute the second type of request processing and data interaction based on the web framework; The first type of user request is the request in the request cluster that is associated and not associated with other requests; The second type of user request is the request in the request cluster that is associated with other requests.
2. The information development system based on the web framework according to claim 1, wherein: Among them, The specific network element of the web framework fitting bus corresponds to the specific function layer of the front end or the back end; The web framework fitting bus is a bus-style web system architecture, and the main data transmission route is set as the main line route, and each layer of data interaction is a functional network element connected to the main line route.
3. The information development system based on the web framework according to claim 2, wherein: The associated request in the request cluster is the request that other requests in the request cluster need to call.
4. The information development system based on the web framework according to claim 3, wherein: The request in the request cluster that is associated with other requests is the request that needs to call other requests in the request cluster.
5. The information development system based on the web framework according to claim 4, wherein: The system further includes a web framework regulation layer, which generates a web application that conforms to the corresponding functional layer architecture and performs automatic testing based on the request processing logic configured in the fitting development bus.
6. The information development system based on the web framework according to claim 3, wherein: The first Django architecture layer retains the first type of user request and transfers the first type of user request to the request processing module of the first Django architecture layer, specifically: The first Django architecture layer extracts the associated information of the first type of user requests, marks the associated requests, and provides data processing services and request response mechanisms for the first type of user requests, generates the first type of response information for the first type of user requests, and generates an associated processing completed flag for the associated requests of the first type of user requests, attaches it to the first type of response information, and transmits it to the second Django architecture layer.
7. The information-based development system based on a web framework according to claim 6, wherein: The second Django architecture layer is used to execute the second type of request processing and data interaction based on the web framework, specifically: The second Django architecture layer extracts the associated information of the second type of user requests, receives the first type of response information, traces the associated first type of user request ID according to the request ID of the second type of user requests, matches the associated processing completed flag generated by the associated requests of the first type of user requests in the first type of response information, and confirms whether the corresponding first type of user requests have been processed. If so, it processes the second type of user requests in real time; if not, it suspends the corresponding thread, feedbacks the signaling to be processed to the first Django architecture layer, and waits for the first Django architecture layer to complete the processing of the corresponding first type of user requests.
8. A computer device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that: When the processor executes the program, it implements the information-based development system based on the web framework as described in any one of claims 1-7.
9. A computer program product, the computer program product comprising computer instructions, characterized in that: When the computer instructions run through the processor, they execute the functions of the information-based development system based on the web framework as described in any one of claims 1-7.
Citation Information
Patent Citations
E-commerce information processing platform based on web3
CN118885206A