Business message consumption method and device in the same network environment

By configuring multiple environments under the same network environment and processing messages in the target environment, the problem of inconsistency between online and pre-send environments is solved, the accuracy and performance of message consumption is improved, and the messages are processed in the appropriate environment.

CN115277761BActive Publication Date: 2024-12-10JD DIGITS HAIYI INFORMATION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210848009.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-19
Publication Date
2024-12-10
Estimated Expiration
2042-07-19

AI Technical Summary

Technical Problem

In the same network environment, the message consumer side may have problems such as inconsistent pre-transmission environment and online environment, resulting in inaccurate business message consumption and may cause unpredictable problems.

Method used

By configuring multiple environments for the message consumer side according to the environment configuration parameters under the same network environment, and receiving and consuming business messages in the target environment, ensuring that messages are processed in an adaptive environment, thereby realizing environmental isolation and improving the accuracy of message consumption .

Benefits of technology

It improves the accuracy and performance of business message consumption, reduces system intrusion and coupling, ensures that messages are processed in an appropriate environment, and avoids the problem of inconsistent operation results of online subscription systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115277761B_ABST
    Figure CN115277761B_ABST
Patent Text Reader

Abstract

The present application proposes a method and device for consuming business messages in the same network environment, and relates to the field of communication technology. The method includes: in the same network environment, configuring multiple environments for the message consumer according to the environment configuration parameters; receiving the business message transmitted by the message subject in the target environment of the multiple environments; in response to the business message being a message generated in the target environment, consuming the business message in the target environment. In the present application, there is no direct calling relationship between the message sending end and the message consuming end. Only through the transmission of business messages, the environmental isolation of business messages in the same network environment is achieved, so that the business messages are consumed in an adapted environment, thereby improving the accuracy of the consumed business messages. The system of the present application is not highly invasive and has a low degree of coupling, which further improves the performance of the message consumer end.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a method and device for consuming service messages in a same network environment. Background Art

[0002] In related technologies, in the same network environment, the message consumer may have multiple environments, such as the pre-release environment and the online environment. Because the pre-release environment version has been updated, there may be business inconsistencies compared to the online environment. If the business message of the online environment is consumed in the pre-release environment, or the business message of the pre-release environment is consumed in the online environment, it is easy to cause inconsistent operation results of the online subscription system, resulting in unpredictable problems. Therefore, how to achieve environmental isolation of business messages in the same network environment and improve the accuracy of consuming business messages has become one of the important research directions. Summary of the invention

[0003] The present application aims to solve one of the technical problems in the related art at least to a certain extent. To this end, one purpose of the present application is to propose a service message consumption method in a same network environment.

[0004] The second objective of the present application is to provide a service message consumption device in the same network environment.

[0005] The third objective of the present application is to provide an electronic device.

[0006] A fourth object of the present application is to provide a non-transitory computer-readable storage medium.

[0007] A fifth object of the present application is to provide a computer program product.

[0008] To achieve the above purpose, the first embodiment of the present application proposes a service message consumption method in the same network environment, including:

[0009] In the same network environment, configure multiple environments for the message consumer according to the environment configuration parameters;

[0010] Receiving business messages transmitted by message topics in target environments in multiple environments;

[0011] In response to the business message being a message generated in the target environment, the business message is consumed in the target environment.

[0012] In the embodiment of the present application, there is no direct calling relationship between the message sending end and the message consuming end. Only through the transmission of business messages, the environment isolation of business messages in the same network environment is achieved, so that business messages are consumed in an adapted environment, thereby improving the accuracy of consuming business messages. The system of the embodiment of the present application is not highly invasive and has a low coupling degree, which further improves the performance of the message consuming end.

[0013] To achieve the above-mentioned purpose, the second embodiment of the present application proposes a service message consumption device in the same network environment, including:

[0014] The configuration module is used to configure multiple environments for the message consumer according to the environment configuration parameters in the same network environment;

[0015] A receiving module, used for receiving business messages transmitted by message topics in target environments in multiple environments;

[0016] The consumption module is used to consume the business message in the target environment in response to the business message being a message generated in the target environment.

[0017] To achieve the above-mentioned purpose, the third aspect of the present application provides an electronic device, including:

[0018] at least one processor; and

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

[0020] The memory stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor so that the at least one processor can execute the service message consumption method in the same network environment provided in the embodiment of the first aspect of the present application.

