CN112363946B - Message forwarding method and device based on service system - Google Patents

Message forwarding method and device based on service system Download PDF

Info

Publication number
CN112363946B
CN112363946B CN202011335080.8A CN202011335080A CN112363946B CN 112363946 B CN112363946 B CN 112363946B CN 202011335080 A CN202011335080 A CN 202011335080A CN 112363946 B CN112363946 B CN 112363946B
Authority
CN
China
Prior art keywords
message
forwarding
environment
theme
release
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.)
Active
Application number
CN202011335080.8A
Other languages
Chinese (zh)
Other versions
CN112363946A (en
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.)
Shanghai Wanwu Xinsheng Environmental Technology Group Co
Original Assignee
Shanghai Wanwu Xinsheng Environmental Technology Group Co
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 Shanghai Wanwu Xinsheng Environmental Technology Group Co filed Critical Shanghai Wanwu Xinsheng Environmental Technology Group Co
Priority to CN202011335080.8A priority Critical patent/CN112363946B/en
Publication of CN112363946A publication Critical patent/CN112363946A/en
Application granted granted Critical
Publication of CN112363946B publication Critical patent/CN112363946B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The production environment of the application intercepts the message through a first MQ message forwarding component when the message is executed after receiving the message from the external equipment, acquires a message forwarding rule corresponding to the message according to the subject of the message, judges whether the message is to be forwarded to a pre-release environment according to the message forwarding rule corresponding to the message, and sequences an original message body and the subject of the message into a forwarding message and sends the forwarding message to the pre-release environment if the message is to be forwarded to the pre-release environment; and analyzing the forwarded message by a second MQ message forwarding component in the pre-release environment through reverse sequencing to obtain a message theme and an original message body, acquiring a consumption monitoring class corresponding to the message theme, and delivering the original message body to the consumption monitoring class corresponding to the theme in the pre-release environment for consumption processing, thereby completing the processing flow of automatically forwarding the message in the production environment to the pre-release environment.

Description

