Business processing method and device, electronic equipment and computer readable medium
By obtaining event transmission channel nodes and interceptor interface identifiers, parsing asynchronous event messages to determine associated system, transaction and service identifiers, and obtaining service configuration data from the configuration center, the interceptor mode and event-driven architecture are adopted to solve the business problems in the existing technology. Solve the problem of low efficiency and achieve efficient and accurate business processing.
Patent Information
- Application Number
- CN202410838685.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-06-26
AI Technical Summary
In the existing technology, when adding new functions to business modules or transactions in project engineering, existing codes need to be modified, resulting in more code intrusions, and the interface is blocked for a long time waiting for results, resulting in low business processing efficiency and low accuracy.
By responding to business processing requests, obtain event transmission channel node identifiers and interceptor interface identifiers, obtain asynchronous event messages, parse associated system, transaction and service identifiers according to message processing methods, and obtain service configuration data from the configuration center to perform business linkage service processing , using interceptor mode and event-driven architecture for business processing.
It improves business processing efficiency, reduces code intrusion, avoids the problem of long-term blocking of interfaces waiting for results, and achieves more efficient and accurate business processing.
Smart Images

Figure CN118764527A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a business processing method, device, electronic device and computer-readable medium. Background Art
[0002] Currently, when project engineering adds new functions to business modules or transactions, it is necessary to modify the existing code, which intrudes more on the business code. In addition, when processing the business, the interface is blocked for a long time waiting for the results, resulting in low business processing efficiency and low accuracy. Summary of the invention
[0003] In view of this, the embodiments of the present application provide a business processing method, device, electronic device and computer-readable medium, which can solve the problem that when processing business, the interface is blocked for a long time waiting for the result, resulting in low business processing efficiency and low accuracy.
[0004] To achieve the above-mentioned purpose, according to one aspect of an embodiment of the present application, a business processing method is provided, including: in response to a business processing request, obtaining a corresponding event transmission channel node identifier and an interceptor interface identifier; obtaining a corresponding asynchronous event message according to the event transmission channel node identifier and the interceptor interface identifier; obtaining a message processing method corresponding to the interceptor interface identifier, and then parsing the asynchronous event message according to the message processing method to determine an associated system identifier, an associated transaction identifier, and an associated service identifier; determining a target service based on the associated system identifier, the associated transaction identifier, and the associated service identifier; obtaining service configuration data corresponding to the target service from a configuration center to perform business linkage service processing based on the service configuration data.
[0005] Optionally, obtaining the corresponding asynchronous event message includes: obtaining, from an interface corresponding to the interceptor interface identifier, the asynchronous event message transmitted via a transmission channel corresponding to the transmission channel node identifier.
[0006] Optionally, the method further includes: generating a summary value of the changed configuration in response to a configuration change in the configuration center; and sending the summary value to a target subscriber client so that the target subscriber client updates a corresponding locally cached data layer based on the summary value.
[0007] Optionally, before obtaining the service configuration data corresponding to the target service from the configuration center, the method also includes: in response to a configuration change operation on the configuration center, popping up a window to prompt access verification information; obtaining feedback information from the user based on the access verification information, querying a registered user database based on the feedback information, and in response to the query result being not empty, determining that the access verification has passed, and executing the acquisition process of the service configuration data corresponding to the target service from the configuration center; in response to the query result being empty, prompting that there is no access permission information.
[0008] Optionally, the method further includes: monitoring the status of the configuration center in real time, and prompting an alarm message in response to an abnormal status.
[0009] Optionally, determining the target service includes: determining an associated transaction corresponding to the associated transaction identifier in the associated system corresponding to the associated system identifier; and determining the associated service corresponding to the associated service identifier under the associated transaction as the target service.
[0010] In addition, the present application also provides a business processing device, including: a first acquisition unit, configured to obtain the corresponding event transmission channel node identifier and interceptor interface identifier in response to a business processing request; a second acquisition unit, configured to obtain the corresponding asynchronous event message based on the event transmission channel node identifier and the interceptor interface identifier; a parsing unit, configured to obtain the message processing method corresponding to the interceptor interface identifier, and then parse the asynchronous event message according to the message processing method to determine the associated system identifier, the associated transaction identifier and the associated service identifier; a target service determination unit, configured to determine the target service based on the associated system identifier, the associated transaction identifier and the associated service identifier; an execution unit, configured to obtain the service configuration data corresponding to the target service from the configuration center, so as to execute business linkage service processing based on the service configuration data.
[0011] Optionally, the second acquisition unit is further configured to: acquire, from the interface corresponding to the interceptor interface identifier, the asynchronous event message transmitted via the transmission channel corresponding to the transmission channel node identifier.
[0012] Optionally, the device also includes an update unit configured to: generate a summary value of the changed configuration in response to a configuration change in the configuration center; send the summary value to the target subscriber client so that the target subscriber client updates the corresponding locally cached data layer based on the summary value.
[0013] Optionally, the device also includes an access verification unit, which is configured to: in response to a configuration change operation on the configuration center, pop up a window to prompt access verification information; obtain feedback information from the user based on the access verification information, query the registered user database based on the feedback information, and in response to the query result being not empty, determine that the access verification is passed, and execute the acquisition process of the service configuration data corresponding to the target service from the configuration center; in response to the query result being empty, prompt that there is no access permission information.
[0014] Optionally, the device further includes an alarm unit configured to: monitor the status of the configuration center in real time, and prompt an alarm message in response to an abnormal status.
[0015] Optionally, the target service determination unit is further configured to: determine an associated transaction corresponding to the associated transaction identifier in the associated system corresponding to the associated system identifier; and determine an associated service corresponding to the associated service identifier under the associated transaction as the target service.
[0016] In addition, the present application also provides a business processing electronic device, including: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by one or more processors, the one or more processors implement the business processing method as described above.
[0017] In addition, the present application also provides a computer-readable medium on which a computer program is stored, and when the program is executed by a processor, the business processing method as described above is implemented.
[0018] To achieve the above objective, according to another aspect of the embodiments of the present application, a computer program product is provided.
[0019] A computer program product according to an embodiment of the present application includes a computer program, and when the program is executed by a processor, the business processing method provided by the embodiment of the present application is implemented.
[0020] One embodiment of the above invention has the following advantages or beneficial effects: the present application obtains the corresponding event transmission channel node identifier and interceptor interface identifier by responding to the business processing request; obtains the corresponding asynchronous event message according to the event transmission channel node identifier and the interceptor interface identifier; obtains the message processing method corresponding to the interceptor interface identifier, and then parses the asynchronous event message according to the message processing method to determine the associated system identifier, the associated transaction identifier and the associated service identifier; determines the target service based on the associated system identifier, the associated transaction identifier and the associated service identifier; obtains the service configuration data corresponding to the target service from the configuration center, so as to perform business linkage service processing based on the service configuration data. Business processing is performed based on the interceptor mode and event-driven architecture to improve business processing efficiency.
[0021] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with specific implementation examples. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The accompanying drawings are used to better understand the present application and do not constitute an improper limitation on the present application.
[0023] Figure 1 is a schematic diagram of the main process of a business processing method according to an embodiment of the present application;
[0024] Figure 2 is a schematic diagram of the main process of a business processing method according to an embodiment of the present application;
[0025] Figure 3 It is a schematic diagram of a solution of a business processing method according to an embodiment of the present application;
[0026] Figure 4is a schematic diagram of a configuration center architecture of a business processing method according to an embodiment of the present application;
[0027] Figure 5 is a schematic diagram of main units of a service processing device according to an embodiment of the present application;
[0028] Figure 6 is an exemplary system architecture diagram to which the embodiments of the present application can be applied;
[0029] Figure 7 It is a structural diagram of a computer system of a terminal device or server suitable for implementing an embodiment of the present application. DETAILED DESCRIPTION
[0030] The following is a description of the exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, and they should be considered as merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the description of known functions and structures is omitted in the following description. It should be noted that the acquisition, transmission, storage, use, and processing of data in the technical solution of the present application are in compliance with the relevant provisions of national laws and regulations. It should be noted that in the embodiments of the present application, certain software, components, models, and other existing solutions in the industry may be mentioned, which should be considered as exemplary, and their purpose is only to illustrate the feasibility of the implementation of the technical solution of the present application, but it does not mean that the applicant has or must have used the solution. In the technical solution of the present application, the collection, analysis, use, transmission, storage, and other aspects of the user's personal information involved are in compliance with the provisions of relevant laws and regulations, and are used for legal and reasonable purposes, and are not shared, leaked, or sold outside of these legal uses, and are subject to supervision and management by regulatory authorities. Take necessary measures to prevent illegal access to such personal information, ensure that persons with access to personal information comply with relevant laws and regulations, and ensure the security of personal information. Once such personal information is no longer needed, risks should be minimized by limiting or even prohibiting data collection and / or deleting data.
[0031] When used, including in certain related applications, user privacy is protected by de-identifying data, such as by removing specific identifiers when used, controlling the amount or specificity of data stored, controlling how data is stored, and / or other methods of de-identification.
[0032] Figure 1 is a schematic diagram of the main process of a business processing method according to an embodiment of the present application, such as Figure 1As shown, the business processing method mainly includes the following steps S101 to S105.
[0033] Step S101, in response to a business processing request, obtaining a corresponding event transmission channel node identifier and an interceptor interface identifier.
[0034] In this embodiment, the execution subject of the business processing method (for example, it can be a server) can receive the business processing request through a wired connection or a wireless connection. After receiving the business processing request, the execution subject can obtain the event transmission channel node identifier and the interceptor interface identifier carried in the request. Among them, the event transmission channel node identifier (i.e., the event transmission channel node ID) can be used to uniquely determine a certain event occurrence end\event processing engine\event application end. The interceptor interface identifier can be used to determine the interface for obtaining the intercepted asynchronous event message.
[0035] Step S102: Obtain the corresponding asynchronous event message according to the event transmission channel node identifier and the interceptor interface identifier.
[0036] An interceptor can intercept service requests sent by one or more event transmission channels, determine the corresponding interceptor interface through the interceptor interface identifier, obtain the service requests sent from the event transmission channels corresponding to each event transmission channel node identifier from the interceptor interface, and assemble them into asynchronous event messages.
[0037] Step S103, obtaining the message processing method corresponding to the interceptor interface identifier, and then parsing the asynchronous event message according to the message processing method to determine the associated system identifier, the associated transaction identifier and the associated service identifier.
[0038] The interceptor interface contains a method for processing messages. The execution subject can determine the corresponding interceptor interface according to the interceptor interface identifier to obtain the corresponding message processing method from the determined interceptor interface. According to the obtained message processing method, the obtained asynchronous event message is parsed from the system dimension, transaction dimension and service dimension to obtain the associated system identifier, associated transaction identifier and associated service identifier.
[0039] Step S104, determining the target service based on the associated system identifier, the associated transaction identifier and the associated service identifier.
[0040] The transaction is associated with the system, and the service is associated with the transaction. Specifically, determining the target service includes: determining the associated transaction corresponding to the associated transaction identifier in the associated system corresponding to the associated system identifier; and determining the associated service corresponding to the associated service identifier under the associated transaction as the target service.
[0041] The associated transaction corresponding to the associated transaction identifier is found in the transactions involved in the associated system corresponding to the associated system identifier, and then the associated service corresponding to the associated service identifier is found from each associated service bound to the associated transaction and used as the target service.
[0042] Step S105: Acquire service configuration data corresponding to the target service from the configuration center to perform business linkage service processing based on the service configuration data.
[0043] The service configuration data may include a reachable method for the target service, that is, a method for connecting to the target service. The execution subject may connect to the target service according to the reachable method for the target service in the service configuration data. For example, the target service may be distributed in different systems and under different transactions. By calling and executing the target services in different systems and under different transactions, business linkage service processing of different systems and different transactions can be realized.
[0044] Specifically, the method also includes: generating a summary value of the changed configuration in response to a configuration change in the configuration center; sending the summary value to the target subscriber client so that the target subscriber client updates the corresponding locally cached data layer based on the summary value.
[0045] For example, when the configuration changes, the server generates a summary value of the configuration and pushes it to each subscribing client; the client determines the change of the locally cached configuration summary value in quasi-real time based on the configuration summary value. If it is inconsistent with the server, it automatically pulls the configuration and updates the local cache to achieve dynamic refresh of the configuration.
[0046] Specifically, before obtaining the service configuration data corresponding to the target service from the configuration center, the method also includes: in response to a configuration change operation on the configuration center, a pop-up window prompts access verification information; obtaining feedback information from the user based on the access verification information, querying the registered user database based on the feedback information, and in response to the query result being not empty, determining that the access verification is passed, and executing the acquisition process of the service configuration data corresponding to the target service from the configuration center; in response to the query result being empty, prompting that there is no access permission information.
[0047] In the embodiment of the present application, the feedback information may include a user identifier, such as a user account and password. If the query result is not empty, it indicates that there is information matching the feedback information in the registered user database, and the matching information may be a user identifier, and the access verification is determined to be passed. If the query result is empty, it indicates that there is no information matching the feedback information in the registered user database, and the access verification fails, prompting information that there is no access right, so as to deny the user's access and ensure the security of the configuration data.
[0048] Configuration publishing and subscription support role-based access control to ensure the security of configuration data.
[0049] This embodiment obtains the corresponding event transmission channel node identifier and interceptor interface identifier in response to the business processing request; obtains the corresponding asynchronous event message according to the event transmission channel node identifier and the interceptor interface identifier; obtains the message processing method corresponding to the interceptor interface identifier, and then parses the asynchronous event message according to the message processing method to determine the associated system identifier, the associated transaction identifier and the associated service identifier; determines the target service based on the associated system identifier, the associated transaction identifier and the associated service identifier; obtains the service configuration data corresponding to the target service from the configuration center, and executes the business linkage service processing based on the service configuration data. Business processing is performed based on the interceptor mode and event-driven architecture to improve business processing efficiency.
[0050] Figure 2 is a main flow chart of a business processing method according to an embodiment of the present application, such as Figure 2 As shown, the business processing method mainly includes the following steps S201 to S205.
[0051] Step S201, in response to a business processing request, obtain a corresponding event transmission channel node identifier and an interceptor interface identifier.
[0052] The event transmission channel node identifier (i.e., event transmission channel node ID) can be used to uniquely identify an event occurrence end, event processing engine, or event application end. The interceptor interface identifier can be used to identify the interface for obtaining intercepted asynchronous event messages.
[0053] Step S202: Acquire, from the interface corresponding to the interceptor interface identifier, an asynchronous event message transmitted via the transmission channel corresponding to the transmission channel node identifier.
[0054] The interceptor mode is used to send asynchronous messages. Specifically, the execution subject can obtain the service request sent from the event transmission channel corresponding to each event transmission channel node identifier from the interceptor interface, and assemble it into an asynchronous event message to send to the downstream system.
[0055] Step S203, obtaining the message processing method corresponding to the interceptor interface identifier, and then parsing the asynchronous event message according to the message processing method to determine the associated system identifier, the associated transaction identifier and the associated service identifier.
[0056] The interceptor interface contains methods for processing messages. The execution subject can determine the target message processing method based on the asynchronous event message, and first find out whether the target message processing method exists in the interceptor interface corresponding to the interceptor interface identifier. If it exists, the target message processing method is obtained to parse the asynchronous event message, and the associated system identifier, associated transaction identifier and associated service identifier are obtained to ensure the accuracy of the asynchronous event message parsing; if the target message processing method does not exist in the interceptor interface corresponding to the interceptor interface identifier, the message that the parsing cannot be done is prompted to prompt the user to find other methods to parse the asynchronous event message, or the execution subject can call the general message processing method to parse the asynchronous event message to obtain the associated system identifier, associated transaction identifier and associated service identifier when the target message processing method does not exist in the interceptor interface corresponding to the interceptor interface identifier. This ensures the success rate of business processing.
[0057] Step S204: determining the target service based on the associated system identifier, the associated transaction identifier and the associated service identifier.
[0058] The execution subject can find the associated transaction corresponding to the associated transaction identifier in the transactions involved in the associated system corresponding to the associated system identifier, and then find the associated service corresponding to the associated service identifier from each associated service bound to the associated transaction and use it as the target service.
[0059] Step S205: Acquire service configuration data corresponding to the target service from the configuration center to perform business linkage service processing based on the service configuration data.
[0060] Specifically, the business processing method further includes: real-time monitoring of the state of the configuration center, and prompting an alarm message in response to an abnormal state, so as to respond in time when the state of the configuration center is abnormal, thereby improving the efficiency and accuracy of business processing.
[0061] Figure 3 FIG. 1 is a schematic diagram of a business processing method according to an embodiment of the present application. Figure 3 As shown, the main system receives each service request, calls the interceptor to intercept each service request and sends an EDA message to the target downstream system (for example, it can be downstream system A or downstream system B or downstream system C), so that the target downstream system processes the corresponding business based on the EDA message. The business contact configuration center (the server of the business contact configuration center can be the executive subject of the embodiment of the present application) connects the main system and the downstream system, the main system specifies the business EDA business linkage specification, and the downstream system receives EDA and processes the business linkage according to the specification. The business contact configuration center can be refreshed online dynamically to realize the main system|interceptor|transaction request|EDA|downstream system|business linkage rule service.
[0062] System-level interceptor for transaction requests: The interceptor pattern is a commonly used design pattern that allows you to add new functionality to an object without modifying existing code. In the asynchronous message notification solution, we can use the interceptor pattern to implement message processing and distribution.
[0063] The following is an implementation of a business processing method for asynchronous message notification based on the interceptor pattern.
[0064] Define a message interface, including methods for sending messages; create a message processor interface, including methods for processing messages; create an interceptor interface, including methods for processing messages; create a message processor factory to create message processor instances.
[0065] Implement a concrete interceptor: Implement a concrete message handler: Use the interceptor pattern to send asynchronous messages.
[0066] Cross-system-level business linkage configuration center, design a cross-system-level business linkage configuration center, which is used for the main system to register and publish relevant EDA and business linkage rules in the configuration center, and subscribe to EDA and execute business linkage services for downstream systems. The configuration center supports online dynamic refresh, and realizes hot plugging at the system level, transaction level, and service level. The configuration center implements the following functions: Configuration management: publish APIs to support configuration addition, deletion, modification, and query operations. Version control: record historical versions of configurations to facilitate rollback and upgrade version control. Dynamic update: When the configuration changes, the server generates a summary value of the configuration and pushes it to each subscriber client; the client judges the change of the configuration summary value of the local cache in quasi-real time based on the configuration summary value. If it is inconsistent with the server, it automatically pulls the configuration and updates the local cache to realize dynamic refresh of the configuration. Access control: Configuration publishing and subscription support role-based access control to ensure the security of configuration data. Monitoring and alarm: Real-time monitoring of the status of the configuration center, and timely alarm when abnormalities are found.
[0067] The main system formulates business EDA business linkage specifications: The main system registers and publishes relevant EDA and business linkage rules and services in the configuration center according to the following rules. Main system | Interceptor | Transaction request | EDA | Downstream system | Business linkage rule service. Formulate message channel: Operation type: Description: Add, modify, delete; required. Platform: Description: Empty. Logical subsystem: Description: The Chinese name of the logical subsystem to which it belongs, required. Component name: Required. Security node number: Description: The security node number corresponding to the event transmission channel node, required. Event transmission channel node ID: Description: Uniquely determine a certain event occurrence end\event processing engine\event application end, required. Multi-legal person identifier: Description: Determine the multi-legal person identifier for subscribing / publishing events, each multi-legal person identifier occupies one record, required. Register EDA message: Operation type: Description: Add, modify, delete; required. Event code: Description: The unique event code, required. Event name: Description: Event name, required, generally used as a noun or verb. Event mode: 1. The length of the data item must be 2 characters; 2. The data item must consist of letters and numbers; 3. The content of the data item cannot be empty; 4. The data item options are: M1 / M2, where "M1" represents the publish-subscribe mode, "M2" represents the "one-to-one mode", and the default value is M1. Event version: Description: Event version number, length is 2, required. Publish event associated service: Description: The online or transaction service ID associated with the event, required, if there are multiple, fill in multiple. Publish event transmission channel node ID: Description: The node number corresponding to the publisher, required. Multi-legal entity identifier: Description: The multi-legal entity identifier corresponding to the event publisher, required. Event description: Description: Detailed description of the event, event content, required. Publish EDA message specification: Event code: MQXXXXXXX; multi-legal entity identifier; event description; event message: field item name, Chinese name, data item number, input length, field attribute, required, flag, supplementary description.
[0068] The downstream system receives EDA and processes business linkage according to the specification: The downstream system subscribes to the relevant EDA and business linkage rules in the configuration center according to the following rules, and executes the business linkage service. Main system | Interceptor | Transaction request | EDA | Downstream system | Business linkage rule service. Subscribe to EDA event message: Operation type: Description: Add, modify, delete; required. Subscribe to event transmission channel node ID: Description: The subscriber's own, required. Multi-legal person identifier: Description: The multi-legal person identifier corresponding to the event subscriber, required. Event code: Description: The subscribed event code, required; the event code of the source published event. Event name: Description: The subscribed event name, required; the event name of the source published event. Subscribe to event related services: Description: The online or transaction service ID associated with event subscription and subsequent processing, required, if there are multiple, fill in multiple. Subscribe to event topic: Description: The subscribed event topic, optional. Execute business linkage: After the downstream system subscribes and receives according to EDA, it obtains the corresponding service from the configuration center and executes business linkage service processing.
[0069] Establish a cross-system-level business linkage configuration center for the main system to register and publish relevant EDA and business linkage rules in the configuration center, and subscribe to EDA and execute business linkage services for downstream systems. The configuration center supports online dynamic refresh to achieve hot plug-in at the system level, transaction level, and service level. Formulate system-level and transaction-level EDA message notification specifications. Realize the service execution capability of business linkage and enhance the service reuse level of linkage business. No intrusion to business. Using the interceptor mode, large-scale applications can be implanted without repeated development. Apply the adapter mode, parameterized configuration, adapt to multiple business function modules, and have scalability. Asynchronous messages, no sense of existing business processes. Establish a cross-system-level business linkage configuration center to support online dynamic refresh to achieve hot plug-in at the system level, transaction level, and service level. Formulate system-level and transaction-level EDA message notification specifications. Realize the service execution capability of business linkage and enhance the service reuse level of linkage business.
[0070] The interceptor pattern is a commonly used software engineering design pattern that allows project engineering to add new functions to business modules or transactions without modifying existing code. It is used to perform some pre-processing / post-processing on the application before or after processing a request or response. The interceptor pattern has three important elements: scheduler, interceptor, and business logic. The scheduler is responsible for scheduling the interceptor, and the interceptor is responsible for intercepting the business code and doing some operations before and after the business code. The interceptor will not call the business code directly because it will be coupled. After processing its own logic, the interceptor will notify the scheduler, and the scheduler will be responsible for the subsequent operations, whether to continue interception or call business logic. Asynchronous messaging is a message delivery method, which is characterized by the fact that the client does not need to wait all the time when waiting for messages from the server. Events are used here to trigger messages from the server, and the message delivery will be successfully completed even if the client is closed. This means that asynchronous messaging is a one-way communication method, and the communication process is one-way. The asynchronous processing mechanism is to send messages to a queue and process them asynchronously by the message receiver. This is different from the synchronous processing mechanism, which continuously obtains and processes messages in a loop, waiting for the event processing function to process synchronously. Asynchronous operation can also effectively solve problems such as long-term blocking of interfaces waiting for results. For example, assuming that the execution of the business logic of an interface itself only takes 50ms, while the message notification takes 500ms. If the call is made serially, the interface may be blocked for a long time waiting for the result. Through asynchronous operation, these problems can be effectively decoupled. In some complex cases, multithreading can be used to implement asynchronous messages, and the logic of message sending can be executed separately in an asynchronous thread. The embodiment of the present application combines the interceptor mode, the adapter mode, the EDA message, and the asynchronous processing mechanism to complete the non-intrusive linkage of the business. A cross-system-level business linkage configuration center is formulated to support online refresh, support seamless system expansion, and realize hot plug-in at the system level, transaction level, service level, etc. The interceptor mode, the adapter mode and the (event-driven architecture) EDA message are combined. In the application function processing logic, a unified interceptor is added, and the adapter mode is used to adapt different business modules, which can be parameterized and configured, support hot plug-in, and trigger business processing to send EDA messages.
[0071] Figure 4 FIG. 1 is a schematic diagram of a configuration center architecture of a business processing method according to an embodiment of the present application. Figure 4 As shown in the figure, the configuration center adopts a client-server architecture. The client obtains the configuration from the server. The server is responsible for storing and providing configuration data. The configuration center adopts a layered architecture: the data layer and application service are separated for easy maintenance and expansion.
[0072] Figure 5Schematic diagram of the main units of the service processing device according to an embodiment of the present application. Figure 5 As shown, the service processing device 500 includes a first acquisition unit 501 , a second acquisition unit 502 , a parsing unit 503 , a target service determination unit 504 and an execution unit 505 .
[0073] The first acquisition unit 501 is configured to acquire the corresponding event transmission channel node identifier and interceptor interface identifier in response to the business processing request.
[0074] The second acquisition unit 502 is configured to acquire the corresponding asynchronous event message according to the event transmission channel node identifier and the interceptor interface identifier.
[0075] The parsing unit 503 is configured to obtain the message processing method corresponding to the interceptor interface identifier, and then parse the asynchronous event message according to the message processing method to determine the associated system identifier, the associated transaction identifier and the associated service identifier.
[0076] The target service determination unit 504 is configured to determine the target service based on the associated system identifier, the associated transaction identifier and the associated service identifier.
[0077] The execution unit 505 is configured to obtain service configuration data corresponding to the target service from the configuration center, so as to execute business linkage service processing based on the service configuration data.
[0078] In some embodiments, the second acquisition unit 502 is further configured to: acquire, from the interface corresponding to the interceptor interface identifier, the asynchronous event message transmitted via the transmission channel corresponding to the transmission channel node identifier.
[0079] In some embodiments, the service processing device further includes Figure 5 The update unit not shown in the figure is configured to: generate a summary value of the changed configuration in response to a configuration change in the configuration center; send the summary value to the target subscriber client so that the target subscriber client updates the corresponding local cache data layer based on the summary value.
[0080] In some embodiments, the service processing device further includes Figure 5 The access verification unit not shown in the figure is configured to: in response to a configuration change operation on the configuration center, pop up a window to prompt access verification information; obtain feedback information from the user based on the access verification information, query the registered user database based on the feedback information, and in response to the query result being not empty, determine that the access verification has passed, and execute the acquisition process of the service configuration data corresponding to the target service from the configuration center; in response to the query result being empty, prompt that there is no access permission information.
[0081] In some embodiments, the service processing device further includes Figure 5The alarm unit not shown in the figure is configured to: monitor the status of the configuration center in real time, and prompt an alarm message in response to an abnormal status.
[0082] In some embodiments, the target service determination unit 504 is further configured to: determine the associated transaction corresponding to the associated transaction identifier in the associated system corresponding to the associated system identifier; and determine the associated service corresponding to the associated service identifier under the associated transaction as the target service.
[0083] It should be noted that the business processing method and the business processing device of the present application have a corresponding relationship in terms of specific implementation content, so the repeated content will not be described again.
[0084] Figure 6 An exemplary system architecture 600 to which the service processing method or service processing device according to the embodiment of the present application can be applied is shown.
[0085] like Figure 6 As shown, system architecture 600 may include terminal devices 601, 602, 603, network 604 and server 605. Network 604 is used to provide a medium for communication links between terminal devices 601, 602, 603 and server 605. Network 604 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0086] Users can use terminal devices 601, 602, and 603 to interact with server 605 through network 604 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 601, 602, and 603, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only examples).
[0087] The terminal devices 601, 602, and 603 may be various electronic devices having a service processing screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0088] Server 605 can be a server that provides various services, such as a background management server that provides support for business processing requests submitted by users using terminal devices 601, 602, and 603 (only as an example). The background management server can respond to the business processing request and obtain the corresponding event transmission channel node identifier and interceptor interface identifier; obtain the corresponding asynchronous event message according to the event transmission channel node identifier and the interceptor interface identifier; obtain the message processing method corresponding to the interceptor interface identifier, and then parse the asynchronous event message according to the message processing method to determine the associated system identifier, the associated transaction identifier, and the associated service identifier; determine the target service based on the associated system identifier, the associated transaction identifier, and the associated service identifier; obtain the service configuration data corresponding to the target service from the configuration center to perform business linkage service processing based on the service configuration data. Business processing is performed based on the interceptor mode and event-driven architecture to improve business processing efficiency.
[0089] It should be noted that the business processing method provided in the embodiment of the present application is generally executed by the server 605 , and accordingly, the business processing device is generally set in the server 605 .
[0090] It should be understood that Figure 6 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.
[0091] Reference below Figure 7 , which shows a schematic diagram of the structure of a computer system 700 of a terminal device suitable for implementing an embodiment of the present application. Figure 7 The terminal device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0092] like Figure 7 As shown, the computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage part 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the computer system 700 are also stored. The CPU 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0093] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed, so that a computer program read therefrom is installed into the storage section 708 as needed.
[0094] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 709, and / or installed from the removable medium 711. When the computer program is executed by the central processing unit (CPU) 701, the above-mentioned functions defined in the system of the present application are executed.
[0095] It should be noted that the computer-readable medium shown in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. Computer-readable storage media may include, for example, but are not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, 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 above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0096] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0097] The units involved in the embodiments described in the present application may be implemented by software or hardware. The units described may also be set in a processor, for example, it may be described as: a processor includes a first acquisition unit, a second acquisition unit, a parsing unit, a target service determination unit, and an execution unit. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0098] As another aspect, the present application also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device responds to the business processing request, obtains the corresponding event transmission channel node identifier and interceptor interface identifier; obtains the corresponding asynchronous event message according to the event transmission channel node identifier and the interceptor interface identifier; obtains the message processing method corresponding to the interceptor interface identifier, and then parses the asynchronous event message according to the message processing method to determine the associated system identifier, the associated transaction identifier and the associated service identifier; determines the target service based on the associated system identifier, the associated transaction identifier and the associated service identifier; obtains the service configuration data corresponding to the target service from the configuration center, so as to perform business linkage service processing based on the service configuration data.
[0099] The computer program product of the present application includes a computer program, and when the computer program is executed by a processor, the business processing method in the embodiment of the present application is implemented.
[0100] According to the technical solution of the embodiment of the present application, business processing is performed based on the interceptor mode and event-driven architecture to improve business processing efficiency.
[0101] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.
Claims
1. A business processing method, characterized in that: include: In response to the business processing request, obtain the corresponding event transmission channel node identifier and interceptor interface identifier; According to the event transmission channel node identifier and the interceptor interface identifier, obtaining the corresponding asynchronous event message; Obtaining a message processing method corresponding to the interceptor interface identifier, and then parsing the asynchronous event message according to the message processing method to determine an associated system identifier, an associated transaction identifier, and an associated service identifier; Determining a target service based on the associated system identifier, the associated transaction identifier, and the associated service identifier; The service configuration data corresponding to the target service is obtained from the configuration center to perform business linkage service processing based on the service configuration data.
2. The method according to claim 1, characterized in that: The obtaining of the corresponding asynchronous event message includes: An asynchronous event message transmitted via the transmission channel corresponding to the transmission channel node identifier is obtained from the interface corresponding to the interceptor interface identifier.
3. The method according to claim 1, characterized in that The method further comprises: In response to a configuration change occurring in the configuration center, generating a summary value of the changed configuration; The summary value is sent to the target subscriber client, so that the target subscriber client updates the corresponding locally cached data layer based on the summary value.
4. The method according to claim 1, characterized in that: Before acquiring the service configuration data corresponding to the target service from the configuration center, the method further includes: In response to a configuration change operation on the configuration center, a pop-up window prompts access verification information; Obtain feedback information from the user based on the access verification information, query the registered user database based on the feedback information, and in response to the query result being not empty, determine that the access verification has passed, and execute the acquisition process of the service configuration data corresponding to the target service from the configuration center; in response to the query result being empty, prompt that there is no access permission information.
5. The method according to claim 1, characterized in that The method further comprises: The status of the configuration center is monitored in real time, and an alarm message is prompted in response to the status being abnormal.
6. The method according to claim 1, characterized in that The target service determination includes: Determine the associated transaction corresponding to the associated transaction identifier in the associated system corresponding to the associated system identifier; The associated service corresponding to the associated service identifier under the associated transaction is determined as a target service.
7. A service processing device, characterized in that: include: A first acquisition unit is configured to acquire a corresponding event transmission channel node identifier and an interceptor interface identifier in response to a business processing request; A second acquisition unit is configured to acquire a corresponding asynchronous event message according to the event transmission channel node identifier and the interceptor interface identifier; A parsing unit, configured to obtain a message processing method corresponding to the interceptor interface identifier, and then parse the asynchronous event message according to the message processing method to determine an associated system identifier, an associated transaction identifier, and an associated service identifier; a target service determination unit configured to determine a target service based on the associated system identifier, the associated transaction identifier and the associated service identifier; The execution unit is configured to obtain service configuration data corresponding to the target service from a configuration center to execute business linkage service processing based on the service configuration data.
8. The device according to claim 7, characterized in that The second acquisition unit is further configured to: An asynchronous event message transmitted via the transmission channel corresponding to the transmission channel node identifier is obtained from the interface corresponding to the interceptor interface identifier.
9. The device according to claim 7, characterized in that The apparatus further comprises an updating unit configured to: In response to a configuration change occurring in the configuration center, generating a summary value of the changed configuration; The summary value is sent to the target subscriber client, so that the target subscriber client updates the corresponding locally cached data layer based on the summary value.
10. The device according to claim 7, characterized in that The device also includes an access verification unit configured to: In response to a configuration change operation on the configuration center, a pop-up window prompts access verification information; Acquire feedback information from the user based on the access verification information, query a registered user database based on the feedback information, and in response to the query result being not empty, determine that the access verification is passed, and execute an acquisition process for acquiring service configuration data corresponding to the target service from a configuration center; In response to the query result being empty, a prompt is given indicating that there is no access permission information.
11. The device according to claim 7, characterized in that The device also includes an alarm unit configured to: The status of the configuration center is monitored in real time, and an alarm message is prompted in response to the status being abnormal.
12. The device according to claim 7, characterized in that The target service determination unit is further configured to: Determine the associated transaction corresponding to the associated transaction identifier in the associated system corresponding to the associated system identifier; The associated service corresponding to the associated service identifier under the associated transaction is determined as a target service.
13. A business processing electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 6.
14. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
SYSTEM AND DEVICE FOR GUARANTEED EXACT ONE-TIME PROCESSING OF AN EVENT IN A DIVIDED EVENT-POWERED ENVIRONMENT
BE1024939B1
End-user application customization using rules
CN101410824A
Method and device for processing business process
CN111831461A
Service access control method and device, storage medium and controller
CN114024733A
Business processing method and device, electronic equipment and computer readable medium
CN117041959A
Cited By
Business linkage processing method and device of enterprise information system, computer program product and readable storage medium
CN121764519A