[0021] To achieve the above-mentioned purpose, the fourth aspect embodiment of the present application proposes a computer-readable storage medium on which computer instructions are stored, wherein the computer instructions are used to enable a computer to execute a service message consumption method in the same network environment provided in the first aspect embodiment of the present application.

[0022] To achieve the above-mentioned purpose, the fifth aspect embodiment of the present application proposes a computer program product, including a computer program, which, when executed by a processor, implements the service message consumption method in the same network environment provided in the first aspect embodiment of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 This is a flow chart of a service message consumption method in a same network environment according to an embodiment of the present application;

[0024] Figure 2 This is a flow chart of a service message consumption method in a same network environment according to an embodiment of the present application;

[0025] Figure 3 This is a flow chart of a service message consumption method in a same network environment according to an embodiment of the present application;

[0026] Figure 4 This is a flow chart of a business message consumption method in an online environment of an embodiment of the present application;

[0027] Figure 5 This is a flow chart of a service message consumption method in a pre-release environment of an embodiment of the present application;

[0028] Figure 6 This is a structural block diagram of a service message consumption device in a same network environment according to an embodiment of the present application;

[0029] Figure 7 It is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0030] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0031] The following describes the service message consumption method and device in the same network environment of an embodiment of the present application in conjunction with the accompanying drawings.

[0032] Figure 1 Flow chart of a method for consuming service messages in a network environment according to an embodiment of the present application. Figure 1 As shown, the method comprises the following steps:

[0033] S101, in the same network environment, multiple environments are configured for the message consumer according to environment configuration parameters.

[0034] The network environment refers to a broadband, high-speed, integrated, wide-area digital telecommunications network built on the basis of the combination of electronic computers and modern communication technologies.

[0035] The message consumer end in the same network environment may be in different environments. For example, the message consumer end may be in an online environment, that is, a production environment, which refers to an environment that provides external services and is used online by real users. For example, the message consumer end may be in a pre-release environment, that is, a pre-release environment. The pre-release environment is a transition from the test environment to the online environment. The test environment may be subject to some restrictions. For example, if some processes or data are not measured, they can be verified in the pre-release environment to ensure the accuracy of the data. Among them, the test environment refers to an environment close to the online environment simulated based on data.

[0036] In the embodiment of the present application, under the same network environment, the online environment and the pre-sending environment are configured for the message consumer according to the environment configuration parameters. Optionally, the environment configuration parameters include message topic, environment parameters, data assembly logic, etc.

[0037] Optionally, the message consumption end may be a terminal device, such as a mobile phone, a computer, etc. The embodiment of the present application does not limit the form of the message consumption end.

[0038] S102, receiving a business message transmitted by a message topic in a target environment in multiple environments.

[0039] Optionally, the message sender generates a business message based on the existing business, the message subject confirms the target environment from multiple environments according to the topic class of the business message, and sends the business message to the message consumer in the target environment.

[0040] In the embodiment of the present application, the stock business refers to the business that has been launched and released, and the business that both the message sending end and the message consuming end are already running. Optionally, the message sending end can be a server, which is an electronic device that provides computing or application services to other clients in the network, such as personal computers (PCs), smart phones and other terminals, and even large devices such as train systems.

[0041] S103: In response to the business message being a message generated in the target environment, consuming the business message in the target environment.

[0042] In some implementations, it can be determined whether a business message is a message generated in a target environment based on the environment identifier carried in the business message. In response to the business message being a message generated in the target environment, the message consumer consumes the business message in the target environment indicated by the business message, that is, processes the business message in the target environment.

[0043] In an embodiment of the present application, taking the business message that area A has a power outage within time period T as an example, the message consumer processes the business message in the target environment, determines whether the current location of the message consumer is at location A, and if the current location is at location A, starts the backup power supply within time period T.

[0044] In the embodiment of the present application, under the same network environment, multiple environments are configured for the message consumer according to the environment configuration parameters, the business message transmitted by the message subject is received in the target environment of the multiple environments, and the business message is consumed in the target environment. In the embodiment of the present application, there is no direct calling relationship between the message sending end and the message consumer end. Only through the transmission of business messages, the environmental isolation of business messages in the same network environment is achieved, so that the business messages are consumed in an adapted environment, thereby improving the accuracy of the consumed business messages. The system of the embodiment of the present application is not highly invasive and has a low degree of coupling, which further improves the performance of the message consumer end.

[0045] Figure 2 Flow chart of a method for consuming service messages in a network environment according to an embodiment of the present application. Figure 2 As shown, the method comprises the following steps:

[0046] S201, in the same network environment, multiple environments are configured for the message consumer according to environment configuration parameters.