Message forwarding method and device based on service system
Technical Field
The present disclosure relates to the field of computers, and in particular, to a method and an apparatus for forwarding a message based on a service system.
Background
In the service function test process, in order to ensure the test quality, a targeted scene test needs to be performed in a more comprehensive and real environment. Message forwarding is typically set when a consumption scenario of Message Queue (MQ) messages is encountered during testing. In a practical scenario, the implementation manner of message forwarding mainly includes the following steps: limiting the production environment, only allowing the pre-release environment to consume; the production environment is directly connected with the pre-release environment to forward the message; and aiming at message marking, message middleware uniformly forwards the message, and the like. However, in the implementation mode of limiting the production environment and only allowing the consumption of the pre-release environment, the safety problems of message backlog, inconsistent production service data affected by processing errors and the like may exist, and the operation cost of configuring the consumption forwarding during the test is higher, so that the quick test is not facilitated; in the implementation mode of forwarding the message by directly connecting the production environment with the pre-release environment, the production environment and the pre-release environment have higher requirements on network environments where the two environments are located, and the direct connection can add additional network connection to bring unnecessary network overhead, and furthermore, the synchronous consumption operation of the pre-release environment can possibly bring performance problems, thereby reducing the throughput of the message consumed by the production environment; in the implementation mode of uniformly forwarding the message by the message middleware aiming at message marking, the implementation is simple, but all technical stacks of an upstream system and a downstream system are required to be realized according to uniform standards, and the implementation difficulty is higher in the formed service system cluster.
Disclosure of Invention
An object of the present application is to provide a message forwarding method and device based on a service system, which not only can promote the security of a message in a pre-release environment consumption production environment, reduce the complexity of the pre-release environment when testing the message in the consumption production environment, but also can ensure high availability in the message forwarding process, so as to promote the performance of the message forwarding operation.
According to one aspect of the present application, there is provided a message forwarding method based on a service system, the service system including a production environment and a pre-release environment, wherein the method includes:
the production environment comprises a first Message Queue (MQ) message forwarding component, and the pre-release environment comprises a second MQ message forwarding component;
after receiving a message from an external device, the production environment intercepts the message through the first MQ message forwarding component when executing the message, acquires a message forwarding rule corresponding to the message according to a subject of the message, judges whether the message is to be forwarded to a pre-release environment according to the message forwarding rule corresponding to the message, and sequences an original message body and the subject of the message into a forwarding message and sends the forwarding message to the pre-release environment if the message is to be forwarded to the pre-release environment;
the second MQ message forwarding component analyzes the forwarding message through reverse serialization to obtain a subject and an original message body of the message, obtains a consumption monitoring class corresponding to the subject of the message, and sends the original message body to the consumption monitoring class corresponding to the subject in the pre-release environment to perform consumption processing.
Further, in the above method, after determining whether the message is to be forwarded to the pre-publishing environment according to the message forwarding rule corresponding to the message, the method further includes:
if not, directly delivering the original message body of the message to a consumption monitoring class corresponding to the subject of the message in the production environment for consumption processing.
Further, in the above method, the production environment further includes a first MQ middleware, where after the production environment receives a message from an external device, the first MQ message forwarding component intercepts the message when executing the message, and includes:
the first MQ middleware receives a message from the external device;
the first MQ middleware sends the message to a production environment of a business system subscribing to the topic of the message;
and when the business system corresponding to the production environment executes the message, intercepting the message through the first MQ message forwarding component.
Further, in the above method, the method includes:
a message forwarding configuration center is configured in the first message forwarding component, wherein the message forwarding configuration center comprises at least one forwarding theme and a message forwarding rule corresponding to the forwarding theme;
the obtaining the message forwarding rule corresponding to the message according to the theme of the message includes:
and acquiring a message forwarding rule corresponding to the theme of the message from the message forwarding configuration center according to the theme of the message, and determining the message forwarding rule as the message forwarding rule corresponding to the message.
Further, in the above method, the pre-publishing environment further includes a second MQ middleware, where serializing the original message body and the topic of the message into a forwarding message and sending the forwarding message to the pre-publishing environment includes:
serializing an original message body and a theme of the message into a forwarded message and sending the forwarded message to the second MQ middleware;
the second MQ middleware sends the forwarding message to a pre-release environment of a business system subscribed to the subject of the message, so that the pre-release environment delivers the forwarding message to the second MQ message forwarding component for processing.
According to another aspect of the present application, there is also provided a non-volatile storage medium having stored thereon computer readable instructions, which when executed by a processor, cause the processor to implement a message forwarding method based on a business system as described above.
According to another aspect of the present application, there is also provided a message forwarding device based on a service system, where the device includes:
one or more processors;
a computer readable medium for storing one or more computer readable instructions,
the one or more computer-readable instructions, when executed by the one or more processors, cause the one or more processors to implement a message forwarding method based on a business system as described above.
Compared with the prior art, the business system in the application comprises a production environment and a pre-release environment, wherein the production environment comprises a first Message Queue (MQ) message forwarding component, and the pre-release environment comprises a second MQ message forwarding component; after receiving a message from an external device, the production environment intercepts the message through the first MQ message forwarding component when executing the message, acquires a message forwarding rule corresponding to the message according to a subject of the message, judges whether the message is to be forwarded to a pre-release environment according to the message forwarding rule corresponding to the message, and sequences an original message body and the subject of the message into a forwarding message and sends the forwarding message to the pre-release environment if the message is to be forwarded to the pre-release environment; and analyzing the forwarded message by a second MQ message forwarding component in the pre-release environment through reverse serialization to obtain a theme and an original message body of the message, acquiring a consumption monitoring class corresponding to the theme of the message, and delivering the original message body to the consumption monitoring class corresponding to the theme in the pre-release environment for consumption processing, so that the processing flow of automatically forwarding the message in the production environment to the pre-release environment is completed, the safety of the message in the pre-release environment for consuming the production environment is improved, the complexity of the pre-release environment for testing the message in the consumption production environment is reduced, and the high availability in the message forwarding process is ensured to improve the performance of the message forwarding operation.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the detailed description of non-limiting embodiments, made with reference to the following drawings, in which:
fig. 1 shows a schematic diagram of an actual interaction flow of a message forwarding method based on a business system according to an aspect of the present application.
The same or similar reference numbers in the drawings refer to the same or similar parts.
Detailed Description
The present application is described in further detail below with reference to the accompanying drawings.
In one typical configuration of the present application, the terminal, the device of the service network, and the trusted party each include one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer readable media, as defined herein, does not include non-transitory computer readable media (transmission media), such as modulated data signals and carrier waves.
According to the message forwarding method based on the service system, the service system comprises a production environment and a pre-release environment, a first MQ message component is configured in the production environment, a second MQ message forwarding component is configured in the pre-release environment, and after receiving a message from an external environment corresponding to an external system, the message is automatically forwarded to the pre-release environment from the production environment through the first MQ message forwarding component and the second MQ message forwarding component.
Firstly, when an external system needs to send a message to a service system, the production environment receives the message from an external device, then, when the service system of the production environment executes a message consumption mode of consumption monitoring class corresponding to the theme of the message, the first MQ message forwarding component intercepts the message, acquires a message forwarding rule corresponding to the message according to the theme of the message, judges whether the message needs to be forwarded to a pre-release environment according to the message forwarding rule corresponding to the message, if so, the message needs to be forwarded to the pre-release environment for processing, the original message body and the theme of the message are sequenced into a forwarding message and sent to the pre-release environment; herein, the subject of the message includes, but is not limited to, a subject name or an identifier for indicating the subject, and the like.
The second MQ message forwarding component in the pre-release environment analyzes the forwarding message through reverse sequencing to obtain a theme and an original message body of the message, obtains a consumption monitoring class corresponding to the theme of the message, and sends the original message body to the consumption monitoring class corresponding to the theme in the pre-release environment for consumption processing, so that the processing flow of automatically forwarding the message in the production environment to the pre-release environment at one time is completed, the safety of the message in the pre-release environment consuming the production environment can be improved, the complexity of the pre-release environment in testing the message in the consumption production environment can be reduced, and the high availability in the message forwarding process can be ensured to improve the performance of message forwarding operation.
In this embodiment, after determining whether the message is to be forwarded to the pre-release environment according to the message forwarding rule corresponding to the message, the method further includes:
if not, the message is not required to be forwarded to a pre-release environment for processing, the original message body of the message is directly submitted to a message consumption mode corresponding to a consumption monitoring type corresponding to the subject of the message in the production environment for consumption processing.
Further, the production environment further comprises a first MQ middleware, wherein after the production environment receives a message from an external device, the message is intercepted by the first MQ message forwarding component when the message is executed, and the method specifically comprises the following steps: the method comprises the steps that external equipment corresponding to an external system sends a message to a first MQ middleware, so that the first MQ middleware distributes the message to a production environment of a business system subscribing a subject of the message after receiving the message from the external equipment; after receiving the message, the business system corresponding to the production environment intercepts the message through the first MQ message forwarding component when executing a message consumption mode of consumption monitoring class corresponding to the subject of the message, so as to intercept the message through the first MQ message.
Further, the message forwarding method based on the service system further comprises the following steps:
a message forwarding configuration center is configured in the first message forwarding component, wherein the message forwarding configuration center comprises at least one forwarding theme and a message forwarding rule corresponding to the forwarding theme;
the obtaining the message forwarding rule corresponding to the message according to the theme of the message includes:
and acquiring a message forwarding rule corresponding to the theme of the message from the message forwarding configuration center according to the theme of the message, and determining the message forwarding rule as the message forwarding rule corresponding to the message.
For example, the message forwarding configuration center is configured with N forwarding topics, where N is a positive integer greater than or equal to 1, and the message forwarding configuration center is configured with a forwarding topic 1 and its corresponding message forwarding rule 1, a forwarding topic 2 and its corresponding message forwarding rules 2 and … …, a forwarding topic (N-1) and its corresponding message forwarding rule (N-1), and a forwarding topic N and its corresponding message forwarding rule N; if the topic of the message is topic (N-5), the first MQ message forwarding component performs message forwarding rule matching in the message forwarding configuration center according to the topic (N-5), and the message forwarding rule corresponding to the topic of the message is obtained as follows: message forwarding rule (N-5), then the message forwarding rule corresponding to the topic (N-5) is: and determining a message forwarding rule (N-5) as the message forwarding rule of the message, so as to judge whether the message needs to be forwarded to a pre-release environment or not through the message forwarding rule, and realizing the matching and the determination of the message forwarding rule corresponding to the message.
Further, the pre-release environment further includes a second MQ middleware, where the serializing the original message body and the topic of the message into a forwarding message and sending the forwarding message to the pre-release environment includes:
serializing an original message body and a theme of the message into a forwarded message and sending the forwarded message to the second MQ middleware;
the second MQ middleware sends the forwarding message to a pre-release environment of a business system subscribed to the subject of the message, so that the pre-release environment delivers the forwarding message to the second MQ message forwarding component for processing.
For example, in the production environment, the first MQ message forwarding component determines whether the message is to be forwarded to a pre-publishing environment according to a message forwarding rule corresponding to the message, if yes, that is, the message needs to be forwarded to the pre-publishing environment for processing, the original message body and the theme of the message are serialized into a forwarding message and sent to a forwarding message theme in the second MQ middleware, so that the second MQ middleware distributes the forwarding message to the pre-publishing environment of a service system subscribing to the theme of the message, and after the pre-publishing environment of the service system receives the forwarding message, the forwarding message is forwarded to the second MQ message forwarding component for processing; the second MQ message forwarding component analyzes the forwarding message through reverse sequencing to obtain a theme and an original message body of the message, acquires a consumption monitoring class corresponding to the theme of the message, and delivers the original message body to the consumption monitoring class corresponding to the theme in the pre-release environment for consumption processing, so that the processing flow of automatically forwarding the message of the production environment to the pre-release environment at one time is completed, the safety of the message of the pre-release environment consumption production environment can be improved, the complexity of the pre-release environment when testing the message of the consumption production environment can be reduced, and the high availability in the message forwarding process can be ensured to improve the performance of message forwarding operation.
As shown in fig. 1, in one aspect, a message forwarding method based on a service system is shown in a schematic actual interaction flow diagram; the first MQ message forwarding component and the second MQ message forwarding component provide a stable, reliable, customizable rule support for the business system to automatically forward messages of the production environment to the prefire environment. The method comprises the following steps of automatically judging whether the message needs to be forwarded according to the environment and the dynamic forwarding rule when the message is consumed through the annotation form encapsulation, and automatically matching the logic of a consumer for processing after the message is forwarded to the pre-release environment:
introducing a first MQ message forwarding component and a second MQ message into a service system, wherein the first MQ message forwarding component is in a production environment of the service system, the second MQ message is in a pre-release environment of the service system, and a message forwarding configuration center is configured in the first MQ message forwarding component of the production environment, comprises at least one forwarding theme and a message forwarding rule corresponding to the forwarding theme, and indicates the environment of the service system, such as the production environment, the pre-release environment and the like; in the pre-release environment, additional configuration of interception of the subject of the forwarded message is required. In addition, message forwarding annotation such as forwarding or non-forwarding is marked on the consumption monitoring class which needs to support message forwarding, and a theme name of the consumption monitoring theme or an identifier for indicating the theme is set.
After the external equipment corresponding to the external system sends the message to the first MQ middleware, the first MQ middleware can be distributed to a production environment of a business system subscribing the theme of the message, and after the business system of the production environment receives the message, the message is intercepted by the first MQ message forwarding component when the message consumption mode of the consumption monitoring class corresponding to the theme of the message is executed.
The first MQ message forwarding component acquires a message forwarding rule corresponding to the current subject of the message in a message forwarding configuration center according to the current subject of the message so as to acquire the message forwarding rule corresponding to the message, and then judges whether the message is to be forwarded to a pre-release environment of the service system or not according to the message forwarding rule corresponding to the message.
If the message is not forwarded to the pre-release environment, directly delivering the original message body of the message to a consumption monitoring class corresponding to the subject of the message in the production environment for consumption processing, so as to realize the consumption processing of the message in a message consumption mode of the consumption monitoring class corresponding to the subject of the message in the production environment.
If the message needs to be forwarded to a pre-release environment, the original message body and the theme of the message are serialized into a forwarding message and sent to a second MQ middleware of the pre-release environment, and the second MQ middleware can send the forwarding message to the pre-release environment of a business system subscribing the theme of the message.
After receiving the forwarding information, the pre-release environment of the service system delivers the forwarding information to the second MQ information forwarding component for processing; the second MQ message forwarding component analyzes the forwarding message through reverse sequencing to obtain a theme and an original message body of the message, acquires a consumption monitoring class corresponding to the theme of the message, and delivers the original message body to the consumption monitoring class corresponding to the theme in the pre-release environment for consumption processing, so that the processing flow of automatically forwarding the message of the production environment to the pre-release environment at one time is completed, the safety of the message of the pre-release environment consumption production environment can be improved, the complexity of the pre-release environment in testing the message of the consumption production environment can be reduced, and the high availability in the message forwarding process can be ensured to improve the performance of message forwarding operation.
According to another aspect of the present application, there is also provided a non-volatile storage medium having stored thereon computer readable instructions, which when executed by a processor, cause the processor to implement a message forwarding method based on a business system as described above.
According to another aspect of the present application, there is also provided a message forwarding device based on a service system, where the device includes:
one or more processors;
a computer readable medium for storing one or more computer readable instructions,
the one or more computer-readable instructions, when executed by the one or more processors, cause the one or more processors to implement a message forwarding method based on a business system as described above.
For details of each embodiment of the service system-based message forwarding device, reference may be specifically made to the corresponding portion of the embodiment of the service system-based message forwarding method, which is not described herein.
In summary, the service system of the present application includes a production environment and a pre-release environment, where the production environment includes a first message queue MQ message forwarding component, and the pre-release environment includes a second MQ message forwarding component; after receiving a message from an external device, the production environment intercepts the message through the first MQ message forwarding component when executing the message, acquires a message forwarding rule corresponding to the message according to a subject of the message, judges whether the message is to be forwarded to a pre-release environment according to the message forwarding rule corresponding to the message, and sequences an original message body and the subject of the message into a forwarding message and sends the forwarding message to the pre-release environment if the message is to be forwarded to the pre-release environment; and analyzing the forwarded message by a second MQ message forwarding component in the pre-release environment through reverse serialization to obtain a theme and an original message body of the message, acquiring a consumption monitoring class corresponding to the theme of the message, and delivering the original message body to the consumption monitoring class corresponding to the theme in the pre-release environment for consumption processing, so that the processing flow of automatically forwarding the message in the production environment to the pre-release environment is completed, the safety of the message in the pre-release environment for consuming the production environment is improved, the complexity of the pre-release environment for testing the message in the consumption production environment is reduced, and the high availability in the message forwarding process is ensured to improve the performance of the message forwarding operation.
It should be noted that the present application may be implemented in software and/or a combination of software and hardware, for example, using Application Specific Integrated Circuits (ASIC), a general purpose computer or any other similar hardware device. In one embodiment, the software programs of the present application may be executed by a processor to implement the steps or functions as described above. Likewise, the software programs of the present application (including associated data structures) may be stored on a computer readable recording medium, such as RAM memory, magnetic or optical drive or diskette and the like. In addition, some steps or functions of the present application may be implemented in hardware, for example, as circuitry that cooperates with the processor to perform various steps or functions.
Furthermore, portions of the present application may be implemented as a computer program product, such as computer program instructions, which when executed by a computer, may invoke or provide methods and/or techniques in accordance with the present application by way of operation of the computer. Program instructions for invoking the methods of the present application may be stored in fixed or removable recording media and/or transmitted via a data stream in a broadcast or other signal bearing medium and/or stored within a working memory of a computer device operating according to the program instructions. An embodiment according to the present application comprises an apparatus comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein the computer program instructions, when executed by the processor, trigger the apparatus to operate a method and/or a solution according to the embodiments of the present application as described above.
It will be evident to those skilled in the art that the present application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential characteristics thereof. The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is evident that the word "comprising" does not exclude other elements or steps, and that the singular does not exclude a plurality. A plurality of units or means recited in the apparatus claims can also be implemented by means of one unit or means in software or hardware. The terms first, second, etc. are used to denote a name, but not any particular order.

