Plug-in type software platform development method

Through domain-driven design, dynamic communication and other optimization technologies, the problem of long response time of existing plug-in software platforms has been solved, intelligent management and resource optimization have been achieved, and the response speed and intelligent effect of the software platform have been improved.

CN119065641AInactive Publication Date: 2024-12-03HEBEI WANGXIN TECH GRP CO LTD

Patent Information

Application Number
CN202411479136.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-23
Publication Date
2024-12-03
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing plug-in software platform requires operators to install and deploy plug-in when the client requests the resource call, resulting in a longer response time and reducing the intelligent effect of the software platform and the difficulty of promoting and using it.

Method used

Adopt domain-driven design, dynamic communication mechanism, fuzzy search, fuse mechanism, event traceability, authentication and authorization, weighted polling algorithm and other technologies, and realize the intelligence of the plug-in library through the dispatching center, activation center, data communication center and communication load optimization center. Integrated management and resource optimization to reduce client response time.

Benefits of technology

It shortens the response time of the software platform, improves the intelligent effect, reduces resource occupation, realizes the balancing load of network communication, and enhances the flexibility and security of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119065641A_ABST
    Figure CN119065641A_ABST
Patent Text Reader

Abstract

The invention discloses a plug-in type software platform development method, and relates to the technical field of software platforms, the plug-in type software platform development method comprises the following steps: building a system plug-in library, the system plug-in library comprises a dispatching center used for calling and conveying instructions, a plug-in library used for storing plug-ins and resources required by a software platform, an activation center used for activating and dispatching the plug-ins, and an activation module used for registering and authenticating the plug-in resources. The scheduling center controls the activation center to send the calling instruction to the client software for calling, the activation center calls the corresponding plug-in in the plug-in library and transmits the plug-in to the data processing center for installation and use, and the activation module can activate the corresponding plug-in installed in the data processing center and authenticate and deploy the corresponding certificate. The function of intelligently mounting the plug-in software platform can be realized through the cooperative use of the activation center and the activation module plug-in library.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of software platforms, and in particular to a plug-in software platform development method. Background Art

[0002] The software platform facilitates software reuse. Developers can share and reuse existing software components and modules on the platform, which not only improves development efficiency but also improves software quality and reliability. When the application is used, the software platform is needed to provide resource scheduling for application operation.

[0003] A software platform is required when an application is used. The "A plug-in software platform development method, device and plug-in software platform" disclosed in the publication number "CN117742669A" has solved the traditional software development method that usually integrates all functions into a large program, and often needs to expand or modify existing software to meet user needs. This method has some problems, such as poor maintainability and scalability of the program, and modifying one function may affect the normal operation of other functions.

[0004] However, there are still many defects in the actual use of software platforms with similar structures. For example, in the prior art, when the client makes a resource call request, the operator is required to install and deploy the corresponding plug-in for the client to call the resource, which increases the response time of the software platform and reduces the intelligent effect of the software platform. It is not convenient for the system to be promoted and used, so it is necessary to design a plug-in software platform development method. Summary of the invention

[0005] In view of the deficiencies in the prior art, the present invention provides a plug-in software platform development method to solve the above problems.

[0006] To achieve the above objectives, the present invention is implemented through the following technical solutions: A plug-in software platform development method includes: Step 1: Select the appropriate neighborhood-driven design according to the software development direction to achieve decoupling and asynchronous processing of business logic; Step 2: Communication mechanism selection and dynamic communication. Use Consul for service registration and discovery to ensure dynamic communication between services. Step 3: Build a data communication center and optimize the software request data load to speed up the communication response speed between the software platform and the client. Use fuzzy search and select field types that support full-text search. Step 4: Build a system plug-in library, which contains preset client plug-ins and reserved plug-in resources; Step 5: Use the circuit breaker mechanism to limit platform resources, use log analysis tools to count the number of anomalies, and activate the circuit breaker mechanism when the number of anomalies reaches the set threshold; Step 6: Event tracing: When business rules change, you can adapt to the changes by adding new event handlers without modifying the existing business logic code. Step 7: Authentication and authorization: DES symmetric encryption algorithm is used for identity authentication and key distribution; Step 8: Build a communication load optimization center to perform load balancing with client communications.

[0007] Preferably, in step one, domain-driven design principles are used to identify and define service boundaries, ensure that each service focuses on a specific business domain, and decompose application functions into small manageable units based on software and application usage requirements.

[0008] Preferably, in step 2, an API gateway is selected as a proxy between the front-end application and the back-end service to handle request routing and API aggregation, a lightweight communication protocol is selected, and HTTP / REST protocol is used for communication between services to ensure efficient and standardized communication, and Consul is used for registration and discovery of services to ensure dynamic communication between services.

