Micro-service Processing Method, Device, Equipment and Storage Medium Based on Customer Differences

By extracting different business events and generating multi-layer microservices, the problem of low efficiency when expanding system services is solved, efficiently compatible with the business needs of different customers is achieved, and the system expansion efficiency and compatibility are improved.

CN116028020BActive Publication Date: 2025-08-05SHENZHEN DENTAL HOUSEKEEPER TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211683243.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-27
Publication Date
2025-08-05
Estimated Expiration
2042-12-27

AI Technical Summary

Technical Problem

The existing system services are less efficient when expanding, and cannot effectively compatible with the business needs of different customers, resulting in an increase in system burden.

Method used

By extracting differential events from differential services, packaging them into different components and configuring component parameters, obtaining basic data to generate entry data, recursively splitting to form multi-layer microservices, decrypting component parameters and assembling them into differential microservices, and calling and processing microservices for data processing according to customer data needs.

Benefits of technology

It improves the system's compatibility and efficiency for new services, facilitates business configuration and deployment, and protects customer data privacy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116028020B_ABST
    Figure CN116028020B_ABST
Patent Text Reader

Abstract

The present invention relates to artificial intelligence technology and discloses a microservice processing method based on customer differences, comprising: extracting difference events from difference services, packaging the difference events into difference components, and configuring component parameters of the difference components; obtaining basic data, generating entry data based on the basic data, recursively splitting the component parameters based on the entry data to obtain multi-layer microservices; decrypting the component parameters to obtain component events, and assembling the multi-layer microservices and component events into a difference microservice; obtaining customer data to be processed, extracting difference data from the customer data, and extracting corresponding processing microservices from the difference microservices based on customer requirements of the difference data; and using the processing microservices to process the difference data to obtain processed data. The present invention also provides a microservice processing device, electronic device, and storage medium based on customer differences. The present invention can improve the efficiency of system service expansion.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a microservice processing method, device, electronic device and computer-readable storage medium based on customer differences. Background Art

[0002] With the development of information technology, more and more institutions and enterprises have begun to create their own systems to better manage customer data and handle customer business. However, as customer business increases, it is also necessary to expand the services of existing systems and make them functionally compatible with new customer business.

[0003] Existing system service expansion methods mostly implement functional service expansion by adding functional codes as needed in the existing system overall program. In actual applications, different customers have different requirements for the system, and the processing methods of various modules of the system are also ever-changing. If compatibility processing is only performed in one place, the system will be overwhelmed due to code redundancy, resulting in low efficiency when expanding system services. Summary of the Invention

[0004] The present invention provides a microservice processing method, device and computer-readable storage medium based on customer differences, the main purpose of which is to solve the problem of low efficiency when expanding system services.

[0005] To achieve the above objectives, the present invention provides a microservice processing method based on customer differences, comprising:

[0006] Acquire difference services, extract difference events from the difference services, package the difference events into difference components, and configure component parameters of the difference components;

[0007] Obtaining basic data corresponding to the difference function, generating entry data based on the basic data, and recursively splitting the component parameters based on the entry data to obtain multi-layer microservices;

[0008] Decrypt the component parameters to obtain component events, and assemble the multi-layer microservices and the component events into differentiated microservices;

[0009] Obtain customer data to be processed, extract difference data from the customer data, and extract corresponding processing microservices from the difference microservices according to customer requirements of the difference data;

[0010] The processing microservice is used to process the difference data to obtain processed data.

[0011] Optionally, extracting a difference event from the difference service includes:

[0012] Performing functional analysis on the difference services to obtain difference functions;

[0013] Extracting functional functions and functional parameters from the difference functions;

[0014] Initialize a difference event according to the function function and the function parameters.

[0015] Optionally, configuring the component parameters of the difference component includes:

[0016] Extracting the component event from the difference component, and transcoding the component event into a component byte sequence;

[0017] Generate a round encryption key using a preset encryption public key, and perform a byte XOR operation on the component byte sequence using the round encryption key to obtain an XOR parameter;

[0018] Multiplying the XOR parameter by a preset inverse confusion matrix to obtain a confusion parameter, and cyclically right-shifting the confusion parameter to obtain a right-shift parameter;

[0019] A byte replacement operation is performed on the right-shift parameter using a preset inverse replacement table to obtain a component parameter.

[0020] Optionally, generating entry data according to the basic data includes:

[0021] Classifying the basic data according to data types to obtain category data;

[0022] The duplicate data, garbled data and offside data of each type of data in the data are deleted respectively to obtain entry data.

[0023] Optionally, recursively splitting the component parameters according to the entry data to obtain multi-layer microservices includes:

[0024] Splitting the entry data into multiple hierarchical data according to the logical hierarchy, and sorting all the hierarchical data in descending order according to the logical hierarchy to obtain a hierarchical data sequence;

[0025] Selecting hierarchical data in the hierarchical data sequence one by one as target hierarchical data, extracting hierarchical basic parameters corresponding to the target hierarchical data from preset basic parameters, and extracting hierarchical component parameters corresponding to the target hierarchical data from the component parameters;

[0026] The target hierarchical data, the hierarchical basic parameters, and the hierarchical component parameters are aggregated into hierarchical microservices, and all hierarchical microservices are aggregated into multi-layer microservices.

[0027] Optionally, performing parameter parsing on the component parameters to obtain component events includes:

[0028] Performing a byte replacement operation on the component parameter using a preset replacement table to obtain a right-shifted parameter;

[0029] Circularly shifting the right-shifted parameter to the left to convert it into an obfuscation parameter, and performing a column obfuscation operation on the obfuscation certificate using a preset confusion matrix to obtain an XOR parameter;

[0030] Performing an XOR operation on the XOR parameter using the round encryption key to obtain a component event.

[0031] Optionally, the using the processing microservice to process the difference data to obtain processed data includes:

[0032] Extracting a hierarchical component event from the processing microservice as a target component event;

[0033] Performing event authentication on the target component event to obtain an authentication result;

[0034] When the authentication result is a difference result, the target component event is used to perform data overwriting processing on the difference data to obtain processed data;

[0035] When the authentication result is a compatible result, the target component event is used to perform data compatibility processing on the difference data to obtain processed data.

[0036] In order to solve the above problems, the present invention further provides a microservice processing device based on customer differences, the device comprising:

[0037] A component configuration module, configured to obtain differential services, extract differential events from the differential services, package the differential events into differential components, and configure component parameters of the differential components;

[0038] A component splitting module is used to obtain basic data corresponding to the difference functions, generate entry data based on the basic data, and recursively split the component parameters based on the entry data to obtain multi-layer microservices;

[0039] A service assembly module is used to decrypt the component parameters to obtain component events, and assemble the multi-layer microservices and the component events into differentiated microservices;

[0040] A data screening module is used to obtain customer data to be processed, extract difference data from the customer data, and extract corresponding processing microservices from the difference microservices according to customer requirements of the difference data;

[0041] The service calling module is used to use the processing microservice to process the difference data to obtain processed data.

[0042] In order to solve the above problem, the present invention further provides an electronic device, comprising:

[0043] at least one processor; and,

[0044] a memory communicatively connected to the at least one processor; wherein,

[0045] The memory stores a computer program that can be executed 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 above-mentioned microservice processing method based on customer differences.

[0046] In order to solve the above problems, the present invention also provides a computer-readable storage medium, which stores at least one computer program. The at least one computer program is executed by a processor in an electronic device to implement the above-mentioned microservice processing method based on customer differences.

[0047] The embodiment of the present invention can functionalize the business to be added by extracting differential events from the differential business, and can customize the business functions to be added by packaging the differential events into differential components, so that the business functions to be added can be processed independently of the system. By configuring the component parameters of the differential components, the component events can be encrypted to facilitate subsequent calls while protecting the customer's data privacy. By obtaining the basic data corresponding to the differential functions and generating entry data based on the basic data, standard key parameters can be extracted. By recursively splitting the component parameters based on the entry data, multi-layer microservices can be obtained. The component parameters, hierarchical data, and technical data can be packaged into multi-layer microservices, thereby facilitating the application of services at each level and ensuring the independence of microservices.