Claims (5)

1. A message forwarding method based on a service system, the service system comprising a production environment and a pre-release environment, wherein the method comprises:
the production environment comprises a first MQ message forwarding component, and the pre-release environment comprises a second MQ message forwarding component;
after receiving a message from an external device, the production environment intercepts the message through the first MQ message forwarding component when executing the message, acquires a message forwarding rule corresponding to the message according to a subject of the message, judges whether the message is to be forwarded to a pre-release environment according to the message forwarding rule corresponding to the message, and sequences an original message body and the subject of the message into a forwarding message and sends the forwarding message to the pre-release environment if the message is to be forwarded to the pre-release environment;
the second MQ message forwarding component analyzes the forwarding message through reverse serialization to obtain a subject and an original message body of the message, obtains a consumption monitoring class corresponding to the subject of the message, and sends the original message body to the consumption monitoring class corresponding to the subject in the pre-release environment for consumption processing;
the production environment further comprises a first MQ middleware, wherein after the production environment receives a message from an external device, the message is intercepted through the first MQ message forwarding component when the message is executed, and the method comprises the following steps: the first MQ middleware receives a message from the external device; the first MQ middleware sends the message to a production environment of a business system subscribing to the topic of the message; when executing the message, the business system corresponding to the production environment intercepts the message through the first MQ message forwarding component;
the pre-release environment further comprises a second MQ middleware, wherein the original message body and the theme of the message are serialized into a forwarding message and sent to the pre-release environment, and the method comprises the following steps: serializing an original message body and a theme of the message into a forwarded message and sending the forwarded message to the second MQ middleware; the second MQ middleware sends the forwarding message to a pre-release environment of a business system subscribed to the subject of the message, so that the pre-release environment delivers the forwarding message to the second MQ message forwarding component for processing.
2. The method of claim 1, wherein after the determining, according to the message forwarding rule corresponding to the message, whether the message is to be forwarded to a pre-release environment, further comprises:
if not, directly delivering the original message body of the message to a consumption monitoring class corresponding to the subject of the message in the production environment for consumption processing.
3. The method according to claim 1, wherein the method comprises:
a message forwarding configuration center is configured in the first MQ message forwarding component, wherein the message forwarding configuration center comprises at least one forwarding theme and a message forwarding rule corresponding to the forwarding theme;
the obtaining the message forwarding rule corresponding to the message according to the theme of the message includes:
and acquiring a message forwarding rule corresponding to the theme of the message from the message forwarding configuration center according to the theme of the message, and determining the message forwarding rule as the message forwarding rule corresponding to the message.
4. A non-volatile storage medium having stored thereon computer readable instructions which, when executed by a processor, cause the processor to implement the method of any of claims 1 to 3.
5. A message forwarding device based on a business system, wherein the device comprises:
one or more processors;
a computer readable medium for storing one or more computer readable instructions,
the one or more computer-readable instructions, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1 to 3.
CN202011335080.8A 2020-11-24 2020-11-24 Message forwarding method and device based on service system Active CN112363946B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011335080.8A CN112363946B (en) 2020-11-24 2020-11-24 Message forwarding method and device based on service system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011335080.8A CN112363946B (en) 2020-11-24 2020-11-24 Message forwarding method and device based on service system