[0009] Preferably, in step three, a request center is established to process the client request, and the processing steps are as follows: S1, data request, pre-processing the received data and converting it into instructions; S2. Fuzzy search: perform fuzzy search on the data corresponding to the instruction, select a field type that can support full-text search, use TEXT or VARCHAR fields in MySQL, and create a full-text index for it; S3, feature matching, secondary retrieval of the fuzzy search data results, and extraction of feature information from the fuzzy search data results; S4, labeling, encapsulating the instructions that conform to the subsequent instruction directory, labeling the data packet header, and transmitting the data to the software platform for resource scheduling.

[0010] Preferably, in step four, a system plug-in library is built, and the system plug-in library includes a scheduling center for calling and transmitting instructions, a plug-in library for storing plug-ins and resources required by the software platform, an activation center for scheduling activation of plug-ins, and an activation module for registering and authenticating plug-in resources.

[0011] Preferably, in step five, the number of exceptions occurring within a specified time is counted, and when the number of exceptions exceeds a set threshold, a fuse is triggered to limit the limited resources of the software platform. Specifically, the number of exceptions is counted through a log analysis tool, and when the number of exceptions reaches a set threshold, the fuse mechanism is activated.

[0012] Preferably, in step six, when it is necessary to obtain the current state of the system by setting up event tracing, the state of the system is reconstructed by replaying the events in the event storage, starting from the most specific event, applying each event in turn, and gradually updating the state of the system until the current time point is reached.

[0013] Preferably, the authentication and authorization in step seven adopts the Kerberos protocol using a symmetric encryption algorithm, performs identity authentication and key distribution through a trusted third party KDC, and adopts the DES symmetric encryption algorithm.

[0014] Preferably, in the authentication and authorization, the user requests a ticket from the KDC, and after the KDC verifies the user's identity, it returns a ticket containing a session key, and the user uses the ticket to access the service.

[0015] Preferably, in step eight, a communication load optimization center is established, and the communication load optimization center includes a communication center for load balancing network communications and a cache center for transferring data, wherein the communication center adopts a weighted polling algorithm to assign different weights to each server according to the performance differences of the servers, and servers with high weights are allocated more requests.

[0016] The present invention provides a plug-in software platform development method. Compared with the prior art, it has the following beneficial effects: 1. The plug-in software platform development method provided by the present invention controls the activation center to send a call instruction to the client software through the scheduling center, and calls the corresponding plug-in in the plug-in library through the activation center and transmits it to the data processing center for installation and use. Then, the corresponding plug-in installed in the data processing center can be activated and the corresponding certificate for authentication and deployment can be realized through the activation module. The function of intelligent mounting of the plug-in software platform can be realized through the coordinated use of the activation center and the activation module plug-in library, avoiding the problem of the existing software platform having a long response time to the client calling resources, requiring operators to install and deploy the corresponding plug-in for the client calling resources, shortening the response time of using the software platform, and improving the intelligent effect of using the software platform.

[0017] 2. The plug-in software platform development method provided by the present invention pre-processes the received data through data request, converts it into instructions, performs fuzzy search, selects the field type that can support full-text retrieval, adopts the TEXT or VARCHAR field in MySQL, and establishes a full-text index for it, and then encapsulates the instructions that meet the subsequent instruction directory through feature matching, and labels the data packet header for use in conjunction with it, which can reduce the resource occupation of the software platform, realizes the function of reducing the resource occupation of the software platform, avoids the problem of the software platform's long response time to the client software request, and also reduces the resource occupation of the software platform for processing incorrect instructions sent by the client.

[0018] 3. The plug-in software platform development method provided by the present invention adopts a weighted polling algorithm through the communication center, which is convenient for allocating different weights to each server according to the performance differences of the servers, so that servers with high weights are allocated more requests, effectively alleviating the hardware pressure of network devices in the software platform, and facilitating balanced network communication load. The common media resources and data resources in the software platform can be stored for a short time through the cache center, thereby facilitating the processing of the same client-sent instructions and shortening the response time of the software platform. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 It is a schematic diagram of the workflow of the present invention; Figure 2 is a system module block diagram of the present invention; Figure 3 Schematic diagram of the request center workflow of the present invention. DETAILED DESCRIPTION

[0020] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions 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 are within the scope of protection of the present invention.

