CN113763094A - Service information processing method, device, server, medium and system - Google Patents

Service information processing method, device, server, medium and system Download PDF

Info

Publication number
CN113763094A
CN113763094A CN202011322540.3A CN202011322540A CN113763094A CN 113763094 A CN113763094 A CN 113763094A CN 202011322540 A CN202011322540 A CN 202011322540A CN 113763094 A CN113763094 A CN 113763094A
Authority
CN
China
Prior art keywords
service
environment
feedback message
server
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011322540.3A
Other languages
Chinese (zh)
Inventor
董海英
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN202011322540.3A priority Critical patent/CN113763094A/en
Publication of CN113763094A publication Critical patent/CN113763094A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/547Messaging middleware
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/548Queue

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • General Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Economics (AREA)
  • Computational Linguistics (AREA)
  • Development Economics (AREA)
  • Data Mining & Analysis (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention discloses a method, a device, a server, a medium and a system for processing service information. The method comprises the following steps: receiving a service request of a user, adding an environment identifier of a current information processing environment where the server is located for the service request, and sending the service request added with the environment identifier to a service information sharing database so as to enable a related service system of the service request to perform service processing; monitoring and analyzing the service processing feedback message of the service related system; and consuming the service processing feedback message to perform service processing when the environment identifier corresponding to the service processing feedback message is consistent with the environment identifier of the current information processing where the server is located. By the technical scheme of the embodiment of the invention, the isolation of different message consumption environments can be realized, and each set of message consumption environment can consume the target task message data which the user wants to consume.

Description

Service information processing method, device, server, medium and system
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a method, a device, a server, a medium and a system for processing service information.
Background
An application program usually includes and distinguishes a test version and a formal application version, an operating environment of the application program of the test version is a pre-release environment, and an operating environment of the formal application version is a formal online environment (production environment), wherein the pre-release environment may include multiple sets, that is, includes multiple test versions. However, the service messages themselves in the message queue do not distinguish the consuming environment, and all the pre-sending environment and the online environment may consume the message queue messages sent by the associated service system.
At present, in order to prevent the service message which is consumed by the formal environment from being consumed by the pre-sending environment and influence the normal operation of the service of the application program, most of the service messages are configured with the equipment IP consumption service message which limits the pre-sending environment on the message queue platform when the application test is not carried out; when the service message is required to be consumed and verified by the application test, white list verification is added by setting a Personal Identification Number (PIN) of the test user in the pre-sending environment, and only the service message initiated by the test user can be consumed by the pre-sending environment.
However, in the process of implementing the present invention, the inventors found that at least the following technical problems exist in the prior art: if the application in the test environment passes the test and then serves as a formal application, forgetting to remove the white list when the application is online, the online environment is likely to be incapable of consuming the service messages in the message queue, and the online environment is affected. When a plurality of pre-sending environments with different message consumption logics exist, the pre-sending environments cannot be isolated, a first set of pre-sending environment test may be needed, but the task message is sent to a second set of pre-sending environment, so that the application test of each pre-sending environment cannot run normally.
Disclosure of Invention
The embodiment of the invention provides a service information processing method, a device, a server, a medium and a system, which are used for realizing the isolation of a pre-sending environment from an online environment and the environment among different pre-sending environments and ensuring that each set of environment consumes a target task message belonging to the environment of the environment.
In a first aspect, an embodiment of the present invention provides a service information processing method, which is applied to a server, and the method includes:
receiving a service request of a user, adding an environment identifier of a current information processing environment where the server is located for the service request, and sending the service request added with the environment identifier to a service information sharing database so as to enable a related service system of the service request to perform service processing;
monitoring and analyzing the service processing feedback message of the service related system;
and consuming the service processing feedback message to perform service processing when the environment identifier corresponding to the service processing feedback message is consistent with the environment identifier of the current information processing environment where the server is located.
Optionally, the method further includes:
and when the environment identifier corresponding to the service processing feedback message is not consistent with the environment identifier of the current information processing where the server is located, forwarding the service processing feedback message to the server matched with the environment identifier corresponding to the service processing feedback message.
Optionally, monitoring and analyzing the service processing feedback message of the service-related system includes:
after monitoring the service processing feedback message, acquiring service identification information of the service processing feedback message;
and inquiring the environment identifier corresponding to the service processing feedback message according to the service identifier information based on the tangent plane-oriented programming proxy mode.
Optionally, the querying, based on the facet-oriented programming agent mode, an environment identifier corresponding to the service processing feedback message according to the service identifier information includes:
calling a preset consumption method for consuming the service processing feedback message;
and when a data isolation annotation is added to the preset consumption method, bringing the service identification information into the data isolation annotation to inquire the environment identification corresponding to the service processing feedback message, wherein the data isolation annotation is used for inquiring the environment identification corresponding to the service processing feedback message according to the service identification information.
Optionally, the bringing the service identification information into the data isolation annotation to query the environment identification corresponding to the service processing feedback message includes:
bringing the service identification information into the data isolation annotation;
and inquiring the environment identifier corresponding to the service processing feedback message from the service information sharing database according to the service identifier information by the data isolation annotation.
Optionally, the environment identifier is an online environment identifier, or a pre-sending environment identifier in at least one pre-sending environment identifier.
Optionally, the service request includes an item purchase request, and the related service system of the service request includes an item purchase payment system and an item attribution platform system.
In a second aspect, an embodiment of the present invention further provides a service information processing apparatus, configured in a server, where the apparatus includes:
the identification setting module is used for receiving a service request of a user, adding an environment identification of a current information processing environment where the server is located for the service request, and sending the service request added with the environment identification to a service information sharing database so as to enable a related service system of the service request to perform service processing;
the identification module is used for monitoring and analyzing the service processing feedback message of the service related system;
and the service processing module is used for consuming the service processing feedback message to process the service when the environment identifier corresponding to the service processing feedback message is consistent with the environment identifier of the current information processing environment where the server is located.
Optionally, the service processing module is further configured to:
and when the environment identifier corresponding to the service processing feedback message is not consistent with the environment identifier of the current information processing where the server is located, forwarding the service processing feedback message to the server matched with the environment identifier corresponding to the service processing feedback message.
Optionally, the identifier recognition module includes:
a service identification extraction submodule, configured to obtain service identification information of the service processing feedback message after monitoring the service processing feedback message;
and the environment identifier identification submodule is used for inquiring the environment identifier corresponding to the service processing feedback message according to the service identifier information based on the section-oriented programming agent mode.
Optionally, the environment identifier recognizing sub-module is specifically configured to:
calling a preset consumption method for consuming the service processing feedback message;
and when a data isolation annotation is added to the preset consumption method, bringing the service identification information into the data isolation annotation to inquire the environment identification corresponding to the service processing feedback message, wherein the data isolation annotation is used for inquiring the environment identification corresponding to the service processing feedback message according to the service identification information.
Optionally, the environment identifier identifying sub-module is further configured to:
bringing the service identification information into the data isolation annotation;
and inquiring the environment identifier corresponding to the service processing feedback message from the service information sharing database according to the service identifier information by the data isolation annotation.
Optionally, the environment identifier is an online environment identifier, or a pre-sending environment identifier in at least one pre-sending environment identifier.
Optionally, the service request includes an item purchase request, and the related service system of the service request includes an item purchase payment system and an item attribution platform system.
In a third aspect, an embodiment of the present invention further provides a server, where the server includes:
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 service information processing method provided by any embodiment of the invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the service information processing method provided in any embodiment of the present invention.
In a fifth aspect, an embodiment of the present invention further provides a service information processing system, where the system includes:
a plurality of service servers with different service message consumption environments, which are respectively used for realizing the service information processing method provided by any embodiment of the invention;
the related service server is used for finishing the service operation related to the service request and sending the service processing feedback information to the database subsystem;
and the database subsystem is connected with the plurality of service servers and the service association system and is used for storing the information of the service request and the service processing feedback information related to the service request.
The embodiment of the invention has the following advantages or beneficial effects:
according to the embodiment of the invention, the server receiving the service request adds the environment identifier of the message consumption environment where the server is located for the service request, and sends the related information of the service request to the service sharing data, when the server monitors the response service processing feedback message, the consumption environment corresponding to the service processing feedback message is judged firstly, and when the environment identifier corresponding to the service processing feedback message is consistent with the environment identifier of the current information processing where the server is located, the service processing feedback message is consumed for service processing, so that the isolation of different message consumption environments is realized, and each set of message consumption environment can consume the target task message data which the server wants to consume.
Drawings
Fig. 1 is a flowchart of a service information processing method according to an embodiment of the present invention;
fig. 2 is a flowchart of a service information processing method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a service information processing apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a server according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a service information processing system according to a sixth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a service information processing method according to an embodiment of the present invention, which is applicable to a case where two or more message consumption environments are present and consumption environments of service messages are distinguished. The method can be executed by a service information processing device, which can be realized by software and/or hardware and is integrated in a server device with an application development function.
As shown in fig. 1, the service information processing method includes the following steps:
s110, receiving a service request of a user, adding an environment identifier of a current information processing environment where the server is located for the service request, and sending the service request added with the environment identifier to a service information sharing database so as to enable a related service system of the service request to perform service processing.
Generally, from development to user use of an application software product, a development environment, a test environment, a regression environment, a pre-release environment, and a production environment are involved. The development environment is used when software developers develop applications, each software developer can live on the own computer equipment branch, and when the software is developed to a certain degree, each software developer can converge and combine codes for joint debugging. The testing environment is the environment where software testers work in classmates, the software testers deploy the testing environment, and then the testing is carried out in the environment to confirm the software functions. The regression environment is that after the software bug is repaired, version updating of the test environment is needed to regress the bug, and essentially, the environment of the regression bug is also the test environment, and the bug is tested and regressed and verified in the test environment.
Furthermore, the pre-sending environment can be used as a transition between a testing environment and a production environment to test consumption logic of newly added function modules or queue messages which are not available in some production environments. The production environment is a formal environment for the user to actually use the software, and is maintained by specific personnel, and general people have no authority to modify the production environment. The pre-distribution environment and the production environment may exist simultaneously in most cases, and the pre-distribution environment may include a plurality of pre-distribution environments, and different functional modules or consumption logics of queue messages are tested in different pre-distribution environments. Compared with the production environment, the new function in the pre-development environment is the latest code, and other function codes are consistent with the production environment. The access domain names for the prefiring environment and the production environment are different.
However, the pre-launch environment will typically be linked to a database of the production environment, sharing the business information database with the production environment. When the pre-distribution environment server and the production environment server consume the queue messages in the message database, whether the read messages are consumed by the message consumption environment of the pre-distribution environment server and the production environment server is distinguished.
In order to distinguish the consumption environment of the message to be consumed, when each server initially receives the service request, a message consumption environment identifier is added to the received service request, so that the received service request and the corresponding consumption environment generate an association relation. The consumption environment identification indicates a message consumption environment in which the server receiving the service request is located, which may be a production environment or one of at least one pre-distribution environment. When the software newly increases a plurality of requirements or modifies different information consumption logics, the software is respectively tested through a plurality of pre-sending environments.
The relevant information of the service request added with the environment identifier is sent to a service information sharing database so that a relevant service system of the service request can perform service processing and query comparison of the service information. For example, the service request is a request for a user to purchase an item on a shopping software platform, and the service request corresponds to an order number, specific operation contents of the request (such as the name, the number and the address of a receiver of a purchased commodity) and newly added environment identifiers of the server. And the related business system can be a payment system or a commodity inventory management system. The present invention is only exemplary, and not limited, and the specific service request content and the related service system can be determined according to the service field actually designed by the application software.
And S120, monitoring and analyzing the service processing feedback message of the service related system.
Specifically, the server receiving the service request performs message subscription according to the message topic, performs message subscription according to the topic message required by the service process, and each service processing feedback message corresponds to a topic, and the message topic corresponds to the service process. For example, the feedback message generated by the payment system is a message with the theme of "pay", 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 receiving the service request whether the user pays for the goods he or she purchased. The server receiving the service request may determine the subsequent service process according to the subscribed service processing feedback message, such as feeding back to the user that the purchase is successful, entering a commodity delivery logistics system, and the like.
Further, after the server receiving the service request reads the service processing feedback message, the server may correspondingly query the consumption environment corresponding to the service processing feedback message in the database through the service request identifier in the service processing feedback message.
S130, when the environment identification corresponding to the service processing feedback message is consistent with the environment identification of the current information processing environment where the server is located, consuming the service processing feedback message to perform service processing.
Specifically, after parsing and querying, when the environment identifier corresponding to the service processing feedback message is consistent with the environment identifier of the current information processing environment where the server that reads the service processing feedback message is located, the server can directly consume the corresponding theme message according to a method for consuming the corresponding theme message in the service processing flow.
Further, when the environment identifier corresponding to the service processing feedback message is not consistent with the environment identifier of the current information processing where the server is located, the service processing feedback message is forwarded to the server matched with the environment identifier corresponding to the service processing feedback message, that is, the service processing feedback message is sent to the environment where the service processing feedback message should be consumed. Therefore, each service processing feedback message can be guaranteed to be consumed by the correct message consumption environment.
According to the technical scheme of the embodiment, the server receiving the service request adds the environment identifier of the message consumption environment where the server is located for the service request, and sends the relevant information of the service request to the service sharing data.
Example two
Fig. 2 is a flowchart of a service information processing method according to a second embodiment of the present invention, which belongs to the same inventive concept as the first embodiment, and further illustrates a process of identifying a service information consumption environment based on the first embodiment. Explanations of the same or corresponding terms as those in the above embodiments are omitted here.
Referring to fig. 2, the service information processing method provided in this embodiment includes the following steps:
s210, receiving a service request of a user, adding an environment identifier of a current information processing environment where the server is located for the service request, and sending the service request added with the environment identifier to a service information sharing database so as to enable a relevant service system of the service request to perform service processing.
S220, after the business processing feedback message is monitored, business identification information of the business processing feedback message is obtained.
Specifically, after the service processing feedback message of the corresponding topic is read, the content of the message is analyzed, so that the service identification information corresponding to the service processing feedback message is obtained. Then, the information content related to the service stored in the service information sharing database can be further queried according to the service identification information. For example, if the service request is a commodity purchase request, the service identification information may be an order number of the commodity purchase.
And S230, based on the section-oriented programming proxy mode, inquiring an environment identifier corresponding to the service processing feedback message according to the service identifier information.
Calling a preset consumption method for consuming the service processing feedback message after the acquired service identification information is acquired; and the service identification information is taken as a parameter of the preset consumption method and brought into the preset consumption method. When the data isolation annotation is added to the preset consumption method, the preset consumption method is not directly executed, but the service identification information is brought into the data isolation annotation to query the environment identification corresponding to the service processing feedback message, wherein the data isolation annotation is used for querying the environment identification corresponding to the service processing feedback message according to the service identification information. Specifically, the data isolation annotation queries the service information sharing database for the environment identifier corresponding to the service processing feedback message according to the service identifier information.
The service logic can be isolated by an Aspect Oriented Programming (AOP) agent mode, so that the coupling degree between each part of the service logic is reduced, the reusability of a program is improved, and the development efficiency is improved.
In the prior art, when the pre-sending environment is verified by using the white list, the retry is required in a mode of throwing an exception for the service processing feedback message which is not in the list, at this time, the service processing feedback message may be sent to the pre-sending environment again and is continuously retried, and for the service with high real-time requirement, the order is easily overtime, and the order cannot be continuously operated. In this embodiment, by adding a data isolation annotation to the consumption method for processing the feedback message by the consumption service through the tangent plane-oriented programming agent mode, and determining the environment identifier corresponding to the feedback message by the service processing, verification can be performed before the feedback message is processed by the consumption service, it is ensured that each set of environment consumes the message data that the environment wants to consume, and the real-time performance of consumption can be ensured.
S240, when the environment identifier corresponding to the service processing feedback message is consistent with the environment identifier of the current information processing environment where the server is located, consuming the service processing feedback message to perform service processing.
Specifically, the environment identifier corresponding to the service processing feedback message is obtained through parsing and querying. And then, further judging whether the environment identifier corresponding to the service processing feedback message is the same as the environment identifier of the current information processing environment where the server reading the service processing feedback message is located, and when the environment identifier corresponding to the service processing feedback message is consistent with the environment identifier of the current information processing environment where the server is located, directly consuming the corresponding theme message by the server according to a method for consuming the corresponding theme message in the service processing flow.
Further, when the environment identifier corresponding to the service processing feedback message is not consistent with the environment identifier of the current information processing where the server is located, the service processing feedback message is forwarded to the server matched with the environment identifier corresponding to the service processing feedback message, that is, the service processing feedback message is sent to the environment where the service processing feedback message should be consumed. Therefore, each service processing feedback message can be guaranteed to be consumed by the correct message consumption environment.
The technical proposal of the embodiment of the invention adds the environment identifier of the message consumption environment of the server for the service request by the server receiving the service request and sends the related information of the service request to the service sharing data, when the server monitors the responded service processing feedback message, based on the section-oriented programming proxy mode, the consumption environment corresponding to the service processing feedback message is judged, when the environment identifier corresponding to the service processing feedback message is consistent with the environment identifier of the current information processing where the server is located, the service processing feedback message is consumed to perform service processing, so that the isolation of different message consumption environments is realized, each set of message consumption environment can consume the target task message data which the user wants to consume, and the timeliness of service message consumption can be ensured for the service with higher real-time requirement.
The following is an embodiment of a service information processing apparatus provided in an embodiment of the present invention, which belongs to the same inventive concept as the service information processing methods in the foregoing embodiments, and can implement the service information processing methods in the foregoing embodiments. For details that are not described in detail in the embodiment of the service information processing apparatus, reference may be made to the embodiment of the service information processing method described above.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a service information processing apparatus according to a third embodiment of the present invention, which is applicable to a case where two or more message consumption environments exist and consumption environments of service messages are distinguished.
As shown in fig. 3, the apparatus specifically includes an identifier setting module 310, an identifier recognizing module 320, and a service processing module 330.
The identifier setting module 310 is configured to receive a service request of a user, add an environment identifier of a current information processing environment where the server is located to the service request, and send the service request with the added environment identifier to a service information sharing database, so that a service system related to the service request performs service processing; an identifier recognizing module 320, configured to monitor and parse a service processing feedback message of the service-related system; the service processing module 330 is configured to consume the service processing feedback message to perform service processing when the environment identifier corresponding to the service processing feedback message is consistent with the environment identifier of the current information processing environment where the server is located.
According to the technical scheme of the embodiment, the server receiving the service request adds the environment identifier of the message consumption environment where the server is located for the service request, and sends the relevant information of the service request to the service sharing data.
Optionally, the service processing module 330 is further configured to:
and when the environment identifier corresponding to the service processing feedback message is not consistent with the environment identifier of the current information processing where the server is located, forwarding the service processing feedback message to the server matched with the environment identifier corresponding to the service processing feedback message.
Optionally, the identification module 320 includes:
a service identification extraction submodule, configured to obtain service identification information of the service processing feedback message after monitoring the service processing feedback message;
and the environment identifier identification submodule is used for inquiring the environment identifier corresponding to the service processing feedback message according to the service identifier information based on the section-oriented programming agent mode.
Optionally, the environment identifier recognizing sub-module is specifically configured to:
calling a preset consumption method for consuming the service processing feedback message;
and when a data isolation annotation is added to the preset consumption method, bringing the service identification information into the data isolation annotation to inquire the environment identification corresponding to the service processing feedback message, wherein the data isolation annotation is used for inquiring the environment identification corresponding to the service processing feedback message according to the service identification information.
Optionally, the environment identifier identifying sub-module is further configured to:
bringing the service identification information into the data isolation annotation;
and inquiring the environment identifier corresponding to the service processing feedback message from the service information sharing database according to the service identifier information by the data isolation annotation.
Optionally, the environment identifier is an online environment identifier, or a pre-sending environment identifier in at least one pre-sending environment identifier.
Optionally, the service request includes an item purchase request, and the related service system of the service request includes an item purchase payment system and an item attribution platform system.
The service information processing device configured at the server side provided by the embodiment of the invention can execute the service information processing method applied to the server side provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example four
Fig. 4 is a schematic structural diagram of a server according to a fourth embodiment of the present invention. FIG. 4 illustrates a block diagram of an exemplary server 12 suitable for use in implementing embodiments of the present invention. The server 12 shown in fig. 4 is only an example, and should not bring any limitation to the function and the scope of use of the embodiment of the present invention.
As shown in FIG. 4, 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 couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
The server 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by server 12 and includes both volatile and nonvolatile media, removable and non-removable media.
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/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, and commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. 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 carry out the functions of embodiments of the invention.
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 examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
The server 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with the server 12, and/or with any devices (e.g., network card, modem, etc.) that enable the server 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the server 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 20. As shown, the network adapter 20 communicates with the other modules of the server 12 via the bus 18. It should be understood that although not shown in the figures, 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, among others.
The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, for example, to implement a service information processing method provided by the embodiment of the present invention, the method includes:
receiving a service request of a user, adding an environment identifier of a current information processing environment where the server is located for the service request, and sending the service request added with the environment identifier to a service information sharing database so as to enable a related service system of the service request to perform service processing;
monitoring and analyzing the service processing feedback message of the service related system;
and consuming the service processing feedback message to perform service processing when the environment identifier corresponding to the service processing feedback message is consistent with the environment identifier of the current information processing environment where the server is located.
Of course, those skilled in the art can understand that the processor can also implement the technical solution of the service information processing method provided in any embodiment of the present invention.
EXAMPLE five
This fifth embodiment provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the service information processing method provided in any embodiment of the present invention, where the method includes:
receiving a service request of a user, adding an environment identifier of a current information processing environment where the server is located for the service request, and sending the service request added with the environment identifier to a service information sharing database so as to enable a related service system of the service request to perform service processing;
monitoring and analyzing the service processing feedback message of the service related system;
and consuming the service processing feedback message to perform service processing when the environment identifier corresponding to the service processing feedback message is consistent with the environment identifier of the current information processing environment where the server is located.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer-readable storage medium may be, for example but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the 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 the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
EXAMPLE six
Fig. 5 is a schematic structural diagram of a service information processing system according to a sixth embodiment of the present invention. As shown in fig. 5, the service information processing system includes: the system comprises a plurality of service servers, associated service servers and database subsystems, wherein the service servers, the associated service servers and the database subsystems are different in service message consumption environments.
The service servers with different service message consumption environments are respectively used for receiving and processing service requests in different service message consumption environments. The service servers with different service message consumption environments exist, because in the process of formal application of one application software product in a production environment, the application software product can be adjusted according to service requirements, service logic is modified or new functions are added, and then a pre-sending test is carried out on the modified software product in a pre-sending environment, so that the production environment and the pre-sending environment exist at the same time. Moreover, there may be multiple pre-distribution environments, and different pre-distribution environments respectively test different newly-added service functions or modified service logics. The number of the service servers is determined according to the use development condition of the actual application software.
The service server can implement the service information processing method described in the above embodiment. Specifically, in order to distinguish the consumption environments of the messages to be consumed, when each service server initially receives a service request, a message consumption environment identifier is added to the received service request, so that the received service request and the consumption environment corresponding to the received service request generate an association relationship. The consumption environment identification indicates the message consumption environment in which the server receiving the service request is located. The relevant information of the service request added with the environment identifier is sent to the database subsystem for the relevant service system (server) of the service request to perform service processing and query comparison of the service information. After the service server receiving the service request reads the service processing feedback message generated by the associated service server, the consumption environment corresponding to the service processing feedback message can be correspondingly inquired in the database through the service request identifier in the service processing feedback message. When the environment identifier corresponding to the service processing feedback message is consistent with the environment identifier of the current information processing environment where the service server is located, the service server can consume the service processing feedback message to perform service processing. And when the environment identifier corresponding to the service processing feedback message is not consistent with the environment identifier of the current information processing where the server is located, forwarding the service processing feedback message to the server matched with the environment identifier corresponding to the service processing feedback message, namely sending the service processing feedback message to the environment where the service processing feedback message is consumed. Therefore, each service processing feedback message can be guaranteed to be consumed by the correct message consumption environment.
And the associated service server is used for finishing the service operation associated with the service request. The service operation associated with the service request is one or more steps in the overall process of completing the service request. For example, if the service of the service server is a ticket ordering service, the associated service server may be a payment system server and a ticket inquiry and management system server of an airline which sells tickets. After the payment system finishes the task of collecting the air ticket fee, a feedback message taking 'payment' as a theme is generated, wherein the feedback message comprises the contents of an order number, payment amount, payment mode, successful payment and the like of the purchased commodity, and the service processing feedback message is sent to the database subsystem so as to inform a service server receiving a service request whether a user pays for the air ticket purchased by the user.
And the database subsystem is connected with the plurality of service servers and the service association system and is used for storing the information of the service request and the service processing feedback information related to the service request. Each service server and the associated service server can inquire the service related information in the database subsystem, and the service processing feedback message generated by the associated service server also exists in the cache message queue of the database subsystem.
According to the technical scheme of the embodiment, a service information processing system is formed by a service server, an associated service server and a database subsystem, the server receiving the service request adds an environment identifier of a message consumption environment where the server is located for the service request, and sends related information of the service request to service shared data, when the server monitors a response service processing feedback message, the consumption environment corresponding to the service processing feedback message is judged firstly, and when the environment identifier corresponding to the service processing feedback message is consistent with an environment identifier of current information processing where the server is located, the service processing feedback message is consumed for service processing, so that isolation of different message consumption environments is realized, and each set of message consumption environment can consume target task message data which the server wants to consume.
It will be understood by those skilled in the art that the modules or steps of the invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and optionally they may be implemented by program code executable by a computing device, such that it may be stored in a memory device and executed by a computing device, or it may be separately fabricated into various integrated circuit modules, or it may be fabricated by fabricating a plurality of modules or steps thereof into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (11)

1. A service information processing method is applied to a server and is characterized by comprising the following steps:
receiving a service request of a user, adding an environment identifier of a current information processing environment where the server is located for the service request, and sending the service request added with the environment identifier to a service information sharing database so as to enable a related service system of the service request to perform service processing;
monitoring and analyzing the service processing feedback message of the service related system;
and consuming the service processing feedback message to perform service processing when the environment identifier corresponding to the service processing feedback message is consistent with the environment identifier of the current information processing environment where the server is located.
2. The method of claim 1, further comprising:
and when the environment identifier corresponding to the service processing feedback message is not consistent with the environment identifier of the current information processing where the server is located, forwarding the service processing feedback message to the server matched with the environment identifier corresponding to the service processing feedback message.
3. The method of claim 1, wherein monitoring and parsing the service processing feedback message of the service-related system comprises:
after monitoring the service processing feedback message, acquiring service identification information of the service processing feedback message;
and inquiring the environment identifier corresponding to the service processing feedback message according to the service identifier information based on the tangent plane-oriented programming proxy mode.
4. The method of claim 3, wherein the querying the environment identifier corresponding to the service processing feedback message according to the service identifier information based on the facet-oriented programming proxy mode comprises:
calling a preset consumption method for consuming the service processing feedback message;
and when a data isolation annotation is added to the preset consumption method, bringing the service identification information into the data isolation annotation to inquire the environment identification corresponding to the service processing feedback message, wherein the data isolation annotation is used for inquiring the environment identification corresponding to the service processing feedback message according to the service identification information.
5. The method of claim 4, wherein the bringing the service identification information into the data isolation annotation to query an environment identification corresponding to the service processing feedback message comprises:
bringing the service identification information into the data isolation annotation;
and inquiring the environment identifier corresponding to the service processing feedback message from the service information sharing database according to the service identifier information by the data isolation annotation.
6. The method according to any of claims 1-5, wherein the environment identifier is an online environment identifier or one of at least one prefiring environment identifier.
7. The method of claim 6, wherein the service request comprises an item purchase request, and wherein the service systems associated with the service request comprise an item purchase payment system and an item attribution platform system.
8. A service information processing apparatus, provided in a server, comprising:
the identification setting module is used for receiving a service request of a user, adding an environment identification of a current information processing environment where the server is located for the service request, and sending the service request added with the environment identification to a service information sharing database so as to enable a related service system of the service request to perform service processing;
the identification module is used for monitoring and analyzing the service processing feedback message of the service related system;
and the service processing module is used for consuming the service processing feedback message to process the service when the environment identifier corresponding to the service 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 executed by the one or more processors, cause the one or more processors to implement the business information processing method of any one of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a service information processing method according to any one of claims 1 to 7.
11. A business information processing system, the system comprising:
a plurality of service servers in different service message consumption environments, each for implementing the service information processing method according to any one of claims 1 to 7;
the related service server is used for finishing the service operation related to the service request and sending the service processing feedback information to the database subsystem;
and the database subsystem is connected with the plurality of service servers and the service association system and is used for storing the information of the service request and the service processing feedback information related to the service request.
CN202011322540.3A 2020-11-23 2020-11-23 Service information processing method, device, server, medium and system Pending CN113763094A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011322540.3A CN113763094A (en) 2020-11-23 2020-11-23 Service information processing method, device, server, medium and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011322540.3A CN113763094A (en) 2020-11-23 2020-11-23 Service information processing method, device, server, medium and system

Publications (1)

Publication Number Publication Date
CN113763094A true CN113763094A (en) 2021-12-07

Family

ID=78786077

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011322540.3A Pending CN113763094A (en) 2020-11-23 2020-11-23 Service information processing method, device, server, medium and system

Country Status (1)

Country Link
CN (1) CN113763094A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115277761A (en) * 2022-07-19 2022-11-01 京东科技信息技术有限公司 Service message consumption method and device in same network environment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105765613A (en) * 2013-07-10 2016-07-13 964比德科有限公司 Devices, systems and methods for data processing
CN109863527A (en) * 2016-12-30 2019-06-07 谷歌有限责任公司 The method and system of the server side rendering of local content for showing
CN110022260A (en) * 2019-02-02 2019-07-16 阿里巴巴集团控股有限公司 A kind of Cross-environment acknowledgement message processing method and system
CN110765187A (en) * 2018-07-09 2020-02-07 北京京东尚科信息技术有限公司 Data source route management method and device
CN111782717A (en) * 2020-07-21 2020-10-16 政采云有限公司 Data processing method and system, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105765613A (en) * 2013-07-10 2016-07-13 964比德科有限公司 Devices, systems and methods for data processing
CN109863527A (en) * 2016-12-30 2019-06-07 谷歌有限责任公司 The method and system of the server side rendering of local content for showing
CN110765187A (en) * 2018-07-09 2020-02-07 北京京东尚科信息技术有限公司 Data source route management method and device
CN110022260A (en) * 2019-02-02 2019-07-16 阿里巴巴集团控股有限公司 A kind of Cross-environment acknowledgement message processing method and system
CN111782717A (en) * 2020-07-21 2020-10-16 政采云有限公司 Data processing method and system, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115277761A (en) * 2022-07-19 2022-11-01 京东科技信息技术有限公司 Service message consumption method and device in same network environment

Similar Documents

Publication Publication Date Title
CN111324441A (en) Operating environment switching method and device, computer equipment and storage medium
US20150254117A1 (en) Apparatus and method for executing agent
CN111324786B (en) Method and device for processing consultation problem information
CN110895472A (en) Method and device for identifying service change
CN111367531B (en) Code processing method and device
CN116048987A (en) Processing method, device, electronic equipment, system and storage medium for flow business
US8290916B2 (en) Rule-based record profiles to automate record declaration of electronic documents
CN113763094A (en) Service information processing method, device, server, medium and system
CN116302561A (en) State control method, device, equipment and storage medium for application instance
CN113392002B (en) Test system construction method, device, equipment and storage medium
CN110740178A (en) application service processing system and application service processing method
CN111179073A (en) System and method for generating a digital identity of a device on an online marketplace platform for the device
CN115098157A (en) Method and device for processing public service data
CN111405060B (en) Service influence range determining method, device, tool and electronic equipment
CN113742093A (en) Message processing method, device, equipment and storage medium
CN112261072B (en) Service calling method, device, equipment and storage medium
EP3651107A1 (en) Systems and methods for securely creating a listing of equipment on an equipment online marketplace platform
CN112988192A (en) Version updating method and device, electronic equipment and storage medium
CN111478848A (en) Method and system for processing returned mails, electronic equipment and storage medium
CN116975200A (en) Method, device, equipment and medium for controlling working state of server
CN113282282B (en) Business requirement form publishing method and device, electronic equipment and storage medium
CN112463635B (en) Software acceptance testing method and device
US11995202B2 (en) Computer system and data access control method
CN116166558A (en) Transaction testing method, device, equipment and storage medium
CN113095919A (en) Storage method, device and equipment of commodity file and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination