Information Processing Method, Apparatus, and Electronic Device

By receiving and processing environment carrier information, determining target request information and sending it to the equipment in the matching environment, the problems of complex microservice communication and waste of resources are solved, and efficient sharing and rapid processing of the equipment are achieved.

CN114564311BActive Publication Date: 2025-07-22BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210199330.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-02
Publication Date
2025-07-22
Estimated Expiration
2042-03-02

AI Technical Summary

Technical Problem

In the microservice era, complex communication between microservices and frequent updates of nodes lead to waste of resources.

Method used

By receiving environmental carrier information and request information, the target request information is determined and sent to the target device for processing, ensuring that the environment in which the target device operates matches the target environment, and the device sharing in different information processing channels is realized.

Benefits of technology

Reduce resource waste and shorten the establishment time of information processing channels.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114564311B_ABST
    Figure CN114564311B_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure disclose an information processing method, apparatus, and electronic device. The method includes: receiving information to be processed from a first node, where the information to be processed includes environmental carrier information and a request information; the environmental carrier information carries environmental information for indicating a target environment required for processing the request information; determining target request information to be transmitted to a second node according to the environmental information carried by the environmental carrier information and the request information; sending the target request information to a target device of the second node for processing; where each node corresponds to at least one device; and the environment in which the target device operates matches the target environment. It realizes the sharing of devices operating in the same environment in different information processing channels. On the one hand, it can reduce resource waste, and on the other hand, it can shorten the time for establishing an information processing channel.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of Internet technologies, and in particular, to an information processing method, apparatus, and electronic device. Background Art

[0002] Internet information services have entered the microservices era. In the microservices era, an application with a monolithic architecture is divided into independent programs, i.e., microservices, according to business. Each microservice runs in its own process and uses lightweight mechanisms for communication.

[0003] The inventors found that in the microservices era, the communication between microservices has become very complex. If a single microservice has parallel development requirements and frequently updates nodes, it will cause waste of resources. Summary of the Invention

[0004] This part of the disclosure is provided to introduce concepts in a brief form, which will be described in detail in the following detailed implementation part. This part of the disclosure is not intended to identify the key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.

[0005] Embodiments of the present disclosure provide an information processing method, apparatus, and electronic device.

[0006] In a first aspect, embodiments of the present disclosure provide an information processing method, which includes: receiving information to be processed from a first node, where the information to be processed includes environment carrier information and request information; the environment carrier information carries environment information for indicating a target environment required for processing the request information; determining target request information to be transmitted to a second node according to the environment information carried by the environment carrier information and the request information; and sending the target request information to a target device of the second node for processing; where each node corresponds to at least one device; and the environment in which the target device runs matches the target environment.

[0007] In a second aspect, embodiments of the present disclosure provide an information processing apparatus, including: a receiving unit, configured to receive information to be processed from a first node, where the information to be processed includes environment carrier information and request information; the environment carrier information carries environment information for indicating a target environment required for processing the request information; a determining unit, configured to determine target request information to be transmitted to a second node according to the environment information carried by the environment carrier information and the request information; and a sending unit, configured to send the target request information to a target device of the second node for processing; where each node corresponds to at least one device; and the environment in which the target device runs matches the target environment.

[0008] In a third aspect, embodiments of the present disclosure provide an electronic device, including: one or more processors; a storage device configured to store one or more programs, which, when executed by the one or more processors, cause the one or more processors to implement the information processing method as described in the first aspect.

[0009] In a fourth aspect, embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, and when the program is executed by a processor, the steps of the information processing method as described in the first aspect are implemented.

[0010] The information processing method, apparatus, and electronic device provided by the embodiments of the present disclosure receive information to be processed from a first node, where the information to be processed includes environment carrier information and a request information; the environment carrier information carries environment information for indicating a target environment required for processing the request information; according to the environment information carried by the environment carrier information and the request information, determine target request information to be transmitted to a second node; send the target request information to a target device of the second node for processing; where each node corresponds to at least one device; the environment in which the target device operates matches the target environment, thereby integrating the environment information into the target request information sent to the next node, and determining the target device for processing the target request information from the target request information, achieving sharing of devices operating in the same environment in different information processing channels. On the one hand, it can reduce resource waste, and on the other hand, it can shorten the time for establishing an information processing channel. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In combination with the accompanying drawings and with reference to the following specific embodiments, the above and other features, advantages, and aspects of the embodiments of the present disclosure will become more apparent. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic, and the original and elements are not necessarily drawn to scale.

[0012] Figure 1 is a schematic diagram of an updated information processing link in the related art;

[0013] Figure 2 is a flowchart of an embodiment of the information processing method according to the present disclosure;

[0014] Figure 3 is a schematic diagram of an updated information processing link corresponding to the information processing method according to the present disclosure;

[0015] Figure 4 is a schematic system structure diagram of the information processing method according to the present disclosure;

[0016] Figure 5 is a schematic timing diagram of the information processing method according to the present disclosure;

[0017] Figure 6 is a schematic structural diagram of an embodiment of an information processing apparatus according to the present disclosure;

[0018] Figure 7 is an exemplary system architecture to which an information processing method or an information processing apparatus according to an embodiment of the present disclosure can be applied;

[0019] Figure 8 is a schematic diagram of the basic structure of an electronic device provided according to an embodiment of the present disclosure. Detailed implementation manners

[0020] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although some embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Instead, these embodiments are provided to more thoroughly and completely understand the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for exemplary purposes only and are not used to limit the protection scope of the present disclosure.

[0021] It should be understood that the various steps recited in the method embodiments of the present disclosure can be executed in a different order and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this regard.

[0022] As used herein, the term "including" and its variations are open-ended, that is, "including but not limited to". The term "based on" is "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0023] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependent relationships.

[0024] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive. Those skilled in the art should understand that unless otherwise clearly specified in the context, it should be understood as "one or more".

[0025] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only for illustrative purposes and are not used to limit the scope of these messages or information.

[0026] In a microservices architecture, multiple microservices jointly complete a function that was originally accomplished by a single monolithic application. An individual microservice can be improved, for example, by improving the operating environment of the individual microservice. The operating environment can include a hardware environment and a software environment. The hardware environment includes: a processor, memory, etc. The software environment includes: an operating system, service code, etc.

[0027] Please refer to Figure 1 , if multiple microservices are required to cooperate to complete a function, different microservice examples are as follows: A, B, C, D, E, and F. Microservices A, B, C, D, E, and F form an information processing channel for completing a preset function. If the branch microservice of microservice A is created as A1; the branch microservice of microservice E is created as E1; microservices B, C, D, and F remain unchanged. The branch microservices A1 and E1 can correspond to the same operating environment. It is necessary to add an information processing channel A1 -> B -> C, D -> E1 -> F. In this case, since the added information processing channel includes B, C, D, and F without branch microservices, it causes a waste of resources.

[0028] To improve the above problems, the present disclosure provides the following solution.

[0029] Please refer to Figure 2 , which shows the flow of an embodiment of the information processing method according to the present disclosure. As Figure 2 shown, the information processing method includes the following steps:

[0030] Step 201, receive the information to be processed from the first node, where the information to be processed includes environment carrier information and request information; the environment carrier information carries environment information for indicating a target environment required to process the request information.

[0031] The execution subject of the information processing method provided in this embodiment can be a gateway between two nodes. The first node and the second node in this embodiment are any two adjacent nodes on the processing link (i.e., information processing channel) of the information to be processed, and the information to be processed processing link includes at least two nodes.

[0032] The first node and the second node can be any two adjacent nodes before and after on the information processing channel for processing the information to be processed. Each node can correspond to multiple devices. The devices here can be physical devices or virtual devices.

[0033] In some embodiments, the above environment carrier information can be pan-domain name information.

[0034] The above pan-domain name information can include domain names with four or more levels, such as four-level pan-domain names, five-level pan-domain names, etc.

[0035] It is possible to implement a unified generic domain name application as “*.cc.bb.aa”. Here, the “*” is a wildcard, representing any sub - domain controlled by the third - level domain name “cc”. The “cc” in the above - mentioned unified generic domain name is used to characterize the service running environment corresponding to the sub - domain it controls.

[0036] As a schematic illustration, the fourth - level generic domain name here can be temp - www.cc.bb.aa. Here, the “aa” is the first - level domain name, which can be, for example, “cn”, “com” or “net”, etc. Here, the “bb” is the second - level domain name, which is a sub - domain controlled by the first - level domain name. Here, the “cc” is the third - level domain name, which is a sub - domain controlled by the second - level domain name. The base domain name can be www.cc.bb.aa. The above - mentioned fourth - level generic domain name “temp - www.cc.bb.aa” can include the environment information “temp” used to indicate the target environment required for processing request information.

[0037] The fourth - level domain name here can be an environment coloring identifier. For example, temp in the above example is an environment coloring identifier. Each environment coloring identifier can correspond to a specific environment. The correspondence between each coloring identifier and the environment corresponding to the coloring identifier can be stored in a preset database.

[0038] As an implementation method, the above - mentioned generic domain name information includes a first identifier used to indicate that the domain name is an environment generic domain name and a coloring identifier used to indicate the target environment.

[0039] In the above - mentioned generic domain name information “temp - www.cc.bb.aa”, “cc” can be the first identifier, and temp can be the coloring identifier. It can be judged according to the first identifier

[0040] The target environment indicated by the environment information here can include the running environment of a service (such as a microservice), including but not limited to: the basic environment, the runtime environment, the container environment, the service's own environment, etc. The basic environment includes but not limited to: the version of the operating system running, the time zone, the language, the source of the application installation package. The runtime environment includes but not limited to: the runtime environment of the service code, for example, the version of the code language corresponding to the code implementing the service. As a schematic illustration, for example, the version of the JDK for the runtime environment of Java code. The container environment, the parameters of the container in which the service code runs. The service's own environment, the version of the service code, etc.

[0041] The above - mentioned environment information can include the base environment information and the branch environment information that improves the base environment information.

[0042] The base environment can be a stable version that has been automatically deployed and is on the line. There is only one base environment for a microservice.

[0043] A branch environment is a new environment generated based on a baseline environment. In some application scenarios, a branch environment can be used for functional testing or cross-service joint debugging. A microservice can have multiple branch environments (each branch environment can correspond to a microservice branch).

[0044] In some application scenarios, the above first node can be an entry node. The above entry node can be, for example, a user terminal that receives user operations. The above first node can generate information to be processed according to the operations initiated by the above user.

[0045] As a schematic illustration, a pan-domain name can correspond to a link. A user can perform a trigger operation on the link displayed on the user terminal page. After receiving the above trigger operation, the above user terminal can generate information to be processed according to the above operation. Among them, the environment carrier information can be, for example, the pan-domain name corresponding to the above link. The above request information can indicate to obtain the information content corresponding to the above link.

[0046] Step 202: Determine the target request information to be transmitted to the second node according to the environment information carried by the environment carrier information and the request information.

[0047] Specifically, the above step 202 can include the following sub-steps:

[0048] First, determine whether the environment indicated by the environment carrier information is a preset baseline environment;

[0049] Second, if it is determined that the environment indicated by the environment information is a preset baseline environment, determine the request information as the target request information;

[0050] Third, if it is determined that the environment indicated by the environment information is a non-preset baseline environment, add the environment information to the request information to obtain the target request information.

[0051] The preset baseline environment here can be the standard environment required to complete the microservice.

[0052] The following takes the environment carrier information as the pan-domain name information as an example for illustration.

[0053] The pan-domain name indicated by the above pan-domain name information can include a coloring identifier. Different coloring identifiers correspond to different environments. That is, the above coloring identifier is the environment information. It is possible to judge whether the environment carried by the above environment carrier information is a baseline environment according to the above coloring identifier. For example, if the coloring identifier corresponding to the baseline environment is DD, and if the coloring identifier included in the pan-domain name in the above pan-domain name information is "DD", it is determined that the environment information carried by the pan-domain name information is the information of the baseline environment. When the environment indicated by the environment information carried by the environment carrier information is a baseline environment, the request information in the information to be processed can be used as the target information.

[0054] The environment indicated by the environment information carried in the above-mentioned pan-domain name information is a branch environment (i.e., a non-reference environment). Specifically, according to the coloring identifier in the above-mentioned environment carrier information, it can be determined whether the environment information indicated by the environment carrier information is a branch environment. If the environment information indicated by the above-mentioned environment carrier information is the information of a branch environment, the request information sent by the first node is updated, and the corresponding coloring identifier of the branch environment is added to the above-mentioned request information.

[0055] If the coloring identifier included in the pan-domain name indicated by the above-mentioned environment carrier information is "D1", it is determined that the environment indicated by the environment carrier information is a non-reference environment. The request information in the information to be processed can be changed, that is, the above-mentioned coloring identifier "D1" is added to the original request information to obtain the target request information.

[0056] Optionally, if it is determined that the environment indicated by the environment information is a non-preset reference environment, adding the environment information to the request information to obtain the target request information includes:

[0057] If it is determined that the environment indicated by the environment information is a non-preset reference environment, the environment information is added to the header of the request information to obtain the target request information.

[0058] In these alternative implementation manners, in order to enable subsequent nodes to quickly identify the information of the non-preset reference environment in the target request information, the information of the non-preset reference environment carried in the environment carrier information can be added at the header of the original request information.

[0059] Still taking the environment carrier information as the pan-domain name information as an example for illustration. If it is determined that the coloring identifier in the pan-domain name indicated by the environment carrier information corresponds to a non-preset reference environment, the above-mentioned coloring identifier is added to the header of the request information, thereby obtaining the target request information.

[0060] In practice, when adding the environment information to the above-mentioned request information, an environment information identifier can be added near the environment information in the request information.

[0061] Step 203, sending the target request information to the target device of the second node for processing; where each node corresponds to at least one device; the environment in which the target device runs matches the target environment.

[0062] Each node can correspond to multiple devices. The devices here can be physical devices or virtual devices. If the device is a virtual device, multiple virtual devices can be set in the same physical device or run in different physical devices.

[0063] Specifically, the target device located at the second node is determined according to the environment information in the above-mentioned target request information.

[0064] If the target request information is the said request information, determine the device running the benchmark environment as the target device.

[0065] Specifically, it can be determined whether the target request information is the original request information according to whether the target request information includes an environment information identifier for indicating the said environment information.

[0066] If the target request information is the request information obtained by adding environment information, select, from the second node, the device running the environment indicated by the environment information as the target device.

[0067] Furthermore, the sending the target request information to the target device of the second node for processing includes: if there is no device in the second node running the environment indicated by the environment information, determine the device running the benchmark environment as the target device.

[0068] If the target request information does not contain environment information (such as an environment information identifier) for indicating the environment, the above target request information can be sent to the device running the benchmark environment in the second node.

[0069] If the target request information contains an environment information identifier for indicating the environment, the target device running the target environment can be determined in the second node according to the target environment corresponding to the environment information identifier for indicating the environment, and the above target request information is sent to the target device running the target environment in the second node.

[0070] It can be understood that each device in the second node can be pre-configured with a corresponding environment.

[0071] If the second node does not include a device running the above target environment, determine the device running the benchmark environment as the target device, and send the above target request information to the target device running the benchmark environment.

[0072] As an implementation, the environment configuration center can determine the environment corresponding to each device. Each device can pull the environment to be configured from the environment configuration center and create an environment instance.

[0073] Please refer to Figure 3 , which shows a schematic diagram of an application scenario of the information processing method. As Figure 3 shown, on the basis of microservice A, a microservice branch A1 of microservice A is formed; on the basis of microservice E, a microservice branch E1 of microservice E is formed. Keep B, C, D, E, and F in the link. A1 and E1 correspond to the same branch environment generated from the benchmark environment. Microservices A, B, C, D, and E correspond to the benchmark environment.

[0074] The microservice branch A1 and the microservice B can respectively correspond to the first node and the second node; the microservice B and the microservice C can respectively correspond to the first node and the second node; the microservice C and the microservice D can respectively correspond to the first node and the second node; the microservice D and the microservice branch E1 respectively correspond to the first node and the second node; the microservice branch E1 and the microservice F respectively correspond to the first node and the second node. It can be understood that a gateway can be set in any two pairs of the first node and the second node.

[0075] For the information processing from A1 to B, the information to be processed generated by the first node A1 includes environment carrier information and the first request information. Here, the environment carrier information can include the environment information corresponding to the microservice branch A1 (such as the coloring identifier carried by the pan-domain name information). The gateway can modify the above request information according to the above environment information, add the above environment information to the request information, and obtain the first target request information. For example, add the above coloring identifier to the header of the request information.

[0076] The gateway determines the target device for processing the request information according to the target request information. When there is no device on the second node that matches the environment corresponding to the coloring identifier, the above target request information can be sent to the device running the benchmark environment. The device running the benchmark environment processes the target request information. That is, the gateway sends the target request information to the device running the benchmark environment.

[0077] For the information processing from B to C, the information to be processed generated by the first node B includes environment carrier information and the second request information transmitted by the gateway from A1 to B (that is, the first target request information generated during the process from A1 to B). The above environment carrier information includes the benchmark environment information. The gateway between B and C does not modify the second request information, but directly uses the second request information as the second target request information, determines the device for processing the second target request information as the device running the benchmark environment, and transmits the second target request information to the device running the benchmark environment on the second node C.

[0078] For the information processing from C to D, the information processing process from B to C can be referred to, which will not be elaborated here.

[0079] For the information processing from D to E1, the information to be processed generated by the first node D includes environmental carrier information and the fourth request information (i.e., the third target information generated by C to D) transmitted by the gateway from C to D. The above environmental carrier information includes reference environmental information. The gateway between D and E1 does not modify the fourth request information, but directly determines the device for processing the fourth request information based on the fourth request information. Since the fourth request information includes the environmental information corresponding to the microservice branch A1, it can be determined whether there is a device running the microservice branch E1 on the second node. Since there is a device running the microservice branch E1 on the second node, the above gateway uses the device running the microservice branch E1 as the target device and sends the above target request information to the target device running the microservice branch E1.

[0080] For the information processing from E1 to F, the information processing process from A1 to B can be referred to, which will not be elaborated here.

[0081] It can be seen that the information processing channel composed of A1->B->C->D->E1->F shares the microservices B, C, D, and F in the information processing channel.

[0082] The information processing method provided in this embodiment receives the information to be processed from the first node, where the information to be processed includes environmental carrier information and request information; the environmental carrier information carries environmental information for indicating the target environment required for processing the request information; determines the target request information transmitted to the second node according to the environmental information carried by the environmental carrier information and the request information; sends the target request information to the target device of the second node for processing; where each node corresponds to at least one device; the environment in which the target device runs matches the target environment, realizing the sharing of devices with the same running environment in different information processing channels. In the related art, for a new information processing channel, as long as one node has a different running environment from that of the original information processing channel, devices matching each node of the new information processing channel are set. Compared with the above solutions in the related art, the solution provided in this embodiment can reduce resource waste.

[0083] In some optional implementation manners, step 103 above includes: determining the target device located at the second node based on load balancing and the target request information.

[0084] In these optional implementation manners, by determining the target device of the second node based on load balancing, the devices of the second node will not have the phenomenon of being unable to operate due to unbalanced load.

[0085] In some optional implementation manners of this embodiment, before receiving the information to be processed from the first node, the method further includes:

[0086] The environment configuration server receives an environment update instruction for the service corresponding to the first node and / or the second node, and the environment update instruction is used to indicate generating a branch environment based on a reference environment;

[0087] The environment configuration server determines an environment identifier corresponding to the branch environment;

[0088] The environment configuration server associates and stores the branch environment with the environment identifier in a preset database.

[0089] In some alternative implementation manners, the above-mentioned environment configuration server may set the environments of each node on the information processing link.

[0090] The environment configuration server may receive an environment setting instruction from a development user. When the development user creates a branch environment for the reference environment of one or several services on the information processing link, the above-mentioned environment configuration server may assign a corresponding environment identifier to the branch environment. And associate and store the branch environment with the corresponding environment identifier in a preset database.

[0091] The above-mentioned preset database may also store data or program packages required for setting the branch environment.

[0092] Further, before receiving the information to be processed from the first node, the above-mentioned information processing method further includes: receiving an instruction to configure a branch environment on the first node and / or the second node from the environment configuration server, determining the device on which the branch environment runs on the first node and / or the second node; pulling the configuration data required to create the branch environment from the preset database to the device.

[0093] The above-mentioned environment configuration server can be used to send environment configuration information to each gateway at preset time intervals. The environment configuration information may include information about the environments that need to be configured on each node. The information about the environments that need to be configured includes the identifier of the reference environment and / or the identifier of the branch environment. Each gateway, after receiving the information about the environment that needs to be configured corresponding to the associated node, can detect whether the environment running in each device corresponding to the associated node associated with the grid conforms to the environment that needs to be configured. If it is detected that the above-mentioned environment that needs to be configured includes a branch environment that is not currently running in the device of the node, a device for running the branch environment can be assigned to the branch environment. And pull the configuration data required to create the above-mentioned branch environment from the preset database to the above-mentioned device, so that the above-mentioned device creates the above-mentioned branch environment. In these alternative implementation manners, through the mutual cooperation of the environment configuration server and the gateways between nodes, a branch environment can be established in advance in the devices corresponding to each node, so as to prepare for service joint debugging or testing, and the operations required for users to manually configure the environment can be reduced.

[0094] Please combine with Figure 4 and Figure 5 , Figure 4 to present the system structure diagram involved in this information processing method. Figure 5 , which shows the principle flowchart involved in this information processing method. As Figure 4 shown, the user layer can include development users or end users. Development users can set the environment of each node in the information processing link through the application layer. Each node can correspond to a microservice. The application layer can include an environment configuration server. Development users can send environment setting instructions to the environment configuration server. The environment configuration server can determine the devices for setting the environment corresponding to the instruction at each node according to the above instructions. Each node can include multiple devices. The above deployment service application, such as the OpenApi of TCE, can be deployed in the environment. The above deployment service application can pull up the environment corresponding to the instruction in the database and perform service reconstruction. Batch create environments with identifiers, including automatic cloning of service configurations, cluster configurations, cold configuration service continuous integration (CI) and continuous delivery (CD). In addition, the deployment service application can also add the created environment to the resource management server. Development users can modify the routing configuration on the information processing link.

[0095] Development users can perform joint debugging on the request information sent to the link that partially uses the microservice branch, or end users or development users can send request information to the already constructed information processing link. The above development users or end users can initiate tasks through the electronic devices they use, and the above electronic devices can be regarded as task initiators. In addition, for any two adjacent nodes before and after on the information processing link. The previous node can be the task initiator of the next node. The above application layer includes a task distribution module. The task distribution module includes gateways and load balancers set between any two node pairs. For any two adjacent nodes before and after, the load balancer between the two adjacent nodes receives the above message to be processed. The load balancer can send the above message to be processed to the gateway, and the load balancer records the load information of each device. The gateway can record or remotely call the environment information of each device running on the next node. The gateway can generate target request information according to the environment carrier information of the message to be processed. And determine at least one device running the above environment according to the environment information included in the target request information. And send the information of the above at least one device to the load balancer. The load balancer determines the target device according to the load information of each device in the above at least one device. And send the information of the target device to the gateway.

[0096] The gateway is responsible for sending the above-mentioned target request information to the target device located at the second node, so that the target device processes the target request information. The target device can process the target request information and send feedback information to the gateway. The gateway sends the feedback information to the load balancer so that the load balancer records the current tasks of the target device. The load balancer sends the above-mentioned feedback information to the task initiator. It should be noted that each device in the above at least one device can be a physical device running the above environment, or a virtual device running the above environment.

[0097] Further referring to Figure 6 , as an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of an information processing device. This device embodiment corresponds to Figure 1 the method embodiment shown, and this device can be specifically applied to various electronic devices.

[0098] As Figure 6 shown, the information processing device of this embodiment includes: a receiving unit 601, a determining unit 602, and a sending unit 603. Among them, the receiving unit 601 is used to receive the information to be processed from the first node. The information to be processed includes environment carrier information and request information; the environment carrier information includes environment information for indicating the target environment required to process the request information; the determining unit 602 is used to determine the target request information to be transmitted to the second node according to the environment information carried by the environment carrier information and the request information; the sending unit 603 is used to send the target request information to the target device of the second node for processing; where each node corresponds to at least one device; the environment in which the target device runs matches the target environment.

[0099] In this embodiment, the specific processing of the receiving unit 601, the determining unit 602, and the sending unit 603 of the information processing device and the technical effects brought by them can be respectively referred to Figure 2 the relevant descriptions of steps 201, step 202, and step 203 in the corresponding embodiments, and will not be elaborated here.

[0100] In some alternative implementation manners, the determining unit 602 is further configured to: determine whether the environment indicated by the environment carrier information is a preset reference environment; if it is determined that the environment indicated by the environment information is a preset reference environment, determine the request information as the target request information; if it is determined that the environment indicated by the environment information is a non-preset reference environment, add the environment information to the request information to obtain the target request information.

[0101] In some alternative implementations, the determination unit 602 is further configured to: if it is determined that the environment indicated by the environment information is a non-preset reference environment, add the environment information to the header of the request information to obtain a target request information.

[0102] In some alternative implementations, the sending unit 603 is further configured to: if the target request information is the request information, determine the device running the preset reference environment in the second node as the target device; if the target request information is obtained by adding the environment information to the request information, determine the device running the environment indicated by the environment information in the second node as the target device. In some alternative implementations, the sending unit 603 is further configured to: if there is no device running the environment indicated by the environment information in the second node, determine the device running the reference environment as the target device.

[0103] In some alternative implementations, the sending unit 603 is further configured to determine the target device located in the second node based on load balancing and the target request information.

[0104] In some alternative implementations, the first node and the second node are any two adjacent nodes on the processing link of the information to be processed, and the processing link of the information to be processed includes at least two nodes.

[0105] In some alternative implementations, the information processing device further includes an environment configuration unit (not shown in the figure). The environment configuration unit is configured to: perform the following environment configuration operations by the environment configuration server: receive an environment update instruction for the service corresponding to the first node and / or the second node, where the environment update instruction is used to indicate generating a branch environment based on the reference environment; determine the environment identifier corresponding to the branch environment; and associate and store the branch environment with the environment identifier in a preset database.

[0106] In some alternative implementations, the environment configuration unit is further configured to: before receiving the information to be processed from the first node, receive an instruction to configure a branch environment on the first node and / or the second node from the environment configuration server, determine the device running the branch environment on the first node and / or the second node; and pull the branch environment from the preset database to the device.

[0107] Please refer to Figure 7 , Figure 7 which shows an exemplary system architecture to which the information processing method or information processing device according to an embodiment of the present disclosure can be applied.

[0108] As Figure 7As shown, the system architecture may include terminal devices 701, 702, 703, network 704, and server 705. Network 704 is used to provide a medium for communication links between terminal devices 701, 702, 703 and server 705. Network 704 may include various connection types, such as wired, wireless communication links, or fiber optic cables, etc.

[0109] Terminal devices 701, 702, 703 can interact with server 705 through network 704 to receive or send messages, etc. Various client applications can be installed on terminal devices 701, 702, 703, such as web browser applications, search applications, and news and information applications. The client applications on terminal devices 701, 702, 703 can receive user instructions and complete corresponding functions according to the user instructions, such as adding corresponding information to the information according to the user instructions.

[0110] Terminal devices 701, 702, 703 can be hardware or software. When terminal devices 701, 702, 703 are hardware, they can be various electronic devices with a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III), MP4 (Moving Picture Experts Group Audio Layer IV) players, laptop computers, and desktop computers, etc. When terminal devices 701, 702, 703 are software, they can be installed in the above-listed electronic devices. It can be implemented as multiple software or software modules (such as software or software modules for providing distributed services), or can be implemented as a single software or software module. No specific limitation is made here.

[0111] Server 705 can be a server that provides various services. For example, it receives information acquisition requests sent by terminal devices 701, 702, 703, obtains the display information corresponding to the information acquisition request in various ways according to the information acquisition request, and sends the relevant data of the display information to terminal devices 701, 702, 703.

[0112] It should be noted that the information processing method provided by the embodiments of the present disclosure can be executed by the terminal device. Correspondingly, the information processing device can be set in terminal devices 701, 702, 703. In addition, the information processing method provided by the embodiments of the present disclosure can also be executed by server 705. Correspondingly, the information processing device can be set in server 705.

[0113] It should be understood,Figure 7 The number of terminal devices, networks, and servers in [description] is merely illustrative. Depending on implementation requirements, there can be any number of terminal devices, networks, and servers.

[0114] Reference is made below to Figure 8 , which shows a schematic structural diagram of an electronic device suitable for implementing the embodiments of the present disclosure (such as Figure 7 a terminal device or a server). The terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Tablet Computers), PMPs (Portable Multimedia Players), in-vehicle terminals (such as in-vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 8 The electronic device shown is merely an example and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.

[0115] As Figure 8 shown, the electronic device may include a processing device (such as a central processing unit, a graphics processing unit, etc.) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage device 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the electronic device 800 are also stored. The processing device 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0116] Generally, the following devices may be connected to the I / O interface 805: an input device 806 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 807 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 808 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 809. The communication device 809 may allow the electronic device to communicate with other devices wirelessly or wiredly to exchange data. Although Figure 8 an electronic device with various devices is shown, it should be understood that it is not required to implement or have all the shown devices. Instead, more or fewer devices may be implemented or had.

[0117] In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product that includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes program code for performing the methods shown in the flowcharts. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 809, or installed from the storage device 808, or installed from the ROM 802. When the computer program is executed by the processing device 801, the above-mentioned functions defined in the methods of the embodiments of the present disclosure are performed.

[0118] It should be noted that the above-mentioned computer-readable medium in the present disclosure can be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. And in the present disclosure, a computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, and the computer-readable signal medium can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted by any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0119] In some embodiments, the client and the server can communicate using any currently known or future-developed network protocol such as HTTP (HyperText Transfer Protocol), and can be interconnected with digital data communication in any form or medium (e.g., a communication network). Examples of communication networks include local area networks ("LANs"), wide area networks ("WANs"), the Internet (e.g., the Internet), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any currently known or future-developed networks.

[0120] The above computer-readable medium can be included in the above electronic device; or can exist separately without being assembled into the electronic device.

[0121] The above computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to: receive information to be processed from a first node, the information to be processed including environmental carrier information and request information; the environmental carrier information carries environmental information for indicating a target environment required for processing the request information; determine target request information to be transmitted to a second node according to the environmental information carried by the environmental carrier information and the request information; send the target request information to a target device of the second node for processing; where each node corresponds to at least one device; and the environment in which the target device runs matches the target environment.

[0122] Computer program code for performing the operations of the present disclosure can be written in one or more programming languages or combinations thereof. The above programming languages include, but are not limited to, object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, executed as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can 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 can be connected to an external computer (e.g., by using an Internet service provider to connect through the Internet).

[0123] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a segment of a program, or a portion of code that contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions noted in the blocks may occur in a different order than noted in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, or they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented by a dedicated hardware-based system that performs the specified functions or operations, or by a combination of dedicated hardware and computer instructions.

[0124] The units involved in the embodiments described in the present disclosure can be implemented in software or in hardware. In some cases, the name of the unit does not constitute a limitation on the unit itself.

[0125] The functions described above herein can be performed, at least in part, by one or more hardware logic components. By way of example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on a chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0126] In the context of the present disclosure, a machine-readable medium may be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on 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.

[0127] The above description is only a preferred embodiment of the present disclosure and an explanation of the applied technical principles. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above technical features, and should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosure concept. For example, the technical solutions formed by mutually replacing the above features with the technical features (but not limited to) having similar functions disclosed in the present disclosure.

[0128] In addition, although the operations are depicted in a particular order, this should not be construed as requiring that the operations be performed in the particular order shown or in sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, although several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features described in the context of separate embodiments may also be implemented in combination in a single embodiment. Conversely, the various features described in the context of a single embodiment may also be implemented separately or in any suitable sub-combination in multiple embodiments.

[0129] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.

Claims

1. An information processing method, wherein, Including: Receiving information to be processed from a first node, where the information to be processed includes environmental carrier information and a request message; The environmental carrier information carries environmental information for indicating a target environment required for processing the request message; Determining a target request message to be transmitted to a second node according to the environmental information carried by the environmental carrier information and the request message; Sending the target request message to a target device of the second node for processing; wherein each node corresponds to at least one device; the environment in which the target device runs matches the target environment; Wherein, the determining the target request message to be transmitted to the second node according to the environmental information carried by the environmental carrier information includes: Determining whether the environment indicated by the environmental information is a preset reference environment; If it is determined that the environment indicated by the environmental information is a preset reference environment, determining the request message as the target request message; If it is determined that the environment indicated by the environmental information is a non-preset reference environment, adding the environmental information to the request message to obtain a target request message.

2. The method according to claim 1, wherein The adding the environmental information to the request message to obtain a target request message if it is determined that the environment indicated by the environmental information is a non-preset reference environment includes: If it is determined that the environment indicated by the environmental information is a non-preset reference environment, adding the environmental information to the head of the request message to obtain a target request message.

3. The method according to claim 1, wherein The sending the target request message to a target device of the second node for processing includes: If the target request message is the request message, determining the device running the preset reference environment in the second node as the target device; If the target request message is obtained by adding environmental information to the request message, determining the device running the environment indicated by the environmental information in the second node as the target device.

4. The method according to claim 3, wherein, The sending the target request message to a target device of the second node for processing includes: If there is no device running the environment indicated by the environmental information in the second node, determining the device running the reference environment as the target device.

5. The method according to claim 1, wherein The sending the target request message to a target device of the second node for processing includes: Determining a target device located at the second node based on load balancing and the target request message.

6. The method according to claim 1, wherein The first node and the second node are any two adjacent nodes on a processing link of information to be processed, and the processing link of the information to be processed includes at least two nodes.

7. The method according to claim 1, wherein Before receiving the information to be processed from the first node, the method further includes: Performing the following environment configuration operations by an environment configuration server: Receiving an environment update instruction for the service corresponding to the first node and / or the second node, where the environment update instruction is used to indicate generating a branch environment based on a reference environment; Determining an environment identifier corresponding to the branch environment; Associatively storing the branch environment and the environment identifier in a preset database.

8. The method according to claim 7, wherein Before receiving the information to be processed from the first node, the method further includes: Receiving an instruction to configure a branch environment on the first node and / or the second node from an environment configuration server, and determining a device running the branch environment on the first node and / or the second node; Pull the branch environment from the preset database to the device.

9. An information processing apparatus, wherein, Comprising: A receiving unit, configured to receive information to be processed from a first node, where the information to be processed includes environment carrier information and a request information; The environment carrier information includes environment information for indicating a target environment required for processing the request information; A determining unit, configured to determine target request information to be transmitted to a second node according to the environment information carried in the environment carrier information and the request information; A sending unit, configured to send the target request information to a target device of the second node for processing; wherein each node corresponds to at least one device; the environment in which the target device operates matches the target environment; The determining unit is specifically configured to determine whether the environment indicated by the environment information is a preset reference environment; and if it is determined that the environment indicated by the environment information is a preset reference environment, determine the request information as the target request information; if it is determined that the environment indicated by the environment information is a non-preset reference environment, add the environment information to the request information to obtain the target request information.

10. An electronic device, characterized in that, Comprising: One or more processors; A storage device, configured to store one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1-8.

11. A computer-readable medium having a computer program stored thereon, characterized in that, When the program is executed by a processor, the method according to any one of claims 1-8 is implemented.

Citation Information

Patent Citations

  • Service call request processing method based on isolated environment and computer equipment

    CN112631804A

  • Data processing method, computer equipment and readable storage medium

    CN112995269A