Function expansion method, device, equipment and medium of distributed business system
By providing function expansion pages and expansion package management modules in distributed business systems, users can build and store expansion packages, render front-end and execute back-end function files, solving the risk and high cost of function expansion in distributed systems, and achieving Efficient and reliable extension effects.
Patent Information
- Application Number
- CN202310377130.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-10
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2043-04-10
AI Technical Summary
Existing technologies are risky and costly when extending functions in distributed business systems. In particular, the update method for a single business system is difficult to apply to distributed systems, and the expansion results are less effective.
By providing function extension pages in distributed business systems, users build target extension packages and store them in unified file storage, obtain and render front-end function files, send extension requests to the target service node, and execute back-end function files through the node to achieve Functional expansion without system updates.
Without updating the distributed business system, the reliability of function expansion is achieved, the difficulty and time-consuming of expansion package development is reduced, and the management efficiency and the accuracy, applicability and management efficiency of expansion results are improved.
Smart Images

Figure CN116360892B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a function expansion method, device, equipment and medium for a distributed business system. Background Art
[0002] With the development of technologies such as the Internet and big data, all industries are building corresponding business systems and continuously transforming traditional offline businesses into information and network-based ones. The increase in business represents the growth of data volume and traffic, so the construction of business systems has evolved from early single applications to today's distributed web systems. In a distributed environment, in order to meet a variety of business needs, it is usually necessary to expand the functions of the system.
[0003] In the related technology, the business system can be updated to achieve extended functions, thereby improving the expansion efficiency of system functions, but this update method has certain risks and costs. In order to solve this problem, the existing technology can standardize the update process or adopt mature deployment methods (such as containerization) to improve the expansion efficiency of the business system and achieve rapid rollback.
[0004] However, the above method can only reduce the risks and costs brought by system updates to a certain extent; secondly, the business system update method is usually only applicable to single business systems. For distributed business systems, the update process is more complicated and the effectiveness of functional expansion results is low. Summary of the invention
[0005] The present invention provides a method, device, equipment and medium for function expansion of a distributed business system, which can realize function expansion of application components without updating the distributed business system, thereby ensuring the reliability of the function expansion result.
[0006] According to one aspect of the present invention, a method for extending the function of a distributed service system is provided, comprising:
[0007] Displaying a function extension page corresponding to a distributed business system; the distributed business system includes different application components corresponding to multiple different business types;
[0008] In response to a target extension package corresponding to a target application component constructed by a user according to the function extension page, a front-end function file and a back-end function file corresponding to the target extension package are stored in a unified file storage;
[0009] In response to a user's extension request for a target application component, a front-end function file is obtained from the file storage, a front-end page corresponding to the target application component is rendered, and the extension request is sent to a target service node;
[0010] The backend function file is obtained and executed from the file storage through the target service node.
[0011] Optionally, in response to the user constructing a target extension package corresponding to the target application component according to the function extension page, the target extension package includes:
[0012] Displaying multiple application components in the distributed business system that meet the function extension conditions to the user through a function extension page;
[0013] In response to a target application component selected by a user on the function extension page, a plurality of extension templates corresponding to the target application component are displayed to the user;
[0014] In response to an extension package generated by a user according to a target extension template, the extension package is used as a target extension package corresponding to a target application component.
[0015] Optionally, before storing the front-end function file and the back-end function file corresponding to the target extension package in a unified file storage device, the method further includes:
[0016] Parsing the target extension package to obtain target extension function information, front-end function files, and back-end function files corresponding to the target extension package;
[0017] After storing the front-end function files and the back-end function files corresponding to the target extension package in a unified file storage device, the method further includes:
[0018] The target extension function information corresponding to the target extension package is stored in a unified database.
[0019] Optionally, in response to a user's extension request for a target application component, obtaining a front-end function file from the file storage device and rendering a front-end page corresponding to the target application component include:
[0020] In response to the target application component selected by the user, all extended function information corresponding to the target application component is acquired from the database, and all the extended function information is displayed to the user;
[0021] In response to a user selecting a target extended function information from all extended function information, acquiring a front-end function file matching the target extended function information from the file storage;
[0022] According to the front-end function file, a front-end page corresponding to the target application component is rendered.
[0023] Optionally, before sending the extension request to the target service node, the method further includes:
[0024] Obtain all service nodes corresponding to the distributed business system;
[0025] Use a load balancing strategy to determine the target service node among all service nodes.
[0026] Optionally, obtaining and executing the backend function file from the file storage through the target service node includes:
[0027] Obtaining a backend function file from the file storage device through the target service node, and determining an extended function execution environment corresponding to the distributed business system;
[0028] Through the target service node, according to the extended function execution environment, the backend function file is converted into a corresponding operation command, and the operation command is executed.
[0029] Optionally, after acquiring and executing the backend function file from the file storage through the target service node, the method further includes:
[0030] Obtaining the function execution result corresponding to the target extension package, and storing the function execution result in a unified database;
[0031] In response to a user's request for obtaining the function execution result, the function execution result is presented to the user in a visual interface.
[0032] According to another aspect of the present invention, a function expansion device for a distributed service system is provided, the device comprising:
[0033] A display module, used to display a function extension page corresponding to a distributed business system; the distributed business system includes different application components corresponding to multiple different business types;
[0034] An extension package management module, configured to respond to a target extension package corresponding to a target application component constructed by a user according to the function extension page, and store the front-end function files and back-end function files corresponding to the target extension package in a unified file storage;
[0035] The extended function loading module is used to respond to the user's extension request for the target application component, obtain the front-end function file from the file storage, render the front-end page corresponding to the target application component, and send the extension request to the target service node;
[0036] The function execution module is used to obtain and execute the backend function file from the file storage through the target service node.
[0037] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0038] at least one processor; and
[0039] a memory communicatively connected to the at least one processor; wherein,
[0040] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the function expansion method of the distributed business system described in any embodiment of the present invention.
[0041] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the function expansion method of the distributed business system described in any embodiment of the present invention when executed.
[0042] According to another aspect of the present invention, a computer program product is provided. The computer program product includes a computer program. When the computer program is executed by a processor, the function expansion method of the distributed business system described in any embodiment of the present invention is implemented.
[0043] The technical solution provided by the embodiment of the present invention displays the function extension page corresponding to the distributed business system; in response to the target extension package constructed by the user according to the function extension page, the front-end function file and the back-end function file corresponding to the target extension package are stored in a unified file storage device; in response to the user's extension request for the target application component, the front-end function file is obtained from the file storage device to render the front-end page, and the extension request is sent to the target service node; the technical means of obtaining and executing the back-end function file from the file storage device by the target service node can realize the function extension of the application component without updating the distributed business system, thereby ensuring the reliability of the function extension result; reducing the difficulty of developing the extension package and saving the time of developing the extension package; facilitating the user to manage the extension package in the distributed business system; facilitating the user to ensure the successful parsing of the target extension package and improving the accuracy of the function extension result; realizing the uniform scheduling of the function extension tasks of the distributed business system and the reasonable allocation of service resources; improving the applicability of the function extension method of the distributed business system; and improving the user's management efficiency of the extended function in the distributed business system.
[0044] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0046] Figure 1 is a flow chart of a function expansion method of a distributed business system provided according to an embodiment of the present invention;
[0047] Figure 2 is a flowchart of another method for extending the function of a distributed business system provided in an embodiment of the present invention;
[0048] Figure 3 is a flowchart of another method for extending the function of a distributed business system provided in an embodiment of the present invention;
[0049] Figure 4 is a structural schematic diagram of a function expansion device for a distributed business system provided according to an embodiment of the present invention;
[0050] Figure 5 It is a structural diagram of an electronic device for implementing the function expansion method of the distributed business system according to an embodiment of the present invention. DETAILED DESCRIPTION
[0051] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0052] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0053] Figure 1This is a flow chart of a method for extending the functions of a distributed business system provided by an embodiment of the present invention. This embodiment is applicable to the case of extending the functions of a distributed business system. The method can be executed by a function extension device of a distributed business system. The function extension device of the distributed business system can be implemented in the form of hardware and / or software. The function extension device of the distributed business system can be configured in a terminal with data processing function. Figure 1 As shown, the method includes:
[0054] Step 110: Display a function extension page corresponding to a distributed business system; the distributed business system includes different application components corresponding to multiple different business types.
[0055] In this embodiment, the application component may be an application program that implements a specific function in the distributed business system. Optionally, if it is detected that the user triggers a function extension request for the distributed business system, the function extension page corresponding to the distributed business system may be displayed to the user.
[0056] Specifically, the function extension page may include a language execution environment (such as Java or Python, etc.) supported by the distributed business system, as well as an extension interface, etc.
[0057] Step 120 , in response to the target extension package corresponding to the target application component constructed by the user according to the function extension page, the front-end function file and the back-end function file corresponding to the target extension package are stored in a unified file storage device.
[0058] In a specific embodiment, if the user needs to expand the target application component, the target extension package corresponding to the target application component can be constructed through the extension interface on the function extension page. Specifically, the target extension package includes compressed files related to the extended functions, such as the front-end function file for configuring the front-end page and the back-end function file for configuring the back-end logic code.
[0059] In this step, optionally, if it is detected that the user has triggered a submission request for the target extension package through the function extension page, the front-end function files and back-end function files corresponding to the target extension package can be stored in a unified file storage device. Among them, the file storage device can store compressed files corresponding to all extension packages in the distributed business system. Specifically, the front-end function files may include JavaScript files, HyperText Markup Language (HTML) files, etc. The back-end function files may include JAR files, shell script files, etc.
[0060] In a specific embodiment, after detecting that a user has triggered a query or modification request for a target extension package through a function extension page, the target extension package can also be displayed to the user through the extension interface, so that the user can query the information of the target extension package, or modify or delete the target extension package.
[0061] Step 130: In response to the user's extension request for the target application component, obtain the front-end function file from the file storage, render the front-end page corresponding to the target application component, and send the extension request to the target service node.
[0062] In this embodiment, after the user builds the target extension package through the function extension page, an extension request for the target application component can be triggered to expand the function of the target application component. After receiving the extension request, the front-end function file matching the target application component can be obtained in the file storage, and the front-end page can be rendered. At the same time, the extension request can also be sent to the target service node. Optionally, the extension request can include a component identifier corresponding to the target application component.
[0063] In a specific embodiment, the distributed business system may correspond to multiple service nodes. Optionally, after receiving the extension request, an idle service node may be screened from the multiple service nodes, and the idle service node may be used as the target service node.
[0064] Step 140: Obtain and execute the backend function file from the file storage through the target service node.
[0065] In this step, optionally, after receiving the extension request, the target service node can obtain a backend function file matching the target application component from the file storage according to the component identifier corresponding to the target application component in the extension request, and execute the backend function file.
[0066] In a specific embodiment, after the target service node obtains the backend function file, it can save the backend function file to a local file directory and then execute the backend function file; or it can also transfer the backend function file to a cache directory in a remote server and execute the backend function file through the remote server. The specific execution method can be determined according to the function type corresponding to the target extension package, and this embodiment does not limit this.
[0067] In this embodiment, after detecting that the user has built a target extension package, the file information of the target extension package is stored in a unified file storage device instead of immediately performing functional expansion on the target application component. The advantage of such a setting is that each service node corresponding to the distributed business system can obtain the file information of the target extension package if the requirements are met, that is, the addition and deletion of all service nodes does not affect the acquisition of file information by a single service node. In this way, the function of the application component can be expanded without updating the business system, thereby avoiding the risks and costs brought by the system update process to a large extent. Secondly, in this embodiment, by sending the extension request to the target service node, an effective way is provided to facilitate the functional expansion of the distributed business system, thereby ensuring the reliability of the functional expansion results.
[0068] The technical solution provided by the embodiment of the present invention displays the function extension page corresponding to the distributed business system; in response to the target extension package constructed by the user according to the function extension page, the front-end function file and the back-end function file corresponding to the target extension package are stored in a unified file storage device; in response to the user's extension request for the target application component, the front-end function file is obtained from the file storage device to render the front-end page, and the extension request is sent to the target service node; through the technical means of obtaining and executing the back-end function file from the file storage device by the target service node, the function extension of the application component can be realized without updating the distributed business system, thereby ensuring the reliability of the function extension result.
[0069] Figure 2 A flowchart of another method for extending the function of a distributed business system provided by an embodiment of the present invention is shown in FIG. Figure 2 As shown, the method includes:
[0070] Step 210: Display the function extension page corresponding to the distributed business system.
[0071] Step 220: Display multiple application components in the distributed business system that meet the function extension conditions to the user through a function extension page.
[0072] In this step, optionally, all application components corresponding to the distributed business system can be first obtained, and then it is determined whether each application component meets the function extension condition. If so, the application component and the corresponding function extension range are displayed to the user. Specifically, the function extension condition can include the extension resources and extension environment corresponding to the application component.
[0073] Step 230: In response to a target application component selected by the user in the function extension page, multiple extension templates corresponding to the target application component are displayed to the user.
[0074] In this embodiment, optionally, before displaying the function extension page corresponding to the distributed business system, multiple extension templates matching each application component can be constructed in advance according to the different function types corresponding to each application component. The extension template can facilitate the user to develop an extension package. Specifically, the extension template can include a specification description and examples of the extension package construction process.
[0075] Step 240: respond to the extension package generated by the user according to the target extension template, and use the extension package as the target extension package corresponding to the target application component.
[0076] In this step, after detecting that the user has selected a target extension template and submitted a corresponding extension package, the extension package can be used as a target extension package corresponding to the target application component.
[0077] The advantage of this setting is that by displaying the extension templates corresponding to the application components in the distributed business system to users, the difficulty of developing extension packages can be reduced, the time spent on developing extension packages can be saved, and the development efficiency of extension packages and the effectiveness of the development results of extension packages can be improved.
[0078] In one implementation of this embodiment, after the target extension package is acquired, the target extension package may be parsed to obtain target extension function information, front-end function files, and back-end function files corresponding to the target extension package.
[0079] In a specific embodiment, a preset compressed package parsing tool can be used to parse the target extension package to obtain the target extension function information, front-end function files and back-end function files corresponding to the target extension package. The target extension function information may include: the name, size, format, execution environment and function description of the target extension package.
[0080] Step 250: Store the front-end function files and back-end function files corresponding to the target extension package in a unified file storage device.
[0081] In one implementation of this embodiment, after storing the front-end function files and back-end function files corresponding to the target extension package in a unified file storage device, the method further includes: storing the target extension function information corresponding to the target extension package in a unified database.
[0082] The advantage of this setting is that by parsing the target extension package, the target extension function information, front-end function files and back-end function files corresponding to the target extension package can be accurately obtained; by storing the target extension function information in a unified database, users can query the target extension function information at any time, which is convenient for users to manage extension packages in distributed business systems.
[0083] Step 260: In response to the user's extension request for the target application component, obtain the front-end function file from the file storage, render the front-end page corresponding to the target application component, and send the extension request to the target service node.
[0084] In one implementation of the present embodiment, in response to a user's extension request for a target application component, a front-end function file is obtained from the file storage device, and a front-end page corresponding to the target application component is rendered, including: in response to a target application component selected by a user, all extended function information corresponding to the target application component is obtained from the database, and all the extended function information is displayed to the user; in response to a target extended function information selected by the user from all the extended function information, a front-end function file matching the target extended function information is obtained from the file storage device; and according to the front-end function file, a front-end page corresponding to the target application component is rendered.
[0085] In a specific embodiment, after detecting that the user has selected the target application component, the extended function information of all extended packages corresponding to the target application component can be obtained from the database, and then all the extended function information can be displayed to the user. If it is detected that the user has selected the target extended function information, the front-end function file matching the target extended function information is obtained from the file storage.
[0086] The advantage of such a setting is that by displaying all the extended function information corresponding to the target component to the user, it is convenient for the user to ensure that the target extension package is parsed successfully, thereby improving the accuracy of subsequent extension results.
[0087] Step 270: Obtain and execute the backend function file from the file storage through the target service node.
[0088] The technical solution provided by the embodiment of the present invention displays a function extension page corresponding to the distributed business system, displays multiple application components that meet the function extension conditions in the distributed business system to the user, responds to the target application component selected by the user, and displays multiple extension templates corresponding to the target application component to the user, responds to the extension package generated by the user according to the target extension template, stores the front-end function files and back-end function files corresponding to the target extension package in a unified file storage device, responds to the user's extension request for the target application component, obtains the front-end function file from the file storage device to render the front-end page, and sends the extension request to the target service node. Through the target service node, the technical means of obtaining and executing the back-end function file from the file storage device can realize the function expansion of the application component without updating the distributed business system, thereby ensuring the reliability of the function expansion result.
[0089] Figure 3 A flowchart of another method for extending the function of a distributed business system provided by an embodiment of the present invention is shown in FIG. Figure 3 As shown, the method includes:
[0090] Step 310: Display the function extension page corresponding to the distributed business system.
[0091] Step 320: In response to the target extension package corresponding to the target application component constructed by the user according to the function extension page, the front-end function file and the back-end function file corresponding to the target extension package are stored in a unified file storage device.
[0092] Step 330: In response to the user's extension request for the target application component, obtain the front-end function file from the file storage device, and render to obtain the front-end page corresponding to the target application component.
[0093] Step 340: Acquire all service nodes corresponding to the distributed business system, adopt a load balancing strategy, and determine a target service node among all service nodes.
[0094] In this embodiment, optionally, after all service nodes corresponding to the distributed business system are acquired, the load information corresponding to each service node may be compared, and then the service node with the smallest load may be selected as the target service node according to the comparison result.
[0095] The advantage of this setting is that by adopting a load balancing strategy to determine the target service node, it is possible to evenly schedule the functional expansion tasks of the distributed business system, reasonably allocate service resources, and avoid wasting service resources.
[0096] Secondly, after detecting that the user has built a target extension package, this embodiment stores the file information of the target extension package in a unified file storage, and then determines the target service node among all service nodes, instead of immediately performing function extension on the target application component after building the target extension package. The advantage of this setting is that it can avoid the newly added service node from being unable to perform the extended function, thereby improving the utilization rate of the service node.
[0097] Step 350: Send the extension request to the target service node, obtain the backend function file from the file storage through the target service node, and determine the extended function execution environment corresponding to the distributed business system.
[0098] In this step, the extended function execution environment may include a Java runtime environment, a Python runtime environment, a shell script runtime environment, or a Linux system, etc.
[0099] Step 360: Through the target service node, according to the extended function execution environment, convert the backend function file into a corresponding operation command, and execute the operation command.
[0100] In this step, the backend function file can be optionally converted into the operation name supported by the extended function execution environment. For example, if the extended function execution environment is a Java runtime environment, the backend function file can be converted into multiple Java language operation commands; if the extended function execution environment is a Python runtime environment, the backend function file can be converted into multiple Python language operation commands.
[0101] The advantage of this setting is that by converting the backend function files into operation commands that match the extended function execution environment, on the one hand, the accuracy of the distributed business system function expansion results can be guaranteed; on the other hand, the applicability of the distributed business system function expansion method can be improved.
[0102] Step 370: Obtain the function execution result corresponding to the target extension package, and store the function execution result in a unified database.
[0103] In this embodiment, optionally, the function execution result may include a front-end page corresponding to the target application component and an execution result of a back-end function file.
[0104] Step 380: In response to the user's request to obtain the function execution result, the function execution result is displayed to the user in a visual interface.
[0105] In this embodiment, after detecting a user's request to obtain a function execution result (such as a query or browsing request, etc.), the function execution result can be displayed to the user through a visual interface in a preset file format (such as a txt file or an excel file, etc.).
[0106] The advantage of such a setting is that it is convenient for users to carry out further functional expansion of application components based on the results of the function execution, thereby improving the management efficiency of the user on the extended functions in the distributed business system.
[0107] The technical solution provided by the embodiment of the present invention displays the function extension page corresponding to the distributed business system, responds to the target extension package constructed by the user, stores the front-end function file and the back-end function file of the target extension package in the file storage device, responds to the user's extension request for the target application component, obtains the front-end function file from the file storage device to render the front-end page, obtains all service nodes corresponding to the distributed business system, determines the target service node by adopting a load balancing strategy, obtains the back-end function file from the file storage device through the target service node, converts the back-end function file into an operation command according to the extended function execution environment, executes the operation command, obtains the function execution result corresponding to the target extension package, and stores the function execution result in a database. The technical means of displaying the function execution result to the user in a visual interface can realize the function expansion of the application component without updating the distributed business system, thereby ensuring the reliability of the function expansion result.
[0108] Figure 4 A schematic diagram of a structure of a function expansion device for a distributed business system provided by an embodiment of the present invention, such as Figure 4 As shown, the device includes: a display module 410 , an extension package management module 420 , an extension function loading module 430 and a function execution module 440 .
[0109] Among them, the display module 410 is used to display the function extension page corresponding to the distributed business system; the distributed business system includes different application components corresponding to multiple different business types;
[0110] The extension package management module 420 is used to respond to the target extension package corresponding to the target application component constructed by the user according to the function extension page, and store the front-end function file and the back-end function file corresponding to the target extension package in a unified file storage;
[0111] The extended function loading module 430 is used to respond to the user's extension request for the target application component, obtain the front-end function file from the file storage, render the front-end page corresponding to the target application component, and send the extension request to the target service node;
[0112] The function execution module 440 is used to obtain and execute the backend function file from the file storage through the target service node.
[0113] The technical solution provided by the embodiment of the present invention displays the function extension page corresponding to the distributed business system; in response to the target extension package constructed by the user according to the function extension page, the front-end function file and the back-end function file corresponding to the target extension package are stored in a unified file storage device; in response to the user's extension request for the target application component, the front-end function file is obtained from the file storage device to render the front-end page, and the extension request is sent to the target service node; through the technical means of obtaining and executing the back-end function file from the file storage device by the target service node, the function extension of the application component can be realized without updating the distributed business system, thereby ensuring the reliability of the function extension result.
[0114] Based on the above embodiment, the extension package management module 420 includes:
[0115] A component display unit, used to display multiple application components that meet the function extension conditions in the distributed business system to the user through a function extension page;
[0116] A template display unit, configured to respond to a target application component selected by a user on the function extension page and display a plurality of extension templates corresponding to the target application component to the user;
[0117] An extension package determining unit, configured to respond to an extension package generated by a user according to a target extension template, and use the extension package as a target extension package corresponding to a target application component;
[0118] An extension package parsing unit, used to parse the target extension package to obtain target extension function information, front-end function files and back-end function files corresponding to the target extension package;
[0119] The function information storage unit is used to store the target extended function information corresponding to the target extended package in a unified database.
[0120] The extended function loading module 430 includes:
[0121] a function information display unit, configured to obtain, in response to a target application component selected by a user, all extended function information corresponding to the target application component from the database, and display all extended function information to the user;
[0122] A front-end file acquisition unit, configured to acquire, in response to a target extended function information selected by a user from among all extended function information, a front-end function file matching the target extended function information from the file storage;
[0123] A page rendering unit, used to render a front-end page corresponding to a target application component according to the front-end function file;
[0124] The target service node determination unit is used to obtain all service nodes corresponding to the distributed business system; and adopt a load balancing strategy to determine the target service node among all service nodes.
[0125] The function execution module 440 includes:
[0126] An execution environment determination unit, configured to obtain a backend function file from the file storage device through the target service node, and determine an extended function execution environment corresponding to the distributed business system;
[0127] A command conversion unit, configured to convert the backend function file into a corresponding operation command through the target service node according to the extended function execution environment, and execute the operation command;
[0128] An execution result storage unit, used to obtain the function execution result corresponding to the target extension package, and store the function execution result in a unified database;
[0129] The execution result display unit is used to display the function execution result to the user in a visual interface in response to the user's request for obtaining the function execution result.
[0130] The above device can execute the methods provided by all the above embodiments of the present invention, and has the corresponding functional modules and beneficial effects of executing the above methods. For technical details not fully described in the embodiments of the present invention, please refer to the methods provided by all the above embodiments of the present invention.
[0131] Figure 5 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0132] like Figure 5As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0133] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0134] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a function expansion method for a distributed business system.
[0135] In some embodiments, the function expansion method of the distributed business system can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the function expansion method of the distributed business system described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to execute the function expansion method of the distributed business system in any other appropriate manner (for example, by means of firmware).
[0136] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0137] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0138] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0139] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0140] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0141] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0142] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0143] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for extending the function of a distributed business system, characterized in that: include: Displaying a function extension page corresponding to a distributed business system; the distributed business system includes different application components corresponding to multiple different business types; In response to a target extension package corresponding to a target application component constructed by a user according to the function extension page, a front-end function file and a back-end function file corresponding to the target extension package are stored in a unified file storage; In response to a user's extension request for a target application component, a front-end function file is obtained from the file storage, a front-end page corresponding to the target application component is rendered, and the extension request is sent to a target service node; Obtaining a backend function file from the file storage device through the target service node, and determining an extended function execution environment corresponding to the distributed business system; Through the target service node, according to the extended function execution environment, the backend function file is converted into a corresponding operation command, and the operation command is executed.
2. The method according to claim 1, characterized in that: In response to the user's following the function extension page, a target extension package corresponding to the target application component is constructed, including: Displaying multiple application components in the distributed business system that meet the function extension conditions to the user through a function extension page; In response to a target application component selected by a user on the function extension page, a plurality of extension templates corresponding to the target application component are displayed to the user; In response to an extension package generated by a user according to a target extension template, the extension package is used as a target extension package corresponding to a target application component.
3. The method according to claim 1, characterized in that Before storing the front-end function file and the back-end function file corresponding to the target extension package in a unified file storage device, the method further includes: Parsing the target extension package to obtain target extension function information, front-end function files, and back-end function files corresponding to the target extension package; After storing the front-end function files and the back-end function files corresponding to the target extension package in a unified file storage device, the method further includes: The target extension function information corresponding to the target extension package is stored in a unified database.
4. The method according to claim 3, characterized in that In response to a user's extension request for a target application component, a front-end function file is obtained from the file storage device, and a front-end page corresponding to the target application component is rendered, including: In response to the target application component selected by the user, all extended function information corresponding to the target application component is acquired from the database, and all the extended function information is displayed to the user; In response to a user selecting a target extended function information from all extended function information, acquiring a front-end function file matching the target extended function information from the file storage; According to the front-end function file, a front-end page corresponding to the target application component is rendered.
5. The method according to claim 1, characterized in that Before sending the extension request to the target service node, the method further includes: Obtain all service nodes corresponding to the distributed business system; Use a load balancing strategy to determine the target service node among all service nodes.
6. The method according to claim 1, characterized in that After executing the operation command, the method further includes: Obtaining the function execution result corresponding to the target extension package, and storing the function execution result in a unified database; In response to a user's request for obtaining the function execution result, the function execution result is presented to the user in a visual interface.
7. A function expansion device for a distributed business system, characterized in that: include: A display module, used to display a function extension page corresponding to a distributed business system; the distributed business system includes different application components corresponding to multiple different business types; An extension package management module, configured to respond to a target extension package corresponding to a target application component constructed by a user according to the function extension page, and store the front-end function files and back-end function files corresponding to the target extension package in a unified file storage; The extended function loading module is used to respond to the user's extension request for the target application component, obtain the front-end function file from the file storage, render the front-end page corresponding to the target application component, and send the extension request to the target service node; A function execution module is used to obtain a backend function file from the file storage device through the target service node, and determine an extended function execution environment corresponding to the distributed business system; through the target service node, according to the extended function execution environment, convert the backend function file into a corresponding operation command, and execute the operation command.
8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the function expansion method of the distributed business system according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the function expansion method of the distributed business system according to any one of claims 1 to 6 when executed.
Citation Information
Patent Citations
Method, device and system for expanding software function
CN106815044A
Application extension system, method and device for low-code development platform
CN114860205A