[0021] See also Figure 1-Figure 3 , two technical solutions are provided: The first implementation method: A plug-in software platform development method includes: Step 1: Select the appropriate neighborhood-driven design according to the software development direction to achieve decoupling and asynchronous processing of business logic; Step 2: Communication mechanism selection and dynamic communication. Use Consul for service registration and discovery to ensure dynamic communication between services. Step 3: Build a data communication center and optimize the software request data load to speed up the communication response speed between the software platform and the client. Use fuzzy search and select field types that support full-text search. Step 4: Build a system plug-in library, which contains preset client plug-ins and reserved plug-in resources; Step 5: Use the circuit breaker mechanism to limit platform resources, use log analysis tools to count the number of anomalies, and activate the circuit breaker mechanism when the number of anomalies reaches the set threshold; Step 6: Event tracing: When business rules change, you can adapt to the changes by adding new event handlers without modifying the existing business logic code. Step 7: Authentication and authorization: DES symmetric encryption algorithm is used for identity authentication and key distribution; Step 8: Build a communication load optimization center to perform load balancing with client communications.

[0022] Use domain-driven design principles to identify and define service boundaries, ensure that each service focuses on a specific business domain, and decompose application functions into small manageable units based on software and application usage requirements. Domain events can achieve decoupling and asynchronous processing of business logic, improving system flexibility and scalability. Select API Gateway as the proxy between the front-end application and the back-end service to handle request routing and API aggregation. Select lightweight communication protocols and use HTTP / REST protocols for inter-service communication to ensure efficient and standardized communication. Use Consul for service registration and discovery to ensure dynamic communication between services. Through Consul, service providers can automatically register their information in Consul at startup, including service name, address, port, etc., without manually configuring the service address. Build a request center to process client requests. The processing steps are as follows: S1, data request, pre-processing the received data and converting it into instructions; S2. Fuzzy search: perform fuzzy search on the data corresponding to the instruction, select a field type that can support full-text search, use TEXT or VARCHAR fields in MySQL, and create a full-text index for it; S3, feature matching, secondary retrieval of the fuzzy search data results, and extraction of feature information from the fuzzy search data results; S4, labeling, encapsulating the instructions that meet the subsequent instruction directory, labeling the data packet header, and transmitting the data to the software platform for resource scheduling; Through data request, the received data is preprocessed, converted into instructions, fuzzy search, and field types that can support full-text search are selected. TEXT or VARCHAR fields in MySQL are used, and full-text indexes are established for them. Then, through feature matching and encapsulation of instructions that meet the subsequent instruction directory, and labeling of the data packet header, the resource occupation of the software platform can be reduced, realizing the function of reducing the resource occupation of the software platform; Build a system plug-in library, which includes a dispatch center for calling and delivering instructions, a plug-in library for storing plug-ins and resources required by the software platform, an activation center for activating and scheduling plug-ins, and an activation module for registering and authenticating plug-in resources. The plug-ins in the plug-in library include but are not limited to Adobe Flash Player plug-in, PDF reader plug-in, MathType formula editor plug-in, K-Lite Codec Pack plug-in, and Debuggerfor Chrome plug-in; The dispatch center controls the activation center to send a call instruction to the client software, and the activation center calls the corresponding plug-in in the plug-in library and transmits it to the data processing center for installation and use. Then, the activation module can activate the corresponding plug-in installed in the data processing center and authenticate the deployment of the corresponding certificate. The activation center and the activation module plug-in library can be used together to realize the function of intelligent mounting plug-in software platform; Count the number of exceptions that occur within a specified time. When the number of exceptions exceeds the set threshold, a circuit breaker is triggered to limit the limited resources of the software platform. Specifically, the number of exceptions is counted through a log analysis tool. When the number of exceptions reaches the set threshold, the circuit breaker mechanism is activated. After the circuit breaker is triggered, the system will take downgrade measures to reduce the user's weight, rather than completely stop the service; By building event tracing, when you need to obtain the current state of the system, you can reconstruct the state of the system by replaying the events in the event store, starting from the most specific event, applying each event in turn, and gradually updating the state of the system until the current time point is reached. When business rules change, you can adapt to the changes by adding new event handlers without modifying the existing business logic code; Authentication and authorization use the Kerberos protocol and a symmetric encryption algorithm. The trusted third-party KDC is used for identity authentication and key distribution, and the DES symmetric encryption algorithm is used. The DES symmetric encryption algorithm can be used to quickly perform these operations on the computer. For the encryption of large amounts of data, DES can complete the encryption process in a relatively short period of time, meeting application scenarios with high real-time requirements, thereby shortening the system's response time. During authentication and authorization, the user requests a ticket from KDC. After verifying the user's identity, KDC returns a ticket containing a session key. The user uses the ticket to access the service. Verifying the user's identity through KDC can effectively prevent unauthorized access, ensuring that only legitimate users can access system resources, and increasing the security of the system.

[0023] The second implementation method is different from the first implementation method mainly in that a communication load optimization center is established, and the communication load optimization center includes a communication center for load balancing network communications and a cache center for transferring data. The communication center adopts a weighted polling algorithm to assign different weights to each server according to the performance differences of the servers. Servers with higher weights are allocated more requests.