[0048] By parsing the component parameters to obtain component events, it is convenient to call component events during service processing. By assembling the multi-layer microservices and the component events into differential microservices, the differential components and corresponding component events can be hierarchically matched, thereby facilitating subsequent on-demand calls. By obtaining the customer data to be processed and extracting differential data from the customer data, data that requires customized processing can be screened out. By obtaining customer requirements based on the differential data and extracting corresponding processing microservices from the differential microservices based on the customer requirements, corresponding customized functions can be selected to process the customer data according to the customer requirements. By using the processing microservice to process the differential data and obtain processed data, the system's compatibility with new services is improved, and the configuration and deployment of new services is facilitated, thereby improving the efficiency of the system. Therefore, the microservice processing method, device, electronic device, and computer-readable storage medium based on customer differences proposed in the present invention can solve the problem of low efficiency when expanding system services. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 A schematic diagram of a process flow of a microservice processing method based on customer differences provided by an embodiment of the present invention;

[0050] Figure 2 A schematic diagram of a process for configuring component parameters according to an embodiment of the present invention;

[0051] Figure 3 A schematic diagram of a process for generating multi-layer microservices according to an embodiment of the present invention;

[0052] Figure 4 A functional module diagram of a microservice processing device based on customer differences provided by one embodiment of the present invention;

[0053] Figure 5 A schematic diagram of the structure of an electronic device for implementing the microservice processing method based on customer differences provided in one embodiment of the present invention.

[0054] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings and in conjunction with the embodiments. DETAILED DESCRIPTION

[0055] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0056] The embodiment of the present application provides a microservice processing method based on customer differences. The execution subject of the microservice processing method based on customer differences includes but is not limited to at least one of the electronic devices such as the server, the terminal, etc. that can be configured to execute the method provided by the embodiment of the present application. In other words, the microservice processing method based on customer differences can be executed by software or hardware installed on the terminal device or the server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc. The server can be an independent server, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.

[0057] Reference Figure 1 FIG. 1 is a flow chart of a microservice processing method based on customer differences provided by an embodiment of the present invention. In this embodiment, the microservice processing method based on customer differences includes:

[0058] S1. Acquire difference services, extract difference events from the difference services, package the difference events into difference components, and configure component parameters of the difference components.

[0059] In an embodiment of the present invention, the differentiated business refers to a business that is different from the existing business in the system. For example, the hospital's business scope in the past only needed to handle patients of the hospital, but after the business expanded, the hospital also needed to handle patients of the hospital's chain hospitals. In this case, handling patients of the chain hospitals is considered a differentiated business.

[0060] In detail, the difference events refer to multiple business events processed for the difference services, such as billing events for patients of chain hospitals and registration events for patients of chain hospitals.

[0061] In the embodiment of the present invention, extracting the difference event from the difference service includes:

[0062] Performing functional analysis on the difference services to obtain difference functions;

[0063] Extracting functional functions and functional parameters from the difference functions;

[0064] Initialize a difference event according to the function function and the function parameters.

[0065] In detail, the differential function refers to the function that needs to be implemented by the differential business. For example, in the differential business of processing patients from chain hospitals, it is necessary to bill patients from chain hospitals and patients from this hospital differently, so it is necessary to design billing standards for patients from chain hospitals; the functional analysis of the differential business to obtain the differential function can be a brainstorming session on the differential business to determine the functions that need to be implemented and to aggregate the functions into differential functions.

[0066] In detail, the functional function refers to a calculation function that realizes the differential function. For example, in the function of differentiated billing, the calculation function refers to the billing standard, and the functional parameters refer to the parameters corresponding to the calculation function. For example, in the function of differentiated billing, the functional parameters refer to the influencing parameters that need to be considered during billing, such as the differentiation coefficient, basic fee and other parameters.

[0067] In the embodiment of the present invention, packaging the difference events into difference components includes: configuring event parameters for the difference events to obtain component events; and configuring component interfaces and component dependencies for the component events to obtain difference components.

[0068] In detail, the event parameters refer to the parameters that need to be input when calling the difference event, the component event is the time that can be directly called to implement the component function, the component interface is a reference type defined for convenient calling of the difference event, and the component dependency can be jQuery.

[0069] For details, refer to Figure 2 As shown, the component parameters for configuring the difference component include:

[0070] S21. Extract the component event from the difference component, and transcode the component event into a component byte sequence;

[0071] S22. Generate a round encryption key using a preset encryption public key, and perform a byte XOR operation on the component byte sequence using the round encryption key to obtain an XOR parameter;

[0072] S23, multiplying the XOR parameter by a preset inverse confusion matrix to obtain a confusion parameter, and cyclically right-shifting the confusion parameter to obtain a right-shift parameter;