[0047] S202, receiving a business message transmitted by a message topic in a target environment in multiple environments.

[0048] For the introduction of step S201 and step S202, reference may be made to the relevant contents in the above embodiments, which will not be described again here.

[0049] S203, obtaining message verification parameters in the target environment.

[0050] In some implementations, in order to improve the accuracy of consumption of business messages, the business messages may be further verified according to message verification parameters in the target environment.

[0051] Optionally, the message verification parameter may include a content tag of the stored business message. In some implementations, when there are many stored businesses, a backlog of messages may occur, and verifying the business message based on the content tag may affect the efficiency of consuming the business message. Therefore, in order to balance the efficiency and accuracy of consuming business messages, in an embodiment of the present application, the message verification parameter may include a preset number threshold of business messages to be processed and a content tag of the business message.

[0052] S204: Determine whether the business message meets preset conditions based on the message verification parameters.

[0053] In some implementations, the number of pending service messages in any environment of the multiple environments is obtained. In response to the number of pending service messages being greater than or equal to a preset threshold in the message verification parameter, it is determined that the service message meets the preset condition.

[0054] In some implementations, in response to the number of pending business messages being less than a preset threshold in the message verification parameter, a content tag in the message verification parameter is obtained. In response to the business message containing a content tag, it is determined that the content tag hits the business message and the business message meets the preset condition.

[0055] Optionally, the content tag may be a service identifier, a data identifier, or a user identifier. In the embodiment of the present application, the service message may be identified to confirm whether the service message contains a content tag.

[0056] S205 , in response to the business message satisfying a preset condition, consuming the business message in a target environment.

[0057] For the introduction of consuming business messages in the target environment, please refer to the relevant content in the above embodiment, which will not be repeated here.

[0058] In the embodiment of the present application, the message verification parameters in the target environment are obtained, and it is determined whether the business message meets the preset conditions based on the message verification parameters. In response to the business message meeting the preset conditions, the business message is consumed in the target environment. In the embodiment of the present application, there is no direct calling relationship between the message sending end and the message consuming end. Only through the transmission of business messages, the environmental isolation of business messages in the same network environment is achieved, so that business messages are consumed in an adapted environment, and the efficiency and accuracy of consuming business messages are improved. The system of the embodiment of the present application is not highly invasive and has a low degree of coupling, which further improves the performance of the message consumer end.

[0059] In some implementations, in response to the business message not containing a content tag, the first environment identifier in the business message is updated to the second environment identifier, an updated business message is generated, and the updated business message is sent to the environment identified by the second environment identifier. The second environment identifier is used to indicate that the updated business message is consumed in the environment identified by the second environment identifier. The embodiment of the present application is described by taking the target environment as an online environment as an example. If the business message does not hit the content tag in the online environment, the online environment identifier in the business message is updated to the pre-sent environment identifier, an updated business message is generated, and the updated business message is resent to the pre-sent environment for consumption.

[0060] Figure 3 Flow chart of a method for consuming service messages in a network environment according to an embodiment of the present application. Figure 3 As shown, the method comprises the following steps:

[0061] S301, in the same network environment, multiple environments are configured for the message consumer according to environment configuration parameters.

[0062] S302, receiving a business message transmitted by a message topic in a target environment in multiple environments.

[0063] For the introduction of step S301 and step S302, reference may be made to the relevant contents in the above embodiments, which will not be described again here.

[0064] S303: Extract a first environment identifier from the service message.

[0065] Optionally, taking the first environment identifier as the environment identifier of an online environment as an example for description, the first environment identifier may be prd.

[0066] Optionally, taking the first environment identifier as the environment identifier of the pre-release environment as an example for description, the first environment identifier may be pre.

[0067] S304: In response to the first environment identifier indicating a target environment among the multiple environments, determine a message generated by the business message in the target environment.

[0068] In some implementations, if the first environment identifier is prd and the current target environment is an online environment, then the business message is determined to be a message generated in the target environment.

[0069] In some implementations, if the first environment identifier is pre and the current target environment is a pre-release environment, then the business message is determined to be a message generated in the target environment.

[0070] S305: Consume the business message in the target environment.

[0071] For the introduction of step S305, please refer to the relevant content in the above embodiment, which will not be repeated here.

