CN110784510A - Method for accessing target service node to bus and information interaction method of service node - Google Patents

Method for accessing target service node to bus and information interaction method of service node Download PDF

Info

Publication number
CN110784510A
CN110784510A CN201910875468.8A CN201910875468A CN110784510A CN 110784510 A CN110784510 A CN 110784510A CN 201910875468 A CN201910875468 A CN 201910875468A CN 110784510 A CN110784510 A CN 110784510A
Authority
CN
China
Prior art keywords
service
bus
information
nodes
node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910875468.8A
Other languages
Chinese (zh)
Inventor
吴金钟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Asiainfo Technologies China Inc
Original Assignee
Asiainfo Technologies China Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Asiainfo Technologies China Inc filed Critical Asiainfo Technologies China Inc
Priority to CN201910875468.8A priority Critical patent/CN110784510A/en
Publication of CN110784510A publication Critical patent/CN110784510A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/133Protocols for remote procedure calls [RPC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Abstract

The invention discloses a method for accessing a target service node to a bus and a method for information interaction of the service node, wherein the method for accessing the target service node to the bus comprises the following steps: acquiring a service bus to be accessed; acquiring service registration information of the target service node; acquiring idle port information of the bus; accessing the bus through the free port; sending the service registration information and the idle port information to a bus controller, wherein the bus controller is used for broadcasting the service registration information and the idle port information to all other service nodes; establishing a connection with each of the other serving nodes. In the scheme, a layer of service bus to be accessed is added, and all service nodes are connected to form a transmission channel, so that the service registration, the service routing, the service calling, the data interaction and the file transmission of the service of the upper layer are all based on the service bus, the unified channel of all the services is realized, and the service performance is greatly improved.

Description

Method for accessing target service node to bus and information interaction method of service node
Technical Field
The invention relates to the field of all distributed service support systems, in particular to a method for accessing a target service node to a bus and a method for information interaction of the service node.
Background
At present, the business volume of many large companies is large, the daily access volume reaches millions and millions, even billions of access volumes, and under the condition that the access volume is not large, the configuration of a single server can be improved to meet the requirement. However, when a single server cannot meet the requirements, distributed processing is required, and distributed services are mainly provided for service publishing, service management and service monitoring.
At present, a popular distributed service management scheme has a special service management system, application services register themselves in the system, but the system can only realize service calling, if data interaction and file transmission are required, other servers such as a message server and a file server are required, all services cannot be realized in the same system, and the service performance is poor.
Disclosure of Invention
Therefore, the invention provides a method for accessing a target service node to a bus, aiming at solving the problems that a service management system in the prior art can only realize service calling and cannot perform data interaction and file transmission.
According to a first aspect, an embodiment of the present invention discloses a method for accessing a bus by a target service node, where the bus is connected with a bus controller and other service nodes, and the method includes: acquiring a service bus to be accessed; acquiring service registration information of the target service node; acquiring idle port information of the bus; accessing the bus through the free port; sending the service registration information and the idle port information to a bus controller, wherein the bus controller is used for broadcasting the service registration information and the idle port information to all other service nodes; establishing a connection with each of the other serving nodes.
With reference to the first aspect, in a first implementation manner of the first aspect, the service registration information includes order service, customer service, message service, and the like.
According to a second aspect, an embodiment of the present invention discloses a method for information interaction of service nodes, where a plurality of service nodes are connected to a bus, and the service nodes access the bus through the method described in any of the first aspect or the first aspect, including: acquiring service registration information of the service node; broadcasting the service registration information on the bus; receiving service registration information sent by other service nodes; acquiring current demand information; sending the demand information to other service nodes through a bus; and receiving the service information returned by any service node providing the demand information.
According to a third aspect, an embodiment of the present invention further discloses an information interaction method for service nodes, where a plurality of service nodes are connected to a bus, and the service node accesses the bus by using the method according to the first aspect or any of the embodiments of the first aspect, including: acquiring service registration information of the service node; broadcasting the service registration information on the bus; receiving service registration information sent by other service nodes; acquiring current demand information; determining at least one service node capable of providing the demand information; sending the demand information to the at least one service node over a bus; and receiving the service information returned by any one of the at least one service node.
With reference to any one of the second aspect or the third aspect, in a first implementation manner of any one of the second aspect or the third aspect, for an abnormal service node with an abnormality, the method further includes sending an abnormality signal to a bus controller, where the bus controller generates corresponding stop information according to the abnormality signal and sends the stop information to other service nodes;
for other service nodes, the method also comprises deleting the service information corresponding to the abnormal service node and disconnecting the abnormal service node.
According to a fourth aspect, an embodiment of the present invention discloses an apparatus for accessing a bus by a target service node, where the bus is connected to a bus controller and other service nodes, and the apparatus includes: the first acquisition module is used for acquiring a service bus to be accessed; the second acquisition module is used for acquiring the service registration information of the target service node; a third obtaining module, configured to obtain idle port information of the bus; the access module is used for accessing the bus through the idle port; a sending module, configured to send the service registration information and the idle port information to a bus controller, where the bus controller is configured to broadcast the service registration information and the idle port information to all other nodes; and the connection module is used for establishing connection with each other service node.
According to a fifth aspect, an embodiment of the present invention discloses an apparatus for information interaction of service nodes, where a plurality of service nodes are connected to a bus, and the apparatus includes: the first acquisition module is used for acquiring the service registration information of the service node; a broadcasting module, configured to broadcast the service registration information on the bus; the first receiving module is used for receiving service registration information sent by other service nodes; the second acquisition module is used for acquiring the current demand information; the sending module is used for sending the demand information to other service nodes through a bus; and the second receiving module is used for receiving the service information returned by any service node providing the demand information.
According to a sixth aspect, an embodiment of the present invention discloses an apparatus for information interaction of service nodes, where a plurality of service nodes are connected to a bus, and the apparatus includes: the first acquisition module is used for acquiring the service registration information of the service node; a broadcasting module, configured to broadcast the service registration information on the bus; the first receiving module is used for receiving service registration information sent by other service nodes; the second acquisition module is used for acquiring the current demand information; a determining module, configured to determine at least one service node capable of providing the demand information; a sending module, configured to send the requirement information to the at least one service node through a bus; and the second receiving module is used for receiving the service information returned by any one of the at least one service node.
According to a seventh aspect, an embodiment of the present invention discloses a target service node, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the one processor to cause the at least one processor to perform the steps of the method of the first aspect or any of the embodiments of the first aspect for accessing the bus by the target service node.
According to an eighth aspect, an embodiment of the present invention discloses a service node, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the processor to cause the processor to perform the steps of the method for information interaction of the service node according to any of the second or third aspects or any of the second or third aspects.
According to a ninth aspect, an embodiment of the present invention discloses a computer-readable storage medium, on which computer instructions are stored, where the computer instructions, when executed by a processor, implement a method for accessing a bus by a target service node according to the first aspect or any of the first aspect, or a method for information interaction by a service node according to any of the second aspect or the third aspect or any of the second aspect or the third aspect.
Compared with the prior art, the technical scheme of the invention at least has the following advantages:
1. the embodiment of the invention provides a method for accessing a bus by a target service node, which comprises the steps of obtaining the bus to be accessed, obtaining service registration information and bus idle port information of the target service node, sending the service registration information and the idle port information to a bus controller through the idle port access bus, and broadcasting the service registration information and the idle port information to all other service nodes by the bus controller. The service nodes are connected through the service bus to form a transmission channel, so that the problem that multiple services are not in a service system is solved, the upper-layer services are based on the service bus when performing service registration, service routing, service calling, data interaction and file transmission, uniform channels of all services are realized, the service performance is greatly improved, and the bus of the invention is not related to a protocol related to the services, is only a transmission channel, and improves the adaptability of the bus.
2. The embodiment of the invention provides a method for information interaction of service nodes, which comprises the steps of acquiring service registration information of the service nodes, broadcasting the service registration information on a bus, receiving service registration information sent by other service nodes, acquiring current demand information of the nodes, sending demand information to other service nodes through the bus, and receiving service information returned by any service node providing the demand information. Each node knows the relevant information of all other nodes, broadcasts the required information through a transmission channel between the nodes, and carries out information interaction with other nodes without a bus controller, thereby saving time and improving efficiency.
3. The embodiment of the invention provides a method for information interaction of service nodes, which comprises the steps of acquiring service registration information of the service nodes, broadcasting the service registration information on a bus, receiving the service registration information sent by other service nodes, acquiring current demand information of the nodes, determining at least one node capable of providing the demand information, sending the demand information to the at least one service node through the bus, and receiving the service information returned by any one service node. Each node knows the information of all other nodes, the nodes send the required information to the target node through the transmission channel so as to carry out information interaction, the information does not pass through the bus controller, and the information is sent in a directional mode, so that the target is clear and the efficiency is high.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a schematic diagram of a service bus connection;
fig. 2 is a flowchart of a specific example of a method for a target service node to access a bus in embodiment 1 of the present invention;
fig. 3 is a flowchart of a specific example of a method for information interaction of a service node in embodiment 2 of the present invention;
fig. 4 is a flowchart of a specific example of a method for information interaction of a service node in embodiment 3 of the present invention;
fig. 5 is a schematic block diagram of a specific example of an apparatus for accessing a bus by a target node according to embodiment 4 of the present invention;
fig. 6 is a schematic block diagram of a specific example of an apparatus for information interaction of a service node in embodiment 5 of the present invention;
fig. 7 is a schematic block diagram of a specific example of an apparatus for information interaction of a service node according to embodiment 6 of the present invention;
fig. 8 is a schematic diagram of embodiments 7, 8 and 9 of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it should be noted that the terms "first", "second", and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In addition, the technical features involved in the different embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
Example 1
The embodiment of the invention provides a method for accessing a target node to a bus, which is applied to a distributed service management scheme.A service bus to be accessed is firstly set, all service nodes are connected through the bus, the bus is connected with a bus controller and other service nodes, and information interaction is carried out on the bus among the nodes, as shown in figure 1. The method for accessing the target node to the bus is applied to a new node physically connected to the bus, where the target node is a new node to be added, and is used to access the node to the bus, and a flowchart of the method is shown in fig. 2, and includes the following steps:
s11: the method comprises the steps of obtaining a service bus to be accessed, only establishing physical connection before data connection is established between nodes and the bus, not realizing data interaction, firstly obtaining a bus to be added by a newly added node, connecting all service nodes through the bus, and using the service bus as a transmission channel to provide public channels such as service registration, service routing, service calling, data interaction, file transmission and the like for upper-layer services.
S12: and acquiring service registration information of the target service node, wherein the service registration information of the target service node comprises service information such as order service, customer service, message service and the like, and information interaction can be carried out with other nodes according to the service information. The order service refers to order service information sent to a supplier by a user; the customer service refers to any content capable of improving the customer satisfaction degree, and comprises various forms, such as character customer service, voice customer service, video customer service and the like; the message service means that voice service or information service, such as dynamic account fund notification of a bank, is provided for a terminal user through a fixed network, a mobile network and other networks through information acquisition, development, processing and information platform construction.
S13: the method comprises the steps of obtaining idle port information of a bus, enabling a service node to automatically obtain an idle connection port when the service node is connected to the bus, and analyzing relevant information of the idle connection port.
S14: the bus is accessed through the idle port, and after the service node acquires the idle connection port, the bus interface service needs to be started to access the bus.
S15: the bus controller is used for broadcasting the service registration information and the idle port information to all other service nodes, the service nodes send all service information which can be provided by the service nodes to the bus controller through the bus, the bus controller broadcasts the information to other nodes, the other nodes are informed of a new node to access the bus, and the other nodes know which services can be provided by the node.
S16: and establishing connection with each other service node, and connecting all the nodes together through a bus to finish the self-adaptive communication of the service bus. Through the process, the newly added node can establish a connection relation with all other service nodes, so that data interaction can be realized among all the nodes.
The embodiment of the invention provides a method for accessing a bus by a target service node, which comprises the steps of obtaining the bus to be accessed, obtaining service registration information and bus idle port information of the target service node, accessing the bus by the idle port, sending the service registration information and the idle port information to a bus controller, and broadcasting the service registration information and the idle port information to all other service nodes by the bus controller. The service nodes are connected through the service bus to form a transmission channel, so that the problem that multiple services are not in a service system is solved, the services of the upper layer are based on the service bus when service registration, service routing, service calling, data interaction and file transmission are carried out, uniform channels of all the services are realized, the service performance is greatly improved, meanwhile, the bus does not relate to protocols related to the services and is only a transmission channel, and the adaptability of the bus is improved.
Example 2
The embodiment provides a method for information interaction of service nodes, which is applied to a distributed service governance scheme, as shown in fig. 1, where a bus is connected with a bus controller and other service nodes, as shown in fig. 3, and the method includes the following steps:
s21: and acquiring service registration information of the service node, wherein the service registration information is service information of order service, customer service, message service and the like.
S22: the service registration information is broadcasted on the bus, and each service node broadcasts the service registration information of the service node on the bus, so that all other service nodes can know and receive the service registration information conveniently.
S23: and receiving service registration information sent by other service nodes, wherein each service node receives the service registration information of all other nodes, knows the service information of other nodes and facilitates subsequent information interaction.
S24: and acquiring current demand information, wherein the demand information refers to business services required by the service node, such as order service, customer service, message service and the like.
S25: and sending the demand information to all other service nodes through the bus.
S26: the method comprises the steps that service information returned by any service node providing demand information is received, the node providing the demand information automatically returns the service information, when a plurality of service nodes can provide the demand information, a random service node returns the service information of the random service node to a node sending the demand information, for example, when a service node a releases a message service needed by the random service node a on a bus, the service node b and the service node c can provide a service of the message service, and the service node b and the service node c randomly return the service information to the service node a.
The embodiment of the invention provides an information interaction method of a service node, which comprises the steps of obtaining service registration information of the service node, broadcasting the service registration information on a bus, receiving the service registration information sent by other service nodes, obtaining current demand information of the node, sending the demand information to other service nodes through the bus, and receiving service information returned by any service node providing the demand information. Each node knows the information of all nodes, broadcasts the required information through a transmission channel between the nodes, and carries out information interaction with other nodes without a bus controller, thereby saving time and improving efficiency.
Example 3
The embodiment provides a method for information interaction of a service node, which is applied to a distributed service governance scheme, and as shown in fig. 3, the method includes the following steps:
s31: and acquiring service registration information of the service node, wherein the service registration information is service information of order service, customer service, message service and the like.
S32: the service registration information is broadcasted on the bus, and each service node broadcasts the service registration information of the service node on the bus, so that all other service nodes can receive the service registration information conveniently.
S33: and receiving service registration information sent by other service nodes, wherein each service node receives the service registration information of all other nodes, knows the service information of other nodes and facilitates subsequent information interaction.
S34: and acquiring current demand information, wherein the demand information refers to business services required by the service node, such as order service, customer service, message service and the like.
S35: at least one service node capable of providing the demand information is determined, and one or more service nodes capable of providing the demand information are determined first, so that the information can be sent directionally when information interaction is carried out subsequently.
S36: the demand information is sent to at least one service node over the bus.
S37: receiving service information returned by any at least one service node, wherein when the service information is sent to a service node providing the demand information, the service node can automatically return the service information; when the request information is sent to a plurality of service nodes which can provide the request information, one service node returns the service information of the service node to the node sending the request information.
Optionally, for the method of any embodiment of embodiment 2 or embodiment 3, further comprising:
and for the abnormal service nodes with the abnormality, the method also comprises the step of sending an abnormal signal to the bus controller, generating corresponding stop information by the bus controller according to the abnormal signal and sending the stop information to other service nodes, monitoring all the service nodes by the bus controller all the time, and immediately discovering and then informing other service nodes by the bus controller when any one service node is abnormal.
For other service nodes, the method also comprises deleting the service information corresponding to the abnormal service node, disconnecting the abnormal service node, automatically disconnecting the bus along with the stop of the service node, and not making any other configuration.
The embodiment of the invention provides a method for information interaction of service nodes, which comprises the steps of acquiring service registration information of the service nodes, broadcasting the service registration information on a bus, receiving the service registration information sent by other service nodes, acquiring current demand information of the nodes, determining at least one node capable of providing the demand information, sending the demand information to at least one service node through the bus, and receiving service information returned by any at least one service node. Each node knows the information of all the nodes, the nodes send the required information to the target node through the connecting channel so as to carry out information interaction, a bus controller is not needed, the target is clear, the efficiency is high, the bus can be automatically disconnected along with the stop of the nodes, other configurations are not needed, and the efficiency is improved.
Example 4
The present embodiment provides an apparatus for accessing a bus by a target node, as shown in fig. 5, including:
the first obtaining module 41 is configured to obtain a service bus to be accessed, and a specific implementation manner is shown in step S11 in embodiment 1, which is not described herein again.
The second obtaining module 42 is configured to obtain service registration information of the target service node, and a specific implementation manner of the second obtaining module is shown in step S12 in embodiment 1, which is not described herein again.
The third obtaining module 43 is configured to obtain the idle port information of the bus, and a specific implementation manner is shown in step S13 in embodiment 1, which is not described herein again.
The access module 44 is configured to access the bus through the idle port, and a specific implementation manner is shown in step S14 in embodiment 1, which is not described herein again.
A sending module 45, configured to send the service registration information and the idle port information to the bus controller, where the bus controller is configured to broadcast the service registration information and the idle port information to all other nodes, a specific implementation manner is shown in step S15 in embodiment 1, and details are not described here.
The connection module 46 is configured to establish a connection with each other service node, and a specific implementation manner is shown in step S16 in embodiment 1, which is not described herein again.
The embodiment of the invention provides a device for accessing a target service node into a bus, which is used for acquiring the bus to be accessed, acquiring service registration information and bus idle port information of the target service node, accessing the bus through an idle port, sending the service registration information and the idle port information to a bus controller, and broadcasting the service registration information and the idle port information to all other service nodes by the bus controller. The service nodes are connected through the service bus to form a transmission channel, so that the problem that multiple services are not in one service system is solved, the services on the upper layer are based on the service bus when service registration, service routing, service calling, data interaction and file transmission are carried out, uniform channels of all the services are realized, and the service performance is greatly improved.
Example 5
The present embodiment provides an apparatus for information interaction of a service node, as shown in fig. 6, including:
the first obtaining module 51 is configured to obtain service registration information of a service node, and a specific implementation manner of the first obtaining module is shown in step S21 in embodiment 2, which is not described herein again.
The broadcast module 52 is configured to broadcast the service registration information on the bus, and the specific implementation manner is shown in step S22 in embodiment 2, which is not described herein again.
The first receiving module 53 is configured to receive service registration information sent by another service node, and a specific implementation manner of the first receiving module is shown in step S23 in embodiment 2, which is not described herein again.
The specific implementation manner of the second obtaining module 54 is shown in step S24 in embodiment 2, and details are not described here.
A sending module 55, configured to send the requirement information to other service nodes through a bus, where a specific implementation manner is shown in step S25 in embodiment 2, which is not described herein again.
The second receiving module 56 is configured to receive service information returned by any service node that provides the demand information, and a specific implementation manner is shown in step S26 in embodiment 2, which is not described herein again.
Further description of the functions of the modules is the same as that of the corresponding embodiment 2, and is not repeated herein.
The embodiment of the invention provides an information interaction device of a service node, which is used for acquiring service registration information of the service node, broadcasting the service registration information on a bus, receiving the service registration information sent by other service nodes, acquiring current demand information of the node, sending the demand information to other service nodes through the bus, and receiving service information returned by any service node providing the demand information. Each node knows the information of all nodes, broadcasts the required information through a connecting channel between the nodes, and carries out information interaction with other nodes without a bus controller, thereby saving time and improving efficiency.
Example 6
The present embodiment provides an apparatus for information interaction of a service node, as shown in fig. 7, including:
the first obtaining module 61 is configured to obtain service registration information of the service node, and a specific implementation manner of the first obtaining module is shown in step S31 in embodiment 3, which is not described herein again.
The broadcast module 62 is configured to broadcast the service registration information on the bus, and the specific implementation manner is see step S32 in embodiment 3, which is not described herein again.
The first receiving module 63 is configured to receive service registration information sent by other service nodes, and a specific implementation manner of the first receiving module is shown in step S33 in embodiment 3, which is not described herein again.
The specific implementation manner of the second obtaining module 64 is shown in step S34 in embodiment 3, and details are not described herein.
The determining module 65 is configured to determine at least one service node capable of providing the demand information, and a specific implementation manner is shown in step S35 in embodiment 3, which is not described herein again.
The sending module 66 is configured to send the requirement information to at least one service node through a bus, where a specific implementation manner is shown in step S36 in embodiment 3, and details are not described here again.
A second receiving module 67, configured to receive service information returned by any at least one service node, where a specific implementation manner is shown in step S37 in embodiment 3, and details are not described here.
The terminal control apparatus in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC circuit, a processor and memory executing one or more software or fixed programs, and/or other devices that may provide the above-described functionality.
Further description of the functions of the modules is the same as that of the corresponding embodiment 3, and is not repeated herein.
The embodiment of the invention provides an information interaction device of service nodes, which is used for acquiring service registration information of the service nodes, broadcasting the service registration information on a bus, receiving the service registration information sent by other service nodes, acquiring current demand information of the nodes, determining at least one node capable of providing the demand information, sending the demand information to at least one service node through the bus, and receiving the service information returned by any at least one service node. Each node knows the information of all the nodes, the nodes send the required information to the target node through the connecting channel so as to carry out information interaction, and the target is clear and high in efficiency without passing through a bus controller.
Example 7
The present embodiment further provides a target service node, as shown in fig. 8, including a memory 72 and a processor 71, where the processor 71 is configured to read instructions stored in the memory 72 to perform the following operations:
a specific implementation manner of acquiring the service bus to be accessed is step S11 in embodiment 1, which is not described herein again.
The specific implementation manner of obtaining the service registration information of the target service node is shown in step S12 in embodiment 1, which is not described herein again.
The specific implementation manner of obtaining the free port information of the bus is step S13 in embodiment 1, which is not described herein again.
The specific implementation manner of accessing the bus through the idle port is shown in step S14 in embodiment 1, and details are not described here.
The service registration information and the idle port information are sent to the bus controller, and the bus controller is configured to broadcast the service registration information and the idle port information to all other service nodes, where a specific implementation manner is shown in step S15 in embodiment 1, and details are not described here.
The specific implementation of establishing a connection with each other service node is step S16 in embodiment 1, which is not described herein again.
Further functional descriptions of the above steps are the same as those of the above embodiment 1, and are not repeated herein.
Example 8
The present embodiment further provides a service node, as shown in fig. 8, including a memory 72 and a processor 71, where the processor 71 is configured to read instructions stored in the memory 72 to perform the following operations:
the specific implementation manner of obtaining the service registration information of the service node is shown in step S21 in embodiment 2, which is not described herein again.
The service registration information is broadcasted on the bus, and the specific implementation manner is step S22 in embodiment 2, which is not described herein again.
Receiving service registration information sent by other service nodes, the specific implementation manner is step S23 in embodiment 2, and details are not described herein.
The specific implementation manner of obtaining the current requirement information is shown in step S24 in embodiment 2, which is not described herein again.
The specific implementation manner of sending the requirement information to other service nodes through the bus is step S25 in embodiment 2, which is not described herein again.
The specific implementation manner of receiving the service information returned by any service node providing the demand information is step S26 in embodiment 2, which is not described herein again.
Further functional descriptions of the above steps are the same as those of the above embodiment 2, and are not repeated herein.
Example 9
The present embodiment further provides a service node, as shown in fig. 8, including a memory 72 and a processor 71, where the processor 71 is configured to read instructions stored in the memory 72 to perform the following operations:
the specific implementation manner of obtaining the service registration information of the service node is shown in step S31 in embodiment 3, which is not described herein again.
The service registration information is broadcasted on the bus, and the specific implementation manner is step S32 in embodiment 3, which is not described herein again.
Receiving service registration information sent by other service nodes, the specific implementation manner is step S33 in embodiment 3, which is not described herein again.
The specific implementation manner of obtaining the current requirement information is shown in step S34 in embodiment 3, which is not described herein again.
A specific implementation manner of determining at least one service node capable of providing the requirement information is shown in step S35 in embodiment 3, which is not described herein again.
The specific implementation manner of sending the requirement information to at least one service node through the bus is step S36 in embodiment 3, which is not described herein again.
A specific implementation manner of receiving the service information returned by any at least one service node is shown in step S37 in embodiment 3, which is not described herein again.
Further functional descriptions of the above steps are the same as those of the above embodiment 3, and are not repeated herein.
Example 10
The embodiment of the present invention further provides a computer storage medium, where a computer executable instruction is stored in the computer storage medium, and the computer executable instruction can execute the target service node access bus processing method in embodiment 1. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Memory Access (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD) or a Solid State Drive (SSD), etc.; the storage medium may also comprise a combination of memories of the kind described above.
It should be understood that the above examples are only for clarity of illustration and are not intended to limit the embodiments. Other variations and modifications will be apparent to persons skilled in the art in light of the above description. And are neither required nor exhaustive of all embodiments. And obvious variations or modifications therefrom are within the scope of the invention.

Claims (11)

1. A method for a target service node to access a bus, the bus coupled to a bus controller and to other service nodes, the method comprising:
acquiring a service bus to be accessed;
acquiring service registration information of the target service node;
acquiring idle port information of the bus;
accessing the bus through the free port;
sending the service registration information and the idle port information to a bus controller, wherein the bus controller is used for broadcasting the service registration information and the idle port information to all other service nodes;
establishing a connection with each of the other serving nodes.
2. The method of claim 1, wherein the service registration information comprises order service, customer service, message service, and the like.
3. A method of information interaction of service nodes, a plurality of said service nodes being connected to a bus, said service nodes accessing the bus by the method of any of claims 1-2, comprising:
acquiring service registration information of the service node;
broadcasting the service registration information on the bus;
receiving service registration information sent by other service nodes;
acquiring current demand information;
sending the demand information to other service nodes through a bus;
and receiving the service information returned by any service node providing the demand information.
4. A method for information interaction of service nodes, a plurality of the service nodes being connected to a bus, the service nodes accessing the bus by the method of any one of claims 1-2, the method comprising:
acquiring service registration information of the service node;
broadcasting the service registration information on the bus;
receiving service registration information sent by other service nodes;
acquiring current demand information;
determining at least one service node capable of providing the demand information;
sending the demand information to the at least one service node over a bus;
and receiving the service information returned by any one of the at least one service node.
5. The method for information interaction of the service nodes according to any one of claims 3 or 4, wherein for an abnormal service node with an abnormality, the method further comprises sending an abnormality signal to a bus controller, and the bus controller generates corresponding stop information according to the abnormality signal and sends the stop information to other service nodes;
for other service nodes, the method also comprises deleting the service information corresponding to the abnormal service node and disconnecting the abnormal service node.
6. An apparatus for accessing a bus by a target service node, the bus coupled to a bus controller and to other service nodes, the apparatus comprising:
the first acquisition module is used for acquiring a service bus to be accessed;
the second acquisition module is used for acquiring the service registration information of the target service node;
a third obtaining module, configured to obtain idle port information of the bus;
the access module is used for accessing the bus through the idle port;
a sending module, configured to send the service registration information and the idle port information to a bus controller, where the bus controller is configured to broadcast the service registration information and the idle port information to all other nodes;
and the connection module is used for establishing connection with each other service node.
7. An apparatus for information interaction of service nodes, a plurality of the service nodes being connected to a bus, comprising:
the first acquisition module is used for acquiring the service registration information of the service node;
a broadcasting module, configured to broadcast the service registration information on the bus;
the first receiving module is used for receiving service registration information sent by other service nodes;
the second acquisition module is used for acquiring the current demand information;
the sending module is used for sending the demand information to other service nodes through a bus;
and the second receiving module is used for receiving the service information returned by any service node providing the demand information.
8. An apparatus for information interaction of service nodes, a plurality of the service nodes being connected to a bus, comprising:
the first acquisition module is used for acquiring the service registration information of the service node;
a broadcasting module, configured to broadcast the service registration information on the bus;
the first receiving module is used for receiving service registration information sent by other service nodes;
the second acquisition module is used for acquiring the current demand information;
a determining module, configured to determine at least one service node capable of providing the demand information;
a sending module, configured to send the requirement information to the at least one service node through a bus;
and the second receiving module is used for receiving the service information returned by any one of the at least one service node.
9. A target serving node, comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the one processor to cause the at least one processor to perform the steps of the method of accessing a bus by a target service node as claimed in any one of claims 1-2.
10. A serving node, comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the one processor to cause the at least one processor to perform the steps of the method of information interaction of the service node of any of claims 3-5.
11. A computer-readable storage medium having stored thereon computer instructions, which when executed by a processor, implement the method of accessing a bus by a target service node according to any one of claims 1-2 or the method of information interaction by a service node according to any one of claims 3-5.
CN201910875468.8A 2019-09-17 2019-09-17 Method for accessing target service node to bus and information interaction method of service node Pending CN110784510A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910875468.8A CN110784510A (en) 2019-09-17 2019-09-17 Method for accessing target service node to bus and information interaction method of service node

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910875468.8A CN110784510A (en) 2019-09-17 2019-09-17 Method for accessing target service node to bus and information interaction method of service node

Publications (1)

Publication Number Publication Date
CN110784510A true CN110784510A (en) 2020-02-11

Family

ID=69383532

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910875468.8A Pending CN110784510A (en) 2019-09-17 2019-09-17 Method for accessing target service node to bus and information interaction method of service node

Country Status (1)

Country Link
CN (1) CN110784510A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112732348A (en) * 2020-12-30 2021-04-30 浙江大华技术股份有限公司 Service processing method and device of multi-node all-in-one machine
WO2024067757A1 (en) * 2022-09-30 2024-04-04 蔚来软件科技(上海)有限公司 Cross-terminal-communication device management method, system and apparatus based on bus, and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102158361A (en) * 2011-04-15 2011-08-17 浙江大学 Equipment and method for maintaining reliability of distributed enterprise service bus intermediate flow
CN102647319A (en) * 2012-03-27 2012-08-22 许继集团有限公司 Application service system for monitoring power charging-exchanging station and interprocess communication method
CN104467945A (en) * 2013-09-16 2015-03-25 中国人民解放军总参谋部第六十一研究所 Virtual bus-based distributed asterism network resource management method
CN106656706A (en) * 2017-02-25 2017-05-10 华南理工大学 Service-oriented robot open-type control system and method based on software bus
CN109408232A (en) * 2018-10-17 2019-03-01 山东易通发展集团有限公司 A kind of modularization bus calling execution system based on transaction flow
CN109688089A (en) * 2017-10-19 2019-04-26 成都勤智未来科技有限公司 A kind of Distributed database service node construction method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102158361A (en) * 2011-04-15 2011-08-17 浙江大学 Equipment and method for maintaining reliability of distributed enterprise service bus intermediate flow
CN102647319A (en) * 2012-03-27 2012-08-22 许继集团有限公司 Application service system for monitoring power charging-exchanging station and interprocess communication method
CN104467945A (en) * 2013-09-16 2015-03-25 中国人民解放军总参谋部第六十一研究所 Virtual bus-based distributed asterism network resource management method
CN106656706A (en) * 2017-02-25 2017-05-10 华南理工大学 Service-oriented robot open-type control system and method based on software bus
CN109688089A (en) * 2017-10-19 2019-04-26 成都勤智未来科技有限公司 A kind of Distributed database service node construction method
CN109408232A (en) * 2018-10-17 2019-03-01 山东易通发展集团有限公司 A kind of modularization bus calling execution system based on transaction flow

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112732348A (en) * 2020-12-30 2021-04-30 浙江大华技术股份有限公司 Service processing method and device of multi-node all-in-one machine
WO2024067757A1 (en) * 2022-09-30 2024-04-04 蔚来软件科技(上海)有限公司 Cross-terminal-communication device management method, system and apparatus based on bus, and medium

Similar Documents

Publication Publication Date Title
CN109428749B (en) Network management method and related equipment
CN111163130B (en) Network service system and data transmission method thereof
CN109417492B (en) Network function NF management method and NF management equipment
US20150088995A1 (en) Method and apparatus for sharing contents using information of group change in content oriented network environment
CN110708694A (en) Method, system, storage medium and electronic device for realizing simultaneous online public and private networks
CN112218386B (en) Application program service path establishing method and device for multi-card terminal, storage medium and terminal
CN111629371B (en) Screen projection method and system
CN109151025B (en) Load balancing method and device based on URL, computer storage medium and equipment
TWI640214B (en) Network access method, related equipment and system
CN104243266A (en) Method and device for network access
CN110784510A (en) Method for accessing target service node to bus and information interaction method of service node
CN110392119B (en) Data transmission method and base station
CN110312140B (en) Live broadcast data processing method, device and system and computer readable storage medium
CN101925158A (en) System and method for obtaining number detail
CN112491951B (en) Request processing method, server and storage medium in peer-to-peer network
CN109788075B (en) Private network system, data acquisition method and edge server
CN113114670A (en) Multi-protocol connection method, equipment and storage medium of block chain network
CN110520838B (en) Method for configuring at least one device in a network
CN101414929B (en) Method, device and system for acquiring information
CN107528797B (en) Data processing method, device and system
CN110943975A (en) Service registration method, device, computer equipment and storage medium
CN115190162B (en) Proxy service configuration method and proxy service system in block chain
CN109561170A (en) Address pool creation method, device, address pool management system and storage medium
CN115529478A (en) Data distribution system, method and transfer server
CN114745809A (en) Network connection method, device, terminal equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200211