[0073] S24. Perform a byte replacement operation on the right-shift parameter using a preset inverse replacement table to obtain a component parameter.

[0074] In detail, transcoding the component event into a component byte sequence refers to transcoding the difference component byte by byte to obtain a binary sequence, and the encryption public key is a public key preset by the system for data encryption and decryption.

[0075] In detail, a key scheduling algorithm can be used to generate a round encryption key using a preset encryption public key, the inverse confusion matrix is the inverse matrix of the preset confusion matrix, the product of the inverse confusion matrix and the confusion matrix is one, and the inverse substitution table is the inverse table of the preset substitution table.

[0076] In an embodiment of the present invention, by extracting difference events from the difference business, the business functions that need to be added can be functionalized, and by packaging the difference events into difference components, the business functions that need to be added can be customized and processed independently of the system. By configuring the component parameters of the difference component, the component event can be encrypted to facilitate subsequent calls while protecting the customer's data privacy.

[0077] S2. Obtain basic data corresponding to the difference function, generate entry data based on the basic data, and recursively split the component parameters based on the entry data to obtain multi-layer microservices.

[0078] In an embodiment of the present invention, the basic data refers to the key parameters corresponding to the differential functions, such as patient information data of chain hospitals, doctor information of hospitals and other data; the entry data refers to the standardized key parameters of the differential functions, such as clinic ID, patient ID, doctor ID and other data.

[0079] In the embodiment of the present invention, generating entry data according to the basic data includes:

[0080] Classifying the basic data according to data types to obtain category data;

[0081] The duplicate data, garbled data and offside data of each type of data in the data are deleted respectively to obtain entry data.

[0082] In detail, the data type refers to the type of weight represented by the data, such as clinic, doctor, and patient. The duplicate data refers to data that is repeated with existing data. The garbled data refers to data containing garbled characters. The offside data refers to data whose bit length does not conform to the standard bit length. The LinkedHashSet algorithm can be used to filter out duplicate data from the type of data. Regular expressions can be used to filter out garbled data from the type of data. The length algorithm can be used to obtain the data length of each data in the type of data and filter out data that does not conform to the data length of the preset type of data.

[0083] In the embodiment of the present invention, referring to Figure 3 As shown, the component parameters are recursively split according to the entry data to obtain multi-layer microservices, including:

[0084] S31, splitting the entry data into multiple hierarchical data according to the logical hierarchy, and sorting all the hierarchical data in descending order according to the logical hierarchy to obtain a hierarchical data sequence;

[0085] S32, selecting hierarchical data in the hierarchical data sequence one by one as target hierarchical data, extracting hierarchical basic parameters corresponding to the target hierarchical data from preset basic parameters, and extracting hierarchical component parameters corresponding to the target hierarchical data from the component parameters;

[0086] S33: Aggregate the target hierarchical data, the hierarchical basic parameters, and the hierarchical component parameters into hierarchical microservices, and aggregate all hierarchical microservices into multi-layer microservices.

[0087] In detail, the logical hierarchy refers to the logical size hierarchy of data types, for example, the clinic level is the highest level, the lower level of the clinic level is the department level, the lower level of the department level is the doctor level, and the lower level of the doctor level is the patient level; the basic parameters can be the parameters of the administrator account corresponding to the hierarchical data,

[0088] In an embodiment of the present invention, by obtaining the basic data corresponding to the differential function and generating entry data based on the basic data, standard key parameters can be extracted. By recursively splitting the component parameters based on the entry data, multi-layer microservices can be obtained. The component parameters, hierarchical data and technical data can be packaged into multi-layer microservices, thereby facilitating the application of services at each level and ensuring the independence of microservices.

[0089] S3. parse the component parameters to obtain component events, and assemble the multi-layer microservices and the component events into differentiated microservices.

[0090] In the embodiment of the present invention, the performing parameter parsing on the component parameters to obtain the component event includes:

[0091] Performing a byte replacement operation on the component parameter using a preset replacement table to obtain a right-shifted parameter;

[0092] Circularly shifting the right-shifted parameter to the left to convert it into an obfuscation parameter, and performing a column obfuscation operation on the obfuscation certificate using a preset confusion matrix to obtain an XOR parameter;

[0093] Performing an XOR operation on the XOR parameter using the round encryption key to obtain a component event.

[0094] In detail, the substitution table and the inverse substitution table in step S1 are mutually inverse tables, the confusion matrix is a matrix calculated by a column confusion function, and the product of the confusion matrix and the inverse confusion matrix in step S1 is one.

[0095] In detail, the assembling of the multi-layer microservices and the component events into a differential microservice includes: selecting the hierarchical microservices in the multi-layer microservices one by one as the target hierarchical microservices, extracting the hierarchical component events corresponding to the target hierarchical microservices from the component events; aggregating the target hierarchical microservices and the hierarchical component events into a hierarchical differential microservice, and aggregating all the hierarchical differential microservices into a differential microservice.

[0096] In an embodiment of the present invention, by performing parameter parsing on the component parameters to obtain component events, component events can be called conveniently during service processing. By assembling the multi-layer microservices and the component events into differential microservices, differential components and corresponding component events can be hierarchically matched, thereby facilitating subsequent calls on demand.

[0097] S4. Obtain customer data to be processed, extract difference data from the customer data, obtain customer requirements based on the difference data, and extract corresponding processing microservices from the difference microservices based on the customer requirements.

[0098] In an embodiment of the present invention, the customer data refers to customer data to be processed, such as patient physical examination items, drug lists and other data; the difference data refers to customer data corresponding to new services that need to be compatible processed, such as patient physical examination items, drug lists and other data in chain hospitals.

[0099] In detail, the difference data can be extracted from the customer data through the entry data, and obtaining customer needs based on the difference data means feeding back the difference data to the customer to obtain the customer's needs for the difference data, wherein the customer needs refer to the customer's business needs.

[0100] In detail, extracting the corresponding processing microservice from the difference microservices according to the customer demand refers to selecting the difference microservices of the corresponding level as the processing microservices according to the customer demand.

[0101] In an embodiment of the present invention, by obtaining customer data to be processed and extracting difference data from the customer data, data that requires customized processing can be screened out. By obtaining customer needs based on the difference data and extracting corresponding processing microservices from the difference microservices based on the customer needs, corresponding customized functions can be selected according to customer needs to process customer data.

[0102] S5. Use the processing microservice to process the difference data to obtain processed data.

[0103] In the embodiment of the present invention, the processing microservice is used to process the difference data to obtain processed data, including:

[0104] Extracting a hierarchical component event from the processing microservice as a target component event;

[0105] Performing event authentication on the target component event to obtain an authentication result;

[0106] When the authentication result is a difference result, the target component event is used to perform data overwriting processing on the difference data to obtain processed data;

[0107] When the authentication result is a compatible result, the target component event is used to perform data compatibility processing on the difference data to obtain processed data.

[0108] In detail, the event authentication refers to verifying the authority of the target component event when processing the difference data; the overwrite processing refers to the called data overwriting the content in the difference data. At this time, the field data of the difference data is overwritten according to the target component event. The compatible processing refers to the called data being compatible with the content of the difference data. At this time, the union of the two can be taken, and the function function of the target component event can be called to perform synchronous or asynchronous processing on the difference event to obtain processed data.

[0109] In the embodiment of the present invention, by using the processing microservice to process the difference data, the processed data obtained can improve the compatibility of the system with new services, facilitate the configuration and deployment of new services, and improve the efficiency of the system.

[0110] The embodiment of the present invention can functionalize the business to be added by extracting differential events from the differential business, and can customize the business functions to be added by packaging the differential events into differential components, so that the business functions to be added can be processed independently of the system. By configuring the component parameters of the differential components, the component events can be encrypted to facilitate subsequent calls while protecting the customer's data privacy. By obtaining the basic data corresponding to the differential functions and generating entry data based on the basic data, standard key parameters can be extracted. By recursively splitting the component parameters based on the entry data, multi-layer microservices can be obtained. The component parameters, hierarchical data, and technical data can be packaged into multi-layer microservices, thereby facilitating the application of services at each level and ensuring the independence of microservices.

[0111] By parsing the component parameters to obtain component events, it is convenient to call component events during service processing. By assembling the multi-layer microservices and the component events into differential microservices, the differential components and corresponding component events can be hierarchically matched, thereby facilitating subsequent on-demand calls. By obtaining the customer data to be processed and extracting differential data from the customer data, data that requires customized processing can be screened out. By obtaining customer requirements based on the differential data and extracting corresponding processing microservices from the differential microservices based on the customer requirements, corresponding customized functions can be selected to process customer data according to customer requirements. By using the processing microservice to process the differential data and obtain processed data, the system's compatibility with new services is improved, and the configuration and deployment of new services is facilitated, thereby improving the efficiency of the system. Therefore, the microservice processing method based on customer differences proposed in the present invention can solve the problem of low efficiency when expanding system services.

[0112] like Figure 4 , which is a functional module diagram of a microservice processing device based on customer differences provided by an embodiment of the present invention.

[0113] The client-differentiation-based microservice processing device 100 of the present invention can be installed in an electronic device. Depending on the functionality implemented, the client-differentiation-based microservice processing device 100 may include a component configuration module 101, a component decomposition module 102, a service assembly module 103, a data screening module 104, and a service invocation module 105. A module, also referred to as a unit, is a series of computer program segments that can be executed by an electronic device processor and perform a fixed function, and is stored in the electronic device's memory.

[0114] In this embodiment, the functions of each module / unit are as follows:

[0115] The component configuration module 101 is used to obtain difference services, extract difference events from the difference services, package the difference events into difference components, and configure component parameters of the difference components;

[0116] The component splitting module 102 is used to obtain basic data corresponding to the difference functions, generate entry data based on the basic data, and recursively split the component parameters based on the entry data to obtain multi-layer microservices;

[0117] The service assembly module 103 is used to decrypt the component parameters to obtain component events, and assemble the multi-layer microservices and the component events into differentiated microservices;

[0118] The data screening module 104 is used to obtain customer data to be processed, extract difference data from the customer data, and extract corresponding processing microservices from the difference microservices according to customer requirements of the difference data;

[0119] The service calling module 105 is used to use the processing microservice to process the difference data to obtain processed data.

[0120] In detail, each module in the microservice processing device 100 based on customer differences in the embodiment of the present invention adopts the same Figures 1 to 3 The same technical means are used as the microservice processing method based on customer differences described in , and can produce the same technical effects, so I will not go into details here.

[0121] like Figure 5 , which is a structural diagram of an electronic device for implementing a microservice processing method based on customer differences provided by an embodiment of the present invention.

[0122] The electronic device 1 may include a processor 10, a memory 11, a communication bus 12, and a communication interface 13, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as a microservice processing program based on customer differences.

[0123] In some embodiments, the processor 10 may be composed of an integrated circuit, such as a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and a combination of various control chips. The processor 10 is the control core (Control Unit) of the electronic device, connecting the various components of the entire electronic device using various interfaces and lines, and executing programs or modules stored in the memory 11 (such as executing microservice processing programs based on customer differences) and calling data stored in the memory 11 to perform various functions of the electronic device and process data.

[0124] The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a mobile hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a magnetic memory, a disk, an optical disk, etc. In some embodiments, the memory 11 can be an internal storage unit of an electronic device, such as a mobile hard disk of the electronic device. In other embodiments, the memory 11 can also be an external storage device of an electronic device, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device. Furthermore, the memory 11 can also include both an internal storage unit of the electronic device and an external storage device. The memory 11 can not only be used to store application software and various types of data installed in the electronic device, such as the code of a microservice processing program based on customer differences, but can also be used to temporarily store data that has been output or is to be output.

[0125] The communication bus 12 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to enable communication between the memory 11 and at least one processor 10, etc.

[0126] The communication interface 13 is used for communication between the above-mentioned electronic device and other devices, including a network interface and a user interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a display (Display), an input unit (such as a keyboard (Keyboard)), optionally, the user interface may also be a standard wired interface, a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode, organic light-emitting diode) touch device, etc. Among them, the display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device and to display a visual user interface.

[0127] The figure only shows an electronic device with components. Those skilled in the art will understand that the structure shown in the figure does not constitute a limitation on the electronic device, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.

[0128] For example, although not shown, the electronic device may further include a power source (such as a battery) for powering various components. Preferably, the power source may be logically connected to the at least one processor 10 via a power management device, thereby implementing functions such as charge management, discharge management, and power consumption management through the power management device. The power source may further include any components such as one or more DC or AC power sources, a recharging device, a power failure detection circuit, a power converter or inverter, a power status indicator, etc. The electronic device may further include various sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be described in detail here.