Publications (2)

Publication Number Publication Date
CN112363946A CN112363946A (en) 2021-02-12
CN112363946B true CN112363946B (en) 2024-04-16

Family

ID=74533648

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011335080.8A Active CN112363946B (en) 2020-11-24 2020-11-24 Message forwarding method and device based on service system

Country Status (1)

Country Link
CN (1) CN112363946B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113094189B (en) * 2021-04-02 2022-03-18 上海万物新生环保科技集团有限公司 Method and equipment for processing messages in multi-channel message queue

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107454186A (en) * 2017-08-24 2017-12-08 国网浙江省电力公司衢州供电公司 A kind of data safe transmission method based on message queue
CN107590072A (en) * 2017-08-30 2018-01-16 深圳乐信软件技术有限公司 A kind of application and development and the method and apparatus of test
CN109271417A (en) * 2018-11-23 2019-01-25 福建榕基软件股份有限公司 A kind of lightweight messages queue implementing method and storage equipment based on database
CN110022260A (en) * 2019-02-02 2019-07-16 阿里巴巴集团控股有限公司 A kind of Cross-environment acknowledgement message processing method and system
CN110347605A (en) * 2019-07-12 2019-10-18 北京百度网讯科技有限公司 Method, apparatus, equipment and the storage medium for preventing software from degenerating
CN110489133A (en) * 2019-08-23 2019-11-22 亿企赢网络科技有限公司 A kind of gray scale dissemination method, system and electronic equipment and storage medium
CN110727521A (en) * 2018-07-17 2020-01-24 北京京东尚科信息技术有限公司 Synchronous-to-asynchronous calling method, device, system, electronic equipment and readable medium
CN111045837A (en) * 2019-11-26 2020-04-21 福建天泉教育科技有限公司 Cross-service consumption method and storage medium
CN111049753A (en) * 2019-12-18 2020-04-21 网易(杭州)网络有限公司 Message sending method and device, electronic equipment and computer readable medium
CN111240998A (en) * 2020-02-17 2020-06-05 网易(杭州)网络有限公司 Test case processing method and device
CN111324441A (en) * 2020-02-19 2020-06-23 深圳乐信软件技术有限公司 Operating environment switching method and device, computer equipment and storage medium
CN111459819A (en) * 2020-03-31 2020-07-28 北京百度网讯科技有限公司 Software testing method and device, electronic equipment and computer readable medium
CN111538602A (en) * 2020-04-17 2020-08-14 上海悦易网络信息技术有限公司 Message forwarding method and device for message queue

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018199817A1 (en) * 2017-04-24 2018-11-01 Telefonaktiebolaget Lm Ericsson (Publ) Message queue performance monitoring

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107454186A (en) * 2017-08-24 2017-12-08 国网浙江省电力公司衢州供电公司 A kind of data safe transmission method based on message queue
CN107590072A (en) * 2017-08-30 2018-01-16 深圳乐信软件技术有限公司 A kind of application and development and the method and apparatus of test
CN110727521A (en) * 2018-07-17 2020-01-24 北京京东尚科信息技术有限公司 Synchronous-to-asynchronous calling method, device, system, electronic equipment and readable medium
CN109271417A (en) * 2018-11-23 2019-01-25 福建榕基软件股份有限公司 A kind of lightweight messages queue implementing method and storage equipment based on database
CN110022260A (en) * 2019-02-02 2019-07-16 阿里巴巴集团控股有限公司 A kind of Cross-environment acknowledgement message processing method and system
CN110347605A (en) * 2019-07-12 2019-10-18 北京百度网讯科技有限公司 Method, apparatus, equipment and the storage medium for preventing software from degenerating
CN110489133A (en) * 2019-08-23 2019-11-22 亿企赢网络科技有限公司 A kind of gray scale dissemination method, system and electronic equipment and storage medium
CN111045837A (en) * 2019-11-26 2020-04-21 福建天泉教育科技有限公司 Cross-service consumption method and storage medium
CN111049753A (en) * 2019-12-18 2020-04-21 网易(杭州)网络有限公司 Message sending method and device, electronic equipment and computer readable medium
CN111240998A (en) * 2020-02-17 2020-06-05 网易(杭州)网络有限公司 Test case processing method and device
CN111324441A (en) * 2020-02-19 2020-06-23 深圳乐信软件技术有限公司 Operating environment switching method and device, computer equipment and storage medium
CN111459819A (en) * 2020-03-31 2020-07-28 北京百度网讯科技有限公司 Software testing method and device, electronic equipment and computer readable medium
CN111538602A (en) * 2020-04-17 2020-08-14 上海悦易网络信息技术有限公司 Message forwarding method and device for message queue

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于微服务架构的数据一致性方法研究;杨成荣;刘峻松;孙新杰;吴超;;电脑知识与技术(第08期);第272-274页 *

