A business information processing method, device, server, medium and system
By adding environment identifiers to business requests and using the aspect-oriented programming proxy mode, the problem of the online environment being unable to consume messages due to the whitelist not being removed when the application goes online from the test environment is solved. Environment isolation is achieved to ensure that each environment only consumes Its own message improves the accuracy and real-time nature of business processing.
Patent Information
- Application Number
- CN202011322540.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-23
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2040-11-23
AI Technical Summary
When the application goes online from the test environment, it is easy to forget to remove the whitelist, causing the online environment to be unable to consume business messages in the message queue, affecting the normal operation of the business. Especially when multiple pre-release environments exist, environment isolation cannot be achieved, resulting in Messages are sent to the wrong environment, affecting testing and execution.
By adding environment identifiers to business requests and processing them in the business information sharing database, listening and parsing business processing feedback messages, consuming or forwarding according to the environment identifiers, ensuring that messages are processed in the correct environment, using aspect-oriented programming proxy mode and data Isolate annotations for environment verification.
It achieves the isolation between the pre-release environment and the online environment and between different pre-release environments, ensuring that each environment only consumes its own target task messages, ensuring the correctness and real-time nature of business processing.
Smart Images

Figure CN113763094B
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of computer technology, and in particular, to a business information processing method, device, server, medium and system. Background Art
[0002] An application usually includes and distinguishes between a test version and a formal application version. The operating environment of the test version of the application is the pre-release environment, and the operating environment of the formal application version is the formal online environment (production environment). The pre-release environment can contain multiple sets, that is, multiple test versions. However, the business messages in the message queue do not distinguish between consumption environments. All pre-release environments and online environments may consume message queue messages sent by the associated business system.
[0003] At present, in order to prevent business messages that should be consumed by the formal environment from being consumed by the pre-release environment and affecting the normal operation of the application program, when no application testing is performed, most of the configurations are made on the message queue platform to restrict the device IPs in the pre-release environment from consuming business messages. When application testing is required to verify the consumption of business messages, a whitelist verification is added by setting the personal identification number (PIN) of the test user in the pre-release environment, so that only the business messages initiated by the test user can be consumed by the pre-release environment.
[0004] However, in the process of implementing the present invention, the inventors found that there are at least the following technical problems in the prior art: if the application in the test environment passes the test and is used as a formal application, and the whitelist is forgotten when the application is launched, it is likely that the online environment cannot consume the business messages in the message queue, affecting the online environment. When there are multiple pre-launch environments with different message consumption logic, the pre-launch environments cannot be isolated from each other. It is possible that the first set of pre-launch environments needs to be used for testing, but the task message is sent to the second set of pre-launch environments, and the application tests of each pre-launch environment cannot run normally. Summary of the invention
[0005] The embodiments of the present invention provide a business information processing method, device, server, medium and system to achieve isolation of the pre-launch environment and the online environment, and between different pre-launch environments, to ensure that each environment consumes the target task message belonging to its own environment.
[0006] In a first aspect, an embodiment of the present invention provides a business information processing method, which is applied to a server, and the method includes:
[0007] Receive a user's business request, add an environment identifier of the current information processing environment of the server to the business request, and send the business request with the environment identifier added to a business information sharing database for business processing by a business system related to the business request;
[0008] Monitor and analyze business processing feedback messages of the business-related systems;
[0009] When the environment identifier corresponding to the business processing feedback message is consistent with the environment identifier of the current information processing environment where the server is located, the business processing feedback message is consumed to perform business processing.
[0010] Optionally, the method further includes:
[0011] When the environment identifier corresponding to the service processing feedback message is inconsistent with the environment identifier of the current information processing in the server, the service processing feedback message is forwarded to a server that matches the environment identifier corresponding to the service processing feedback message.
[0012] Optionally, monitoring and parsing the business processing feedback message of the business-related system includes:
[0013] After monitoring the service processing feedback message, obtaining service identification information of the service processing feedback message;
[0014] Based on the aspect-oriented programming proxy mode, the environment identifier corresponding to the business processing feedback message is queried according to the business identifier information.
[0015] Optionally, based on the aspect-oriented programming proxy mode, querying the environment identifier corresponding to the business processing feedback message according to the business identifier information includes:
[0016] Calling a preset consumption method for consuming the business processing feedback message;
[0017] When the preset consumption method is added with a data isolation annotation, the business identification information is brought into the data isolation annotation to query the environment identification corresponding to the business processing feedback message, wherein the data isolation annotation is used to query the environment identification corresponding to the business processing feedback message according to the business identification information.
[0018] Optionally, the step of bringing the business identification information into the data isolation annotation to query an environment identification corresponding to the business processing feedback message includes:
[0019] Bringing the business identification information into the data isolation annotation;
[0020] The data isolation annotation searches the business information sharing database for the environment identifier corresponding to the business processing feedback message according to the business identifier information.
[0021] Optionally, the environment identifier is an online environment identifier, or a pre-release environment identifier among at least one pre-release environment identifier.
[0022] Optionally, the business request includes an item purchase request, and the relevant business systems of the business request include an item purchase payment system and an item ownership platform system.
[0023] In a second aspect, an embodiment of the present invention further provides a business information processing device, which is configured on a server, and the device includes:
[0024] An identification setting module is used to receive a user's business request, add an environment identification of the current information processing environment of the server to the business request, and send the business request with the environment identification added to the business information sharing database for business processing by a business system related to the business request;
[0025] An identification module, used to monitor and analyze the business processing feedback message of the business-related system;
[0026] The business processing module is used to consume the business processing feedback message to perform business processing when the environment identifier corresponding to the business processing feedback message is consistent with the environment identifier of the current information processing environment where the server is located.
[0027] Optionally, the business processing module is further used to:
[0028] When the environment identifier corresponding to the service processing feedback message is inconsistent with the environment identifier of the current information processing in the server, the service processing feedback message is forwarded to a server that matches the environment identifier corresponding to the service processing feedback message.
[0029] Optionally, the identification module includes:
[0030] A service identification extraction submodule, configured to obtain service identification information of the service processing feedback message after monitoring the service processing feedback message;
[0031] The environment identifier recognition submodule is used to query the environment identifier corresponding to the business processing feedback message according to the business identifier information based on the aspect-oriented programming proxy mode.
[0032] Optionally, the environment identification submodule is specifically used for:
[0033] Calling a preset consumption method for consuming the business processing feedback message;
[0034] When the preset consumption method is added with a data isolation annotation, the business identification information is brought into the data isolation annotation to query the environment identification corresponding to the business processing feedback message, wherein the data isolation annotation is used to query the environment identification corresponding to the business processing feedback message according to the business identification information.
[0035] Optionally, the environment identification submodule is further used for:
[0036] Bringing the business identification information into the data isolation annotation;
[0037] The data isolation annotation searches the business information sharing database for the environment identifier corresponding to the business processing feedback message according to the business identifier information.
[0038] Optionally, the environment identifier is an online environment identifier, or a pre-release environment identifier among at least one pre-release environment identifier.
[0039] Optionally, the business request includes an item purchase request, and the relevant business systems of the business request include an item purchase payment system and an item ownership platform system.
[0040] In a third aspect, an embodiment of the present invention further provides a server, the server comprising:
[0041] one or more processors;
[0042] A memory for storing one or more programs;
[0043] When the one or more programs are executed by the one or more processors, the one or more processors implement the business information processing method provided by any embodiment of the present invention.
[0044] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the business information processing method provided by any embodiment of the present invention is implemented.
[0045] In a fifth aspect, an embodiment of the present invention further provides a business information processing system, the system comprising:
[0046] A plurality of business servers with different business message consumption environments are respectively used to implement the business information processing method provided by any embodiment of the present invention;
[0047] An associated business server is used to complete the business operation associated with the business request and send business processing feedback information to the database subsystem;
[0048] The database subsystem is connected to the multiple business servers and the business association system, and is used to store the business request information and the business processing feedback information related to the business request.
[0049] The embodiments of the above invention have the following advantages or beneficial effects:
[0050] In the embodiment of the present invention, the server that receives the business request adds the environment identifier of the message consumption environment of the server to the business request, and sends all the relevant information of the business request to the business shared data center. When the server monitors the responsive business processing feedback message, it first determines the consumption environment corresponding to the business processing feedback message. When the environment identifier corresponding to the business processing feedback message is consistent with the environment identifier of the current information processing in the server, the business processing feedback message is consumed to perform business processing, thereby realizing the isolation of different message consumption environments and ensuring that each message consumption environment can consume the target task message data it wants to consume. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 is a flow chart of a business information processing method provided by Embodiment 1 of the present invention;
[0052] Figure 2 is a flow chart of a business information processing method provided by Embodiment 2 of the present invention;
[0053] Figure 3 It is a structural diagram of a business information processing device provided by Embodiment 3 of the present invention;
[0054] Figure 4 It is a structural diagram of a server provided by Embodiment 4 of the present invention;
[0055] Figure 5 A structural diagram of a business information processing system provided in Embodiment 6 of the present invention. DETAILED DESCRIPTION
[0056] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0057] Embodiment 1
[0058] Figure 1This is a flowchart of a business information processing method provided in Embodiment 1 of the present invention. This embodiment can be applied to the situation where the consumption environment of a business message is distinguished when there are two or more message consumption environments. The method can be executed by a business information processing device, which can be implemented by software and / or hardware and integrated in a server device with application development function.
[0059] like Figure 1 As shown, the business information processing method includes the following steps:
[0060] S110, receiving a user's business request, and adding an environment identifier of the current information processing environment of the server to the business request, and sending the business request with the added environment identifier to a business information sharing database for business processing by a related business system of the business request.
[0061] Usually, from development to user use, an application software product involves development environment, test environment, regression environment, pre-release environment and production environment. The development environment is the environment used by software developers when developing applications. Each software developer works on his own computer device branch. When the software development reaches a certain level, the software developers will merge the code and conduct joint debugging. The test environment is the working environment of software testers. The software testers deploy it themselves, and then test it in this environment to confirm the software function. The regression environment is the environment in which the software bug is fixed. It is necessary to release an update to the test environment to regress the bug. In essence, the environment in which the bug is regressed is also the test environment. The bug is tested and regressed in the test environment.
[0062] Furthermore, the staging environment can be used as a transition between the test environment and the production environment to test some newly added functional modules or queue message consumption logic that are not available in the production environment. The production environment is the formal environment where users actually use the software. It is maintained by specific personnel and ordinary people do not have the authority to modify it. In most cases, the staging environment and the production environment may exist at the same time, and the staging environment may contain multiple staging environments. Different functional modules or queue message consumption logic are tested in different staging environments. Compared with the production environment, the new functions in the staging environment are the latest codes, and other functional codes are consistent with the production environment. The access domain names of the staging environment and the production environment are different.
[0063] However, the staging environment is usually connected to the production environment's database and shares the business information database with the production environment. When the staging environment server and the production environment server consume queue messages in the message database, it is necessary to distinguish whether the read messages should be consumed by their own message consumption environment.
[0064] In order to distinguish the consumption environment of the message to be consumed, when each server initially receives a business request, it will add a message consumption environment identifier to the received business request, so that the received business request is associated with its corresponding consumption environment. The consumption environment identifier indicates the message consumption environment of the server that receives the business request, which can be a production environment or at least one of the pre-release environments. When the software adds multiple requirements or modifies different information consumption logic, it will be tested separately through multiple pre-release environments.
[0065] The relevant information of the business request with the added environmental identification will be sent to the business information sharing database for the business system related to the business request to perform business processing and query and compare business information. For example, the business request is a request from a user to purchase an item on a shopping software platform. The business request will correspond to an order number, as well as the specific operation content of the request (such as the name, quantity and consignee address of the purchased goods, etc.) and the latest environmental identification added by the server. The related business system can be a payment system or a commodity inventory management system. This is only an exemplary explanation and is not limited. The specific business request content and related business system can be determined according to the business field actually designed for the application software.
[0066] S120: Monitor and analyze the business processing feedback message of the business-related system.
[0067] Specifically, the server that receives the business request subscribes to messages according to the message subject, and subscribes to messages according to the subject messages required by the business process. Each business processing feedback message corresponds to a subject, and the message subject corresponds to the business process. For example, the feedback message generated by the payment system is a message with the subject of "payment", including the order number of the purchased goods, the payment amount, the payment method, and whether the payment is successful, so as to inform the server that receives the business request whether the user has paid for the purchased goods. The server that receives the business request can determine the subsequent business process based on the subscribed business processing feedback message, such as feedback to the user that the purchase is successful, entering the product delivery logistics system, etc.
[0068] Furthermore, after reading the service processing feedback message, the server that receives the service request can query the consumption environment corresponding to the service processing feedback message in the database according to the service request identifier in the service processing feedback message.
[0069] S130: When the environment identifier corresponding to the business processing feedback message is consistent with the environment identifier of the current information processing environment where the server is located, consume the business processing feedback message to perform business processing.
[0070] Specifically, after parsing and querying, when the environment identifier corresponding to the business processing feedback message is consistent with the environment identifier of the current information processing environment of the server that reads the business processing feedback message, the server can directly consume it according to the method of consuming the corresponding topic message in the business processing flow.
[0071] Furthermore, when the environment identifier corresponding to the business processing feedback message is inconsistent with the environment identifier of the current information processing in the server, the business processing feedback message is forwarded to the server that matches the environment identifier corresponding to the business processing feedback message, that is, the business processing feedback message is sent to the environment where it should be consumed. This ensures that each business processing feedback message can be consumed by the correct message consumption environment.
[0072] The technical solution of this embodiment is that the server that receives the business request adds the environment identifier of the message consumption environment of the server to the business request, and sends all the relevant information of the business request to the business shared data center. When the server monitors the responsive business processing feedback message, it first determines the consumption environment corresponding to the business processing feedback message. When the environment identifier corresponding to the business processing feedback message is consistent with the environment identifier of the current information processing of the server, the business processing feedback message is consumed to perform business processing, thereby realizing the isolation of different message consumption environments and ensuring that each message consumption environment can consume the target task message data it wants to consume.
[0073] Embodiment 2
[0074] Figure 2 This is a flowchart of a business information processing method provided in Embodiment 2 of the present invention. This embodiment and the above embodiment belong to the same inventive concept. On the basis of the above embodiment, the process of identifying the business information consumption environment is further explained. The explanations of the terms that are the same or corresponding to the above embodiment are not repeated here.
[0075] See also Figure 2 The service information processing method provided in this embodiment includes the following steps:
[0076] S210, receiving a business request from a user, and adding an environment identifier of the current information processing environment of the server to the business request, and sending the business request with the environment identifier added to a business information sharing database for business processing by a business system related to the business request.
[0077] S220: After monitoring the service processing feedback message, obtain service identification information of the service processing feedback message.
[0078] Specifically, after reading the business processing feedback message of the corresponding topic, the content of the message will be parsed to obtain the business identification information corresponding to the business processing feedback message. Then, the information content related to the business stored in the business information sharing database can be further queried based on the business identification information. For example, if the business request is a commodity purchase request, the business identification information can be the order number of the commodity purchase.
[0079] S230. Based on the aspect-oriented programming proxy mode, query the environment identifier corresponding to the business processing feedback message according to the business identifier information.
[0080] After obtaining the business identification information, call the preset consumption method that consumes the business processing feedback message; and bring the business identification information into the preset consumption method as a parameter of the preset consumption method. When the preset consumption method is added with a data isolation annotation, the preset consumption method will not be executed directly, but the business identification information will be brought into the data isolation annotation to query the environment identification corresponding to the business processing feedback message, wherein the data isolation annotation is used to query the environment identification corresponding to the business processing feedback message according to the business identification information. Specifically, the data isolation annotation queries the business information sharing database for the environment identification corresponding to the business processing feedback message according to the business identification information.
[0081] The Aspect Oriented Programming (AOP) proxy pattern can isolate various parts of the business logic, thereby reducing the coupling between the various parts of the business logic, improving the reusability of the program, and improving development efficiency.
[0082] In the prior art, when a whitelist is used for verification in a pre-release environment, a business processing feedback message that is not in the list needs to be retried by throwing an exception. At this time, the business processing feedback message may hit the pre-release environment again and be continuously retried. For businesses with high real-time requirements, it is easy to cause order timeouts and the order cannot be continued. In this embodiment, through the aspect-oriented programming proxy mode, data isolation annotations are added to the consumption method of consuming business processing feedback messages, and the environment identifier corresponding to the business processing feedback message is determined. Then, verification can be performed before consuming the business processing feedback message, ensuring that each environment consumes the message data it wants to consume, and the real-time consumption can be guaranteed.
[0083] S240: When the environment identifier corresponding to the business processing feedback message is consistent with the environment identifier of the current information processing environment where the server is located, consume the business processing feedback message to perform business processing.
[0084] Specifically, the environment identifier corresponding to the business processing feedback message is obtained through parsing and querying. Then, it is further determined whether the environment identifier corresponding to the business processing feedback message is the same as the environment identifier of the current information processing environment of the server that reads the business processing feedback message. When the environment identifier corresponding to the business processing feedback message is consistent with the environment identifier of the current information processing environment of the server, the server can directly consume the corresponding topic message according to the method of consuming the corresponding topic message in the business processing flow.
[0085] Furthermore, when the environment identifier corresponding to the business processing feedback message is inconsistent with the environment identifier of the current information processing in the server, the business processing feedback message is forwarded to the server that matches the environment identifier corresponding to the business processing feedback message, that is, the business processing feedback message is sent to the environment where it should be consumed. This ensures that each business processing feedback message can be consumed by the correct message consumption environment.
[0086] The technical solution of the embodiment of the present invention is that the server that receives the business request adds the environment identifier of the message consumption environment of the server to the business request, and sends all the relevant information of the business request to the business shared data center. When the server monitors the responsive business processing feedback message, based on the aspect-oriented programming proxy mode, it judges the consumption environment corresponding to the business processing feedback message. When the environment identifier corresponding to the business processing feedback message is consistent with the environment identifier of the current information processing of the server, the business processing feedback message is consumed to perform business processing, thereby realizing the isolation of different message consumption environments, ensuring that each set of message consumption environments can consume the target task message data it wants to consume, and for businesses with high real-time requirements, the timeliness of business message consumption can also be guaranteed.
[0087] The following is an embodiment of a business information processing device provided by an embodiment of the present invention. The device and the business information processing methods of the above embodiments belong to the same inventive concept and can implement the business information processing methods of the above embodiments. For details not described in detail in the embodiment of the business information processing device, reference can be made to the embodiment of the above business information processing method.
[0088] Embodiment 3
[0089] Figure 3 This is a structural diagram of a business information processing device provided in Embodiment 3 of the present invention. This embodiment is applicable to the situation where the consumption environments of business messages are distinguished when there are two or more message consumption environments.
[0090] like Figure 3 As shown, the device specifically includes an identification setting module 310 , an identification recognition module 320 and a service processing module 330 .
[0091] Among them, the identification setting module 310 is used to receive the user's business request, and add the environment identifier of the current information processing environment of the server to the business request, and send the business request with the environment identifier added to the business information sharing database for business processing by the relevant business system of the business request; the identification recognition module 320 is used to monitor and parse the business processing feedback message of the business-related system; the business processing module 330 is used to consume the business processing feedback message for business processing when the environment identifier corresponding to the business processing feedback message is consistent with the environment identifier of the current information processing environment of the server.
[0092] The technical solution of this embodiment is that the server that receives the business request adds the environment identifier of the message consumption environment of the server to the business request, and sends all the relevant information of the business request to the business shared data center. When the server monitors the responsive business processing feedback message, it first determines the consumption environment corresponding to the business processing feedback message. When the environment identifier corresponding to the business processing feedback message is consistent with the environment identifier of the current information processing of the server, the business processing feedback message is consumed to perform business processing, thereby realizing the isolation of different message consumption environments and ensuring that each message consumption environment can consume the target task message data it wants to consume.
[0093] Optionally, the business processing module 330 is further used to:
[0094] When the environment identifier corresponding to the service processing feedback message is inconsistent with the environment identifier of the current information processing in the server, the service processing feedback message is forwarded to a server that matches the environment identifier corresponding to the service processing feedback message.
[0095] Optionally, the identification module 320 includes:
[0096] A service identification extraction submodule, configured to obtain service identification information of the service processing feedback message after monitoring the service processing feedback message;
[0097] The environment identifier recognition submodule is used to query the environment identifier corresponding to the business processing feedback message according to the business identifier information based on the aspect-oriented programming proxy mode.
[0098] Optionally, the environment identification submodule is specifically used for:
[0099] Calling a preset consumption method for consuming the business processing feedback message;
[0100] When the preset consumption method is added with a data isolation annotation, the business identification information is brought into the data isolation annotation to query the environment identification corresponding to the business processing feedback message, wherein the data isolation annotation is used to query the environment identification corresponding to the business processing feedback message according to the business identification information.
[0101] Optionally, the environment identification submodule is further used for:
[0102] Bringing the business identification information into the data isolation annotation;
[0103] The data isolation annotation searches the business information sharing database for the environment identifier corresponding to the business processing feedback message according to the business identifier information.
[0104] Optionally, the environment identifier is an online environment identifier, or a pre-release environment identifier among at least one pre-release environment identifier.
[0105] Optionally, the business request includes an item purchase request, and the relevant business systems of the business request include an item purchase payment system and an item ownership platform system.
[0106] The business information processing device configured on the server provided by the embodiment of the present invention can execute the business information processing method applied to the server provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0107] Embodiment 4
[0108] Figure 4 A schematic diagram of the structure of a server provided in Embodiment 4 of the present invention. Figure 4 A block diagram of an exemplary server 12 suitable for use in implementing embodiments of the present invention is shown. Figure 4 The server 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0109] like Figure 4 As shown, the server 12 is in the form of a general purpose computing device. The components of the server 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).
[0110] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
[0111] The server 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the server 12, including volatile and non-volatile media, removable and non-removable media.
[0112] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The server 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 4 not shown, usually called a "hard drive"). Although Figure 4 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The system memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.
[0113] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. Program modules 42 generally perform the functions and / or methods of the embodiments described herein.
[0114] The server 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), may communicate with one or more devices that enable a user to interact with the server 12, and / or may communicate with any device that enables the server 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 22. In addition, the server 12 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with other modules of the server 12 via a bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the server 12, including, but not limited to, microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0115] The processing unit 16 executes various functional applications and data processing by running the program stored in the system memory 28, for example, implementing a business information processing method provided by the embodiment of the present invention, the method comprising:
[0116] Receive a user's business request, add an environment identifier of the current information processing environment of the server to the business request, and send the business request with the environment identifier added to a business information sharing database for business processing by a business system related to the business request;
[0117] Monitor and analyze business processing feedback messages of the business-related systems;
[0118] When the environment identifier corresponding to the business processing feedback message is consistent with the environment identifier of the current information processing environment where the server is located, the business processing feedback message is consumed to perform business processing.
[0119] Of course, those skilled in the art can understand that the processor can also implement the technical solution of the business information processing method provided by any embodiment of the present invention.
[0120] Embodiment 5
[0121] The fifth embodiment provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the business information processing method provided in any embodiment of the present invention are implemented. The method includes:
[0122] Receive a user's business request, add an environment identifier of the current information processing environment of the server to the business request, and send the business request with the environment identifier added to a business information sharing database for business processing by a business system related to the business request;
[0123] Monitor and analyze business processing feedback messages of the business-related systems;
[0124] When the environment identifier corresponding to the business processing feedback message is consistent with the environment identifier of the current information processing environment where the server is located, the business processing feedback message is consumed to perform business processing.
[0125] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: 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 this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0126] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals 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 a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0127] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0128] Computer program code for performing the operation of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0129] Embodiment 6
[0130] Figure 5 This is a schematic diagram of the structure of a business information processing system provided by Embodiment 6 of the present invention. Figure 5 As shown, the business information processing system includes: a plurality of business servers with different business message consumption environments, associated business servers and a database subsystem.
[0131] Among them, multiple business servers with different business message consumption environments are used to receive and process business requests in different business message consumption environments. The existence of multiple business servers with different business message consumption environments is because during the formal application of an application software product in the production environment, the application software product will be adjusted according to business needs, the business logic will be modified or new functions will be added, and then the modified software product will be pre-tested in the pre-release environment, so the production environment and the pre-release environment will exist at the same time. Moreover, there may be multiple pre-release environments, and different pre-release environments test different new business functions or modified business logic. The number of business servers is determined according to the actual use and development of the application software.
[0132] The business server can implement the business information processing method described in the above embodiment. Specifically, in order to distinguish the consumption environment of the message to be consumed, when each business server initially receives a business request, it will add a message consumption environment identifier to the received business request, so that the received business request is associated with its corresponding consumption environment. The consumption environment identifier indicates the message consumption environment in which the server that receives the business request is located. The relevant information of the business request with the added environment identifier will be sent to the database subsystem for the business system (server) related to the business request to perform business processing and query and comparison of business information. After reading the business processing feedback message generated by the associated business server, the business server that receives the business request can query the consumption environment corresponding to the business processing feedback message in the database through the business request identifier in the business processing feedback message. When the environment identifier corresponding to the business processing feedback message is consistent with the environment identifier of the current information processing environment in which the business server is located, the business server can consume the business processing feedback message for business processing. When the environment identifier corresponding to the business processing feedback message is inconsistent with the environment identifier of the current information processing in which the server is located, the business processing feedback message is forwarded to the server that matches the environment identifier corresponding to the business processing feedback message, that is, the business processing feedback message is sent to the environment in which it should be consumed. This ensures that each business processing feedback message can be consumed by the correct message consumption environment.
[0133] The associated business server is used to complete the business operation associated with the business request. The business operation associated with the business request is one or more steps in the entire process of completing the business request. For example, if the business server's business is the ticket ordering business, then the associated business server can be the payment system server, and the ticket query and management system server of the airline that sells the ticket. After the payment system completes the task of collecting the ticket fee, it will generate a feedback message with the theme of "payment", including the order number of the purchased goods, the payment amount, the payment method, and whether the payment is successful, and send the business processing feedback message to the database subsystem to inform the business server that receives the business request whether the user has paid for the ticket he purchased.
[0134] The database subsystem is connected to multiple business servers and business-related systems to store business request information and business processing feedback information related to the business request. Each business server and the associated business server can query the database subsystem for business-related information, and the business processing feedback message generated by the associated business server is also stored in the cache message queue of the database subsystem.
[0135] The technical solution of this embodiment is to form a business information processing system through a business server, an associated business server and a database subsystem. The server that receives the business request adds the environment identifier of the message consumption environment in which the server is located to the business request, and sends all the relevant information of the business request to the business shared data center. When the server monitors the responsive business processing feedback message, it first determines the consumption environment corresponding to the business processing feedback message. When the environment identifier corresponding to the business processing feedback message is consistent with the environment identifier of the current information processing in the server, the business processing feedback message is consumed to perform business processing, thereby realizing the isolation of different message consumption environments and ensuring that each message consumption environment can consume the target task message data it wants to consume.
[0136] It should be understood by those skilled in the art that the modules or steps of the present invention described above can be implemented by a general-purpose computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, optionally, they can be implemented by a program code executable by a computer device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0137] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A business information processing method, applied to a server, characterized in that: include: Receive a user's business request, add an environment identifier of the current information processing environment of the server to the business request, and send the business request with the environment identifier added to a business information sharing database for business processing by a business system related to the business request; Monitor the business processing feedback message of the business-related system, and query the consumption environment corresponding to the business processing feedback message in the database through the business request identifier in the business processing feedback message to determine the environment identifier corresponding to the business processing feedback message, or, based on the aspect-oriented programming proxy mode, query the environment identifier corresponding to the business processing feedback message according to the business identifier information; When the environment identifier corresponding to the business processing feedback message is consistent with the environment identifier of the current information processing environment where the server is located, the business processing feedback message is consumed to perform business processing.
2. The method according to claim 1, characterized in that The method further comprises: When the environment identifier corresponding to the service processing feedback message is inconsistent with the environment identifier of the current information processing in the server, the service processing feedback message is forwarded to a server that matches the environment identifier corresponding to the service processing feedback message.
3. The method according to claim 1, characterized in that After monitoring the business processing feedback message of the business-related system, it includes: Parse the service processing feedback message to obtain service identification information of the service processing feedback message.
4. The method according to claim 3, characterized in that The aspect-oriented programming proxy mode is based on which the environment identifier corresponding to the business processing feedback message is queried according to the business identifier information, including: Calling a preset consumption method for consuming the business processing feedback message; When the preset consumption method is added with a data isolation annotation, the business identification information is brought into the data isolation annotation to query the environment identification corresponding to the business processing feedback message, wherein the data isolation annotation is used to query the environment identification corresponding to the business processing feedback message according to the business identification information.
5. The method according to claim 4, characterized in that The step of bringing the business identification information into the data isolation annotation to query the environment identification corresponding to the business processing feedback message includes: Bringing the business identification information into the data isolation annotation; The data isolation annotation searches the business information sharing database for the environment identifier corresponding to the business processing feedback message according to the business identifier information.
6. The method according to any one of claims 1 to 5, characterized in that: The environment identifier is an online environment identifier, or a pre-release environment identifier among at least one pre-release environment identifier.
7. The method according to claim 6, characterized in that The business request includes an item purchase request, and the related business systems of the business request include an item purchase payment system and an item ownership platform system.
8. A business information processing device, configured on a server, characterized in that: include: An identification setting module is used to receive a user's business request, add an environment identification of the current information processing environment of the server to the business request, and send the business request with the environment identification added to the business information sharing database for business processing by a business system related to the business request; an identification recognition module, configured to monitor the business processing feedback message of the business-related system, and query the consumption environment corresponding to the business processing feedback message in the database through the business request identifier in the business processing feedback message to determine the environment identifier corresponding to the business processing feedback message, or, based on the aspect-oriented programming proxy mode, query the environment identifier corresponding to the business processing feedback message according to the business identifier information; The business processing module is used to consume the business processing feedback message to perform business processing when the environment identifier corresponding to the business processing feedback message is consistent with the environment identifier of the current information processing environment where the server is located.
9. A server, characterized in that: The server comprises: one or more processors; A memory 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 business information processing method as described in any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the business information processing method as described in any one of claims 1 to 7 is implemented.
11. A business information processing system, characterized in that: The system comprises: A plurality of business servers in different business message consumption environments, respectively used to implement the business information processing method as described in any one of claims 1 to 7; An associated business server is used to complete the business operation associated with the business request and send business processing feedback information to the database subsystem; The database subsystem is connected to the multiple business servers and the business association system, and is used to store the information of the business request and the business processing feedback information related to the business request.
Citation Information
Patent Citations
Devices, systems and methods for data processing
CN105765613A
New environment isolation configuration data management method and system
CN106681861A
Methods and systems for server-side rendering of native content for presentation
CN109863527A
Cross-environment receipt message processing method and system
CN110022260A
Data source routing management method and device
CN110765187A