[0129] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.

[0130] The microservice processing program based on customer differences stored in the memory 11 of the electronic device 1 is a combination of multiple instructions. When running in the processor 10, it can achieve the following:

[0131] Acquire difference services, extract difference events from the difference services, package the difference events into difference components, and configure component parameters of the difference components;

[0132] Obtaining basic data corresponding to the difference function, generating entry data based on the basic data, and recursively splitting the component parameters based on the entry data to obtain multi-layer microservices;

[0133] Decrypt the component parameters to obtain component events, and assemble the multi-layer microservices and the component events into differentiated microservices;

[0134] Obtaining customer data to be processed, extracting difference data from the customer data, and extracting corresponding processing microservices from the difference microservices according to customer requirements of the difference data;

[0135] The processing microservice is used to process the difference data to obtain processed data.

[0136] Specifically, the specific implementation method of the processor 10 for the above instructions can refer to the description of the relevant steps in the corresponding embodiment of the accompanying drawings, which will not be repeated here.

[0137] Furthermore, if the modules / units integrated into the electronic device 1 are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard drive, a magnetic disk, an optical disk, a computer memory, or a read-only memory (ROM).

[0138] The present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program. When the computer program is executed by a processor of an electronic device, the computer program can implement:

[0139] Acquire difference services, extract difference events from the difference services, package the difference events into difference components, and configure component parameters of the difference components;

[0140] Obtaining basic data corresponding to the difference function, generating entry data based on the basic data, and recursively splitting the component parameters based on the entry data to obtain multi-layer microservices;

[0141] Decrypt the component parameters to obtain component events, and assemble the multi-layer microservices and the component events into differentiated microservices;

[0142] Obtaining customer data to be processed, extracting difference data from the customer data, and extracting corresponding processing microservices from the difference microservices according to customer requirements of the difference data;

[0143] The processing microservice is used to process the difference data to obtain processed data.

[0144] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the module division is merely a logical function division, and other division methods may be used in actual implementation.

[0145] The modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed across multiple network elements. Some or all of the modules may be selected to achieve the purpose of the solution of this embodiment according to actual needs.

[0146] In addition, the functional modules in various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or hardware plus software functional modules.

[0147] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.

[0148] Therefore, the embodiments should be considered in all respects as illustrative and non-restrictive, and the scope of the invention is defined by the appended claims rather than the foregoing description, and all changes that come within the meaning and range of equivalents of the claims are intended to be embraced therein. Any reference to a figure in a claim should not be construed as limiting the claim to which it relates.

[0149] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Artificial Intelligence (AI) is the theory, method, technology, and application system that uses digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use knowledge to achieve optimal results.

[0150] Furthermore, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices recited in a system claim may also be implemented by a single unit or device through software or hardware. Terms such as "first" and "second" are used to indicate names and do not imply any particular order.

[0151] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not limiting. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention.

Claims

1. A microservice processing method based on customer differences, characterized in that: The method comprises: Obtaining a difference service, extracting a difference event from the difference service, packaging the difference event into a difference component, and configuring component parameters of the difference component; wherein configuring the component parameters of the difference component includes: extracting the component event from the difference component, transcoding the component event into a component byte sequence; generating a round encryption key using a preset encryption public key, performing a byte XOR operation on the component byte sequence using the round encryption key to obtain an XOR parameter; multiplying the XOR parameter with a preset inverse confusion matrix to obtain an obfuscation parameter, and cyclically right-shifting the obfuscation parameter to obtain a right-shift parameter; performing a byte replacement operation on the right-shift parameter using a preset inverse replacement table to obtain a component parameter; Obtain basic data corresponding to the differential function, generate entry data based on the basic data, and recursively split the component parameters based on the entry data to obtain a multi-layer microservice; wherein, the recursive splitting of the component parameters based on the entry data to obtain a multi-layer microservice includes: splitting the entry data into multiple hierarchical data according to the logical hierarchy, sorting all the hierarchical data in descending order according to the logical hierarchy to obtain a hierarchical data sequence; selecting hierarchical data in the hierarchical data sequence one by one as target hierarchical data, extracting hierarchical basic parameters corresponding to the target hierarchical data from preset basic parameters, and extracting hierarchical component parameters corresponding to the target hierarchical data from the component parameters; aggregating the target hierarchical data, the hierarchical basic parameters, and the hierarchical component parameters into a hierarchical microservice, and aggregating all hierarchical microservices into a multi-layer microservice; Decrypt the component parameters to obtain component events, and assemble the multi-layer microservices and the component events into differentiated microservices; Obtaining customer data to be processed, extracting difference data from the customer data, and extracting corresponding processing microservices from the difference microservices according to customer requirements of the difference data; The processing microservice is used to process the difference data to obtain processed data.

2. The microservice processing method based on customer differences according to claim 1, characterized in that: The extracting difference events from the difference services includes: Performing functional analysis on the difference services to obtain difference functions; Extracting functional functions and functional parameters from the difference functions; Initialize a difference event according to the function function and the function parameters.

3. The microservice processing method based on customer differences according to claim 1, characterized in that: Generating entry data according to the basic data includes: Classifying the basic data according to data types to obtain category data; The duplicate data, garbled data and offside data of each type of data in the data are deleted respectively to obtain entry data.

4. The microservice processing method based on customer differences according to claim 1, characterized in that: Decrypting the component parameters to obtain component events includes: Performing a byte replacement operation on the component parameter using a preset replacement table to obtain a right-shifted parameter; Circularly shifting the right-shifted parameter to the left to convert it into an obfuscation parameter, and performing a column obfuscation operation on the obfuscation certificate using a preset confusion matrix to obtain an XOR parameter; Performing an XOR operation on the XOR parameter using the round encryption key to obtain a component event.

5. The microservice processing method based on customer differences according to claim 1, characterized in that: The utilizing the processing microservice to process the difference data to obtain processed data includes: Extracting a hierarchical component event from the processing microservice as a target component event; Performing event authentication on the target component event to obtain an authentication result; When the authentication result is a difference result, the target component event is used to perform data overwriting processing on the difference data to obtain processed data; When the authentication result is a compatible result, the target component event is used to perform data compatibility processing on the difference data to obtain processed data.

6. A microservice processing device based on customer differences, characterized in that: The device comprises: A component configuration module is configured to obtain differential services, extract differential events from the differential services, package the differential events into differential components, and configure component parameters of the differential components; wherein, when configuring the component parameters of the differential components, the component configuration module includes: extracting the component events from the differential components, transcoding the component events into component byte sequences; generating a round encryption key using a preset encryption public key, performing a byte XOR operation on the component byte sequence using the round encryption key to obtain an XOR parameter; multiplying the XOR parameter with a preset inverse confusion matrix to obtain an obfuscation parameter, and cyclically right-shifting the obfuscation parameter to obtain a right-shift parameter; performing a byte replacement operation on the right-shift parameter using a preset inverse replacement table to obtain a component parameter; A component splitting module is used to obtain basic data corresponding to the differential functions, generate entry data based on the basic data, and recursively split the component parameters based on the entry data to obtain multi-layer microservices; wherein, when the component splitting module recursively splits the component parameters based on the entry data, the multi-layer microservices are obtained, including: splitting the entry data into multiple hierarchical data according to the logical hierarchy, sorting all the hierarchical data in order from large to small according to the logical hierarchy to obtain a hierarchical data sequence; selecting hierarchical data in the hierarchical data sequence one by one as target hierarchical data, extracting hierarchical basic parameters corresponding to the target hierarchical data from preset basic parameters, and extracting hierarchical component parameters corresponding to the target hierarchical data from the component parameters; aggregating the target hierarchical data, the hierarchical basic parameters and the hierarchical component parameters into a hierarchical microservice, and aggregating all hierarchical microservices into a multi-layer microservice; A service assembly module is used to decrypt the component parameters to obtain component events, and assemble the multi-layer microservices and the component events into differentiated microservices; A data screening module is used to obtain customer data to be processed, extract difference data from the customer data, and extract corresponding processing microservices from the difference microservices according to customer requirements of the difference data; The service calling module is used to use the processing microservice to process the difference data to obtain processed data.

7. 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 that can be executed 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 microservice processing method based on customer differences as described in any one of claims 1 to 5.

8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the microservice processing method based on customer differences as described in any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Full-link intelligent fault simulation and evaluation defense method in micro-service scene

    CN112491634A

  • Microservice cluster creation method and device, electronic equipment and readable storage medium

    CN113342472A