[0024] By using a weighted polling algorithm in the communication center, different weights can be assigned to each server according to the performance differences of the servers, so that servers with high weights can be allocated more requests, effectively alleviating the hardware pressure of network devices in the software platform and achieving balanced load in network communications.

[0025] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0026] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and alterations may be made to the embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.

Claims

1. A plug-in software platform development method, characterized in that: include: Step 1: Select the appropriate neighborhood-driven design according to the software development direction to achieve decoupling and asynchronous processing of business logic; Step 2: Communication mechanism selection and dynamic communication. Use Consul for service registration and discovery to ensure dynamic communication between services. Step 3: Build a data communication center and optimize the software request data load to speed up the communication response speed between the software platform and the client. Use fuzzy search and select field types that support full-text search. Step 4: Build a system plug-in library, which contains preset client plug-ins and reserved plug-in resources; Step 5: Use the circuit breaker mechanism to limit platform resources, use log analysis tools to count the number of anomalies, and activate the circuit breaker mechanism when the number of anomalies reaches the set threshold; Step 6: Event tracing: When business rules change, you can adapt to the changes by adding new event handlers without modifying the existing business logic code. Step 7: Authentication and authorization: DES symmetric encryption algorithm is used for identity authentication and key distribution; Step 8: Build a communication load optimization center to perform load balancing with client communications.

2. A plug-in software platform development method according to claim 1, characterized in that: In step 1, domain-driven design principles are used to identify and define service boundaries, ensure that each service focuses on a specific business domain, and decompose application functions into small manageable units based on software and application usage requirements.

3. A plug-in software platform development method according to claim 1, characterized in that: In step 2, an API gateway is selected as a proxy between the front-end application and the back-end service to handle request routing and API aggregation. A lightweight communication protocol is selected, and the HTTP / REST protocol is used for communication between services to ensure efficient and standardized communication. Consul is used for service registration and discovery to ensure dynamic communication between services.

4. The method for developing a plug-in software platform according to claim 1, characterized in that: In step 3, a request center is built to process the client request. The processing steps are as follows: S1, data request, pre-processing the received data and converting it into instructions; S2. Fuzzy search: perform fuzzy search on the data corresponding to the instruction, select a field type that can support full-text search, use TEXT or VARCHAR fields in MySQL, and create a full-text index for it; S3, feature matching, secondary retrieval of the fuzzy search data results, and extraction of feature information from the fuzzy search data results; S4, labeling, encapsulating the instructions that conform to the subsequent instruction directory, labeling the data packet header, and transmitting the data to the software platform for resource scheduling.

5. The method for developing a plug-in software platform according to claim 1, characterized in that: In the step 4, a system plug-in library is built, which includes a scheduling center for calling and transmitting instructions, a plug-in library for storing plug-ins and resources required by the software platform, an activation center for activating and scheduling plug-ins, and an activation module for registering and authenticating plug-in resources.

6. A plug-in software platform development method according to claim 1, characterized in that: In step five, the number of exceptions occurring within a specified time period is counted. When the number of exceptions exceeds a set threshold, a fuse is triggered to limit the limited resources of the software platform. Specifically, the number of exceptions is counted through a log analysis tool. When the number of exceptions reaches a set threshold, the fuse mechanism is activated.

7. A plug-in software platform development method according to claim 1, characterized in that: In step six, when the current state of the system needs to be obtained by setting up event tracing, the state of the system is reconstructed by replaying the events in the event storage, starting from the most specific event, applying each event in turn, and gradually updating the state of the system until the current time point is reached.

8. A plug-in software platform development method according to claim 1, characterized in that: The authentication and authorization in step seven adopts the Kerberos protocol using a symmetric encryption algorithm, performs identity authentication and key distribution through a trusted third party KDC, and adopts the DES symmetric encryption algorithm.

9. A plug-in software platform development method according to claim 8, characterized in that: In the authentication and authorization, the user requests a ticket from the KDC. After the KDC verifies the user's identity, it returns a ticket containing a session key, and the user uses the ticket to access the service.

10. A plug-in software platform development method according to claim 1, characterized in that: In step eight, a communication load optimization center is built. The communication load optimization center includes a communication center for load balancing network communications and a cache center for transferring data. The communication center adopts a weighted polling algorithm to assign different weights to each server according to the performance differences of the servers. Servers with higher weights are allocated more requests.

Citation Information

Patent Citations

  • Software platform development method and apparatus

    CN105183458A

  • Function combination type software development method and system, medium and electronic device

    CN112199105A

  • Micro-service development management system

    CN115242644A

  • Plug-in type software platform development method and device and plug-in type software platform

    CN117742669A

Cited By

  • Industrial software intelligent building system and method based on plug-in mechanism

    CN120780378A

  • Online detection method for ultraviolet curing repair quality based on machine vision

    CN121437422A