[0072] In the embodiment of the present application, a first environment identifier is extracted from a business message, and in response to the first environment identifier indicating a target environment among multiple environments, the message generated by the business message in the target environment is determined, and the business message is consumed in the target environment. In the embodiment of the present application, there is no direct calling relationship between the message sending end and the message consuming end. Only through the transmission of business messages, the environmental isolation of business messages in the same network environment is achieved, so that business messages are consumed in an adapted environment, and the accuracy of consumed business messages is improved. The system of the embodiment of the present application is not highly invasive and has a low degree of coupling, which further improves the performance of the message consumer end.

[0073] Figure 4 is a flow chart of a business message consumption method in an online environment of an embodiment of the present application, such as Figure 4As shown, the embodiment of the present application is explained by taking the online environment as an example. The message sending end generates a business message based on the existing business. The message subject sends the business message to the message consumption end in the online environment according to the topic class where the business message is located. The message consumption end queries the dynamically configured message verification parameters and obtains the verification switch. If the verification switch is turned on, it determines whether the content tag hits the business message. If the content tag hits the business message, the business message is consumed in the online environment. If the content tag does not hit the business message, the environment identifier carried by the business message in the online environment is updated to the identifier of the pre-release environment, an updated business message is generated, and the updated business message is sent to the pre-release environment. In addition, if the pending business messages in the online environment exceed the preset number threshold, indicating that the current online environment has a message backlog, the verification switch can be switched at this time to improve the message processing efficiency. Optionally, when the online environment receives a message backlog reminder from other environments, the verification switch can also be switched to improve the message processing efficiency.

[0074] Figure 5 Flow chart of a method for consuming business messages in a pre-release environment according to an embodiment of the present application. Figure 5 As shown, the embodiment of the present application is explained by taking the pre-release environment as an example. The message sending end generates a business message according to the existing business. The message subject sends the business message to the message consumption end in the pre-release environment according to the topic class where the business message is located. The message consumption end queries the dynamically configured verification switch. If the verification switch is turned on, it determines whether the content tag hits the business message. If the content tag hits the business message, the business message is consumed in the pre-release environment. If the content tag does not hit the business message, the environment identifier carried by the business message is identified. If the business message carries the environment identifier of the pre-release environment, it is determined that the business message is a pre-release message, and the business message is consumed in the pre-release environment. Otherwise, the environment identifier carried by the business message is updated to the environment identifier of the online environment and sent to the online environment for consumption. In addition, if the pending business messages in the pre-release environment exceed the preset number threshold, it indicates that there is a message backlog in the current pre-release environment. At this time, the verification switch can be switched to improve the message processing efficiency. Optionally, when the pre-release environment receives a message backlog reminder from other environments, the verification switch can also be switched to improve the message processing efficiency.

[0075] like Figure 6 As shown, based on the same application concept, the embodiment of the present application also provides a service message consumption device 600 in the same network environment, including:

[0076] Configuration module 610, used to configure multiple environments for the message consumer according to environment configuration parameters in the same network environment;

[0077] A receiving module 620, configured to receive a business message transmitted by a message subject in a target environment of multiple environments;

[0078] The consumption module 630 is used to consume the business message in the target environment in response to the business message being a message generated in the target environment.

[0079] In some implementations, the consumption module 630 is further configured to:

[0080] Get the message verification parameters in the target environment;

[0081] Determine whether the business message meets the preset conditions based on the message verification parameters;

[0082] In response to the business message satisfying a preset condition, the business message is consumed in a target environment.

[0083] In some implementations, the consumption module 630 is further configured to:

[0084] Get the number of pending business messages in any environment among multiple environments;

[0085] In response to the number of pending business messages being greater than or equal to a preset number threshold in the message verification parameter, it is determined that the business message meets a preset condition.

[0086] In some implementations, the consumption module 630 is further configured to:

[0087] In response to the number of pending service messages being less than a preset number threshold, obtaining a content tag in a message verification parameter;

[0088] In response to the business message containing a content tag, it is determined that the business message meets a preset condition.

[0089] In some implementations, the consumption module 630 is further configured to:

[0090] In response to the service message not containing a content tag, the first environment identifier in the service message is updated to a second environment identifier, and an updated service message is generated. The second environment identifier is used to indicate that the updated service message is consumed in the environment identified by the second environment identifier.

[0091] In some implementations, the consumption module 630 is further configured to:

[0092] The update service message is sent to the environment identified by the second environment identifier.

[0093] In some implementations, the consumption module 630 is further configured to:

[0094] Extracting a first environment identifier from a service message;

[0095] In response to the first environment identifier indicating a target environment among the multiple environments, a service message is determined to be a message generated in the target environment.

[0096] In the embodiment of the present application, there is no direct calling relationship between the message sending end and the message consuming end. Only through the transmission of business messages, the environment isolation of business messages in the same network environment is achieved, so that business messages are consumed in an adapted environment, thereby improving the accuracy of consuming business messages. The system of the embodiment of the present application is not highly invasive and has a low coupling degree, which further improves the performance of the message consuming end.

[0097] Based on the same application concept, an embodiment of the present application also provides an electronic device.

[0098] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 7 As shown, the electronic device 700 includes a memory 710, a processor 720, and a computer program product stored in the memory 710 and executable on the processor 720. When the processor executes the computer program, the aforementioned service message consumption method in the same network environment is implemented.

[0099] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0100] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0101] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0102] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0103] Based on the same application concept, an embodiment of the present application further provides a computer-readable storage medium on which computer instructions are stored, wherein the computer instructions are used to enable a computer to execute the service message consumption method in the same network environment in the above embodiment.

[0104] Based on the same application concept, an embodiment of the present application further provides a computer program product, including a computer program, which, when executed by a processor, implements the service message consumption method in the same network environment in the above embodiment.

[0105] It should be noted that in the claims, any reference signs placed between brackets shall not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claims. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The present application may be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third etc. does not indicate any order. These words may be interpreted as names.

[0106] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0107] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0108] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A method for consuming business messages in the same network environment, It is characterized in that include: In the same network environment, configure multiple environments for the message consumer according to the environment configuration parameters; receiving a business message transmitted by a message subject in a target environment of the plurality of environments; In response to the service message being a message generated in the target environment, consuming the service message in the target environment; The consuming of the service message in the target environment further includes: Acquire message verification parameters in the target environment, where the message verification parameters include a preset number threshold of service messages to be processed and a content tag of the service message, where the content tag is a service identifier or a user identifier; Determining whether the service message meets a preset condition based on the message verification parameter; In response to the service message satisfying a preset condition, consuming the service message in the target environment; The determining whether the service message meets a preset condition based on the message verification parameter includes: Get the number of pending business messages in any environment among multiple environments; In response to the number of the to-be-processed service messages being greater than or equal to a preset number threshold in the message verification parameter, determining that the service message satisfies the preset condition; In response to the number of the to-be-processed service messages being less than the preset number threshold, obtaining a content tag in the message verification parameter; In response to the service message containing the content tag, determining that the service message meets the preset condition; The method further comprises: In response to the service message not containing the content tag, updating the first environment identifier in the service message to a second environment identifier, and generating an updated service message, wherein the second environment identifier is used to indicate that the updated service message is consumed in the environment identified by the second environment identifier; The update service message is sent to the environment identified by the second environment identifier.

2. The method according to claim 1, It is characterized in that The process of determining that the service message is a message generated in the target environment includes: Extracting a first environment identifier from the service message; In response to the first environment identifier indicating the target environment among the multiple environments, determining that the service message is a message generated in the target environment.

3. A service message consumption device in the same network environment, It is characterized in that include: The configuration module is used to configure multiple environments for the message consumer according to the environment configuration parameters in the same network environment; A receiving module, used for receiving a business message transmitted by a message subject in a target environment of the multiple environments; a consumption module, configured to consume the service message in the target environment in response to the service message being a message generated in the target environment; The consumption module is also used for: Acquire message verification parameters in the target environment, where the message verification parameters include a preset number threshold of service messages to be processed and a content tag of the service message, where the content tag is a service identifier or a user identifier; Determining whether the service message meets a preset condition based on the message verification parameter; In response to the service message satisfying a preset condition, consuming the service message in the target environment; Get the number of pending business messages in any environment among multiple environments; In response to the number of the to-be-processed service messages being greater than or equal to a preset number threshold in the message verification parameter, determining that the service message satisfies the preset condition; In response to the number of the to-be-processed service messages being less than the preset number threshold, obtaining a content tag in the message verification parameter; In response to the service message containing the content tag, determining that the service message meets the preset condition; The consumption module is also used for: In response to the service message not containing the content tag, updating the first environment identifier in the service message to a second environment identifier, and generating an updated service message, wherein the second environment identifier is used to indicate that the updated service message is consumed in the environment identified by the second environment identifier; The update service message is sent to the environment identified by the second environment identifier.

4. An electronic device, include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 2.

5. A non-transitory computer-readable storage medium storing computer instructions, in, The computer instructions are used to cause the computer to execute the method according to any one of claims 1-2.

6. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 2.