Also Published As

Publication number Publication date
CN112363946A (en) 2021-02-12

Similar Documents

Publication Publication Date Title
CN111539726B (en) Block chain consensus system and method
CN111818136B (en) Data processing method, device, electronic equipment and computer readable medium
EP3362901A1 (en) Telemetry response system
CN110022260B (en) Cross-environment receipt message processing method and system
CN111290866A (en) Service processing method and device
CN111798238A (en) Parallel chain consensus method, device and storage medium
CN112363946B (en) Message forwarding method and device based on service system
CN111314535A (en) Method and equipment for recording quality inspection process of mobile phone
CN111966653A (en) Data processing method, device, server and storage medium for micro-service call link
CN110620806B (en) Information generation method and device
CN118113781A (en) Redis synchronization method, redis synchronization device, storage medium and processor
US12001450B2 (en) Distributed table storage processing method, device and system
CN113992352A (en) Message pushing method and device, electronic equipment and storage medium
EP3896931A1 (en) Spark shuffle-based remote direct memory access system and method
CN111459819B (en) Software testing method and device, electronic equipment and computer readable medium
US12026068B2 (en) Method for data reading and writing processing, data center, disaster recovery system and storage medium
CN112486478B (en) Event processing method and device based on field driving
CN114244758A (en) Network diagnosis method, storage medium, electronic device and system of android platform
CN113283891A (en) Information processing method and device and electronic equipment
CN111798239A (en) Parallel chain consensus method, device and storage medium
CN111643892A (en) Message processing method, device, equipment and storage medium
CN111083665B (en) Method and equipment for double-master control interactive communication
CN117422556B (en) Derivative transaction system, device and computer medium based on replication state machine
US20240187125A1 (en) Systems and methods for enhanced rate adaptation in 5g
CN110417904B (en) Push information processing method, device and system

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
CB02 Change of applicant information

Address after: Room 1101-1103, No. 433, Songhu Road, Yangpu District, Shanghai

Applicant after: Shanghai wanwansheng Environmental Protection Technology Group Co.,Ltd.

Address before: Room 1101-1103, No. 433, Songhu Road, Yangpu District, Shanghai

Applicant before: SHANGHAI YUEYI NETWORK INFORMATION TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant