CN110581893B - Data transmission method and device, routing equipment, server and storage medium - Google Patents

Data transmission method and device, routing equipment, server and storage medium Download PDF

Info

Publication number
CN110581893B
CN110581893B CN201910884270.6A CN201910884270A CN110581893B CN 110581893 B CN110581893 B CN 110581893B CN 201910884270 A CN201910884270 A CN 201910884270A CN 110581893 B CN110581893 B CN 110581893B
Authority
CN
China
Prior art keywords
service
node
cluster
service node
routing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910884270.6A
Other languages
Chinese (zh)
Other versions
CN110581893A (en
Inventor
陈珂
薛珊
任毅
张磊
蒋朝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
XI'AN FUTURE INTERNATIONAL INFORMATION CO Ltd
Original Assignee
XI'AN FUTURE INTERNATIONAL INFORMATION CO Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by XI'AN FUTURE INTERNATIONAL INFORMATION CO Ltd filed Critical XI'AN FUTURE INTERNATIONAL INFORMATION CO Ltd
Priority to CN201910884270.6A priority Critical patent/CN110581893B/en
Publication of CN110581893A publication Critical patent/CN110581893A/en
Application granted granted Critical
Publication of CN110581893B publication Critical patent/CN110581893B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/30Routing of multiclass traffic
    • 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
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1044Group management mechanisms 
    • 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
    • H04L67/63Routing a service request depending on the request content or context

Abstract

The disclosure provides a data transmission method and device based on an organization structure, routing equipment, a server and a storage medium, and relates to the technical field of internet. The method is applied to a routing node in a data transmission system, the data transmission system also comprises at least one service cluster, each service cluster comprises a plurality of service nodes, each service node included in the same service cluster corresponds to different service organization types, wherein at least one service cluster is connected with the routing node through a service bus, and the method comprises the following steps: and receiving a service request sent by a first service node, wherein the service request carries an identifier of a second service node, sending the service request to the second service node in at least one service cluster, receiving service data fed back by the second service node according to the service request, and sending the service data to the first service node. The method and the system can realize data intercommunication among all service clusters and all service nodes in the data transmission system, improve the utilization rate of resources and reduce the cost.

Description

Data transmission method and device, routing equipment, server and storage medium
Technical Field
The present disclosure relates to the field of internet technologies, and in particular, to a data transmission method, an apparatus, a routing device, a server, and a storage medium.
Background
With the development of internet technology, networking and automation of various services have become more and more popular. In the prior art, a service cluster may be constructed according to actual service needs, and the service cluster may include service nodes respectively corresponding to different service organization types, so that service requests of different service organization types are processed through each service boundary node. However, since data of each service cluster and each service node are difficult to communicate with each other, the utilization rate of resources is low and the cost is high.
Disclosure of Invention
The present disclosure provides a data transmission method, apparatus, routing device, server and storage medium based on an organization architecture, so as to implement data intercommunication between each service cluster and each service node in a data transmission system, improve the utilization rate of resources, and reduce cost.
In order to achieve the above purpose, the technical scheme adopted by the disclosure is as follows:
in a first aspect, the present disclosure provides a data transmission method based on an organization architecture, which is applied to a routing node in a data transmission system, where the data transmission system further includes at least one service cluster, each service cluster includes a plurality of service nodes, and each service node included in the same service cluster corresponds to a different service organization type, where at least one service cluster is connected to the routing node through a service bus, and the method includes:
receiving a service request sent by a first service node, wherein the service request carries an identifier of a second service node, and the first service node is any service node in at least one service cluster;
sending a service request to the second service node in at least one of the service clusters;
and receiving the service data fed back by the second service node according to the service request, and sending the service data to the first service node.
Optionally, the service node comprises an adapter;
the sending a service request to the second service node in at least one of the service clusters includes:
and sending the service request to a target adapter corresponding to the identifier of the second service node.
Optionally, the adapter is provided with a standardized external interface;
the sending the service request to the target adapter corresponding to the identifier of the second service node includes:
and sending the service request to the target adapter corresponding to the identifier of the second service node through a standardized external interface of the target adapter.
Optionally, the data transmission system includes a plurality of the routing nodes, and each routing node corresponds to a different service organization type;
the receiving of the service request sent by the first service node includes:
and receiving a service request which is sent by the first service node and is consistent with the service organization type corresponding to the routing node.
Optionally, the service request further includes timing information;
the sending a service request to the second service node in at least one of the service clusters includes:
and sending the service request to the second service node in at least one service cluster according to the period indicated by the timing information.
In a second aspect, the present disclosure further provides a data transmission method based on an organization architecture, which is applied to a second service node in a data transmission system, where the data transmission system includes at least one service cluster and a routing node, each service cluster includes a plurality of service nodes, and each service node included in the same service cluster corresponds to a different service organization type, where at least one service cluster is connected to the routing node through a service bus, and the method includes:
receiving a service request sent by a first service node through a routing node, wherein the service request carries an identifier of a second service node, and the first service node is any service node in at least one service cluster;
acquiring service data based on the service request;
and sending the service data to the first service node through the routing node.
Optionally, the service node comprises an adapter;
the receiving, by the routing node, the service request sent by the first service node includes:
and receiving the service request through the target adapter corresponding to the identifier of the second service node.
Optionally, the adapter is provided with a standardized external interface;
the receiving the service request through the target adapter corresponding to the identifier of the second service node includes:
receiving the service request through a standardized external interface of the target adapter.
In a third aspect, the present disclosure further provides a data transmission device based on an organization architecture, which is applied to a routing node in a data transmission system, where the data transmission system further includes at least one service cluster, each service cluster includes a plurality of service nodes, and each service node included in the same service cluster corresponds to a different service organization type, where at least one service cluster is connected to the routing node through a service bus, and the device includes:
a receiving module, configured to receive a service request sent by a first service node, where the service request carries an identifier of a second service node, and the first service node is any service node in at least one service cluster;
a first sending module, configured to send a service request to the second service node in at least one of the service clusters;
and the second sending module is used for receiving the service data fed back by the second service node according to the service request and sending the service data to the first service node.
Optionally, the service node comprises an adapter;
the first sending module is specifically configured to:
and sending the service request to a target adapter corresponding to the identifier of the second service node.
Optionally, the adapter is provided with a standardized interface;
the first sending module is specifically configured to:
and sending the service request to the target adapter corresponding to the identifier of the second service node through the standardized interface of the target adapter.
Optionally, the data transmission system includes a plurality of the routing nodes, and each routing node corresponds to a different service organization type;
the receiving module is specifically configured to:
and receiving a service request which is sent by the first service node and is consistent with the service organization type corresponding to the routing node.
Optionally, the service request further includes timing information;
the first sending module is specifically configured to:
and sending the service request to the second service node in at least one service cluster according to the period indicated by the timing information.
In a fourth aspect, the present disclosure further provides a data transmission device based on an organization architecture, which is applied to a second service node in a data transmission system, where the data transmission system includes at least one service cluster and a routing node, each service cluster includes a plurality of service nodes, and each service node included in the same service cluster corresponds to a different service organization type, where at least one service cluster is connected to the routing node through a service bus, and the device includes:
a receiving module, configured to receive, through a routing node, a service request sent by a first service node, where the service request carries an identifier of a second service node, and the first service node is any service node in at least one service cluster;
the acquisition module is used for acquiring service data based on the service request;
and the sending module is used for sending the service data to the first service node through the routing node.
Optionally, the service node comprises an adapter;
the receiving module is specifically configured to:
and receiving the service request through the target adapter corresponding to the identifier of the second service node.
Optionally, the adapter is provided with a standardized interface;
the receiving module is specifically configured to:
and receiving the service request through the standardized interface of the target adapter.
In a fifth aspect, the present disclosure further provides a routing device, including: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating via the bus when the routing device is running, the processor executing the machine-readable instructions to perform the steps of the method according to the first aspect.
In a sixth aspect, the present disclosure also proposes a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method of the first aspect.
In a seventh aspect, the present disclosure further provides a server, including: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating via the bus when the server is running, the processor executing the machine-readable instructions to perform the steps of the method according to the first aspect.
In an eighth aspect, the present disclosure also proposes a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps of the method of the first aspect.
In the disclosed embodiment, the data transmission system comprises a routing node and at least one service cluster, each service cluster comprises a plurality of service nodes, each service node included in the same service cluster corresponds to different service organization types, the at least one service cluster is connected with the routing node through a service bus, the routing node can receive a service request sent by any first service node in the at least one service cluster, send the service request to a second service node in the at least one service cluster based on an identifier of the second service node carried by the service request, and send the service data to the first service node from the second service node according to the service data fed back by the service request, so that data intercommunication among the service clusters and the service nodes in the data transmission system is realized, the utilization rate of resources is improved, and the cost is reduced.
Additional features and advantages of the disclosure will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the disclosure. The objectives and other advantages of the disclosure may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
To more clearly illustrate the technical solutions of the present disclosure, the drawings needed for the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present disclosure, and therefore should not be considered as limiting the scope, and those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a flow chart illustrating a data transmission method based on an organization architecture according to the present disclosure;
FIG. 2 is a flow chart illustrating another organizational structure based data transmission method provided by the present disclosure;
FIG. 3 is a flow chart illustrating another organizational structure based data transmission method provided by the present disclosure;
FIG. 4 is a functional block diagram of a data transmission device based on an organization architecture according to the present disclosure;
FIG. 5 is a functional block diagram of another organizational structure based data transfer device provided by the present disclosure;
fig. 6 shows a functional module schematic diagram of a routing device provided by the present disclosure;
fig. 7 shows a functional module schematic diagram of a server provided by the present disclosure.
Detailed Description
The technical solution in the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the present disclosure.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
Fig. 1 is a schematic flow chart of a data transmission method based on an organization structure according to the present disclosure. The method is applied to a routing node in a data transmission system, the data transmission system also comprises at least one service cluster, each service cluster comprises a plurality of service nodes, each service node included in the same service cluster corresponds to different service organization types, and at least one service cluster is connected with the routing node through a service bus. It should be noted that the organization structure-based data transmission method according to the present disclosure is not limited by the specific sequence shown in fig. 1 and described below, and it should be understood that, in other embodiments, the sequence of some steps in the organization structure-based data transmission method according to the present disclosure may be interchanged according to actual needs, or some steps may be omitted or deleted. The flow shown in fig. 1 will be explained in detail below.
Step 101, receiving a service request sent by a first service node, where the service request carries an identifier of a second service node, and the first service node is any service node in at least one service cluster.
In order to realize data intercommunication between service nodes in each service cluster, improve the utilization rate of resources and reduce the use cost of the resources, the routing node can receive a service request of any service node in any service cluster.
The service cluster may comprise a server cluster or server. When the service cluster is a server cluster, the service node can be a server in the server cluster; when the service cluster is a server, the service node may be a server module in the server.
The service organization type is the type of service processing which can be carried out by the service node. The service organization type corresponding to each service node may be set by the user in advance.
For example, business organization types may include operation, administration, monitoring, cloud, and advertising six business organization types. The operation type service node can be used for service directory management and purchase contract management, the operation and maintenance type service node can be used for process management and monitoring management, the supervision type service node can be used for application supervision, cloud resource supervision, operation and maintenance supervision and asset supervision, the operation and maintenance type service node can be used for social cloud resource intake, operation and termination, the cloud type service node can be used for starting, closing, restarting, snapshooting, backup and binding volumes, an access control strategy is set, a floating IP (Internet Protocol) address is bound, a network is configured, migration, expansion and other operations are carried out, and the monitoring type service node can be used for query and operation of a user, a host group and a template.
The service bus may be used for data transmission services between the inside and the outside of the data transmission system, and the service bus may be used for an interface for accessing the service bus, such as an interface based on a REST (Representational State Transfer) Protocol or an HTTP (HyperText Transfer Protocol) Protocol, and the like.
The data Bus may include an ESB (Enterprise Service Bus).
The service node identification may be information that can identify the service node, for example, the service node identification may include a number or a corresponding network address.
The second service node may be any node of the at least one service cluster other than the first service node.
The service request may be for obtaining corresponding service data from the second service node.
The routing node may receive a service request transmitted from the first service node over the service bus.
Step 102, a service request is sent to a second service node in at least one service cluster.
In order to implement data intercommunication between service nodes of different service clusters and different service organization types in the data transmission system, the routing node may send the service request to the second service node in at least one service cluster according to the identifier of the second service node carried by the request.
The routing node may determine, based on the identifier of the second service node, the second service node among the service nodes included in the at least one service cluster, and thereby send the service request to the second service node through the service bus according to the identifier of the second service node.
And 103, receiving the service data fed back by the second service node according to the service request, and sending the service data to the first service node.
And the routing node receives the service data fed back by the second service node according to the service request and sends the service data to the first service node.
When the second service node receives the service request, it may perform corresponding service processing according to the service request, such as performing data query, storage or other service operations, to obtain service data after service processing, and feed back the service data to the routing node through the service bus. And when receiving the service data, the routing node returns the service data to the first service node through the service bus.
In the disclosed embodiment, the data transmission system comprises a routing node and at least one service cluster, each service cluster comprises a plurality of service nodes, each service node included in the same service cluster corresponds to different service organization types, the at least one service cluster is connected with the routing node through a service bus, the routing node can receive a service request sent by any first service node in the at least one service cluster, send the service request to a second service node in the at least one service cluster based on an identifier of the second service node carried by the service request, and send the service data to the first service node from the second service node according to the service data fed back by the service request, so that data intercommunication among the service clusters and the service nodes in the data transmission system is realized, the utilization rate of resources is improved, and the cost is reduced.
Optionally, the service node includes an adapter, and accordingly, the operation of sending the service request to the second service node in the at least one service cluster in step 102 may include: and sending the service request to a target adapter corresponding to the identifier of the second service node.
Since the service nodes may have different service organization types and thus need to interact in different ways, in order to obtain reliability of the related service from the second service node, a service request may be sent to a target adapter corresponding to the second service node.
Optionally, the adapter includes a standardized external interface, and accordingly, the foregoing operation of sending the service request to the target adapter corresponding to the identifier of the second service node may include: the service request may be sent to the target adapter corresponding to the identity of the second service node over a standardized external interface of the target adapter.
Because there is a service interaction requirement between service nodes of different service organization types, but due to the limitations of the service nodes, such as the existence of differential development languages, inconsistent interface standards, etc., there are various problems in direct interaction between the same service nodes, so that the adapter can be adopted to unify the interface standards of each service node. The service interaction between the adapter and the service node is operated by means of a Dubbo (a high-performance and lightweight service framework) interface provided by the service node itself. The adapter may include adaptations corresponding to a variety of business organization types. The service organization type corresponding to the adapter included in the service node may be the same as the service organization type corresponding to the service node. The adapter provides an external interface facing to the outside of the service node and calling related services in the service node, such as a Dubbo interface, and provides an internal interface facing to the service node, so that data passing through the adapter can be converted from the data type corresponding to the external interface to the data type corresponding to the internal interface, or from the data type corresponding to the internal interface to the data type corresponding to the internal and external interfaces. And receiving the service request through the external interface, and converting the data type of the service request into the data type corresponding to the internal interface to realize the interaction with the service node.
The standardized external interface may be obtained by setting in advance, for example, the standardized external interface may include a Dubbo interface. Of course, in practical applications, the external interface may also be other types of standardized interfaces, which is not specifically limited in this disclosure.
For example, when the business organization type includes operation, supervision, monitoring, cloud and advertisement, the adapter may include six types of operation adapter, supervision adapter, monitoring adapter, cloud adapter and advertisement adapter. The external interfaces of the six types of adapters described above may each be Dubbo. The supervision adapter may further include a CMDB (Configuration Management Database), a plugin interface package, and an Open API (Open platform) interface package, which are configured to interact with the supervision-type service node; the operation adapter can also be provided with a Mybatis (a persistent layer framework) -plugin interface packet which performs internal interaction with the operation type service node; the operation and maintenance adapter can directly operate the service node according to the service request, and the operation and maintenance adapter can also be provided with a REST (REpresentational State Transfer)/HTTP interface for performing internal interaction with the operation and maintenance type service node, and can also perform operation and maintenance on the REST/HTTP interface through an Httpclient (client programming toolkit supporting the HTTP protocol); the advertisement adapter provides instant message services such as notification and advertisement for the service node, and the advertisement adapter can also be provided with an Open API interface packet which is internally interacted with the service node of the advertisement type; the cloud system adapter has a service flow basically consistent with other adapters, the cloud system adapter can also be provided with a REST API interface for carrying out internal interaction with cloud type service nodes, as the response time of part of services is longer, such as creation of a cloud host, modification of asynchronous interfaces of the cloud host and the like, the processing of a patrol thread is introduced in the cloud adapter except for basic function design, after the relevant interfaces of the adapter are triggered externally, the thread is started internally, real-time monitoring and checking are carried out on execution results on a cloud platform, and after the final processing is finished, local database records of a bus are refreshed and relevant prompts are given.
The routing node may store a correspondence between the identifier of the service node and the identifier of the adapter, so that the corresponding adapter identifier may be obtained from the correspondence between the identifier of the service node and the identifier of the adapter according to the identifier of the second service node carried in the service request, and the adapter corresponding to the adapter identifier is the target adapter. When the target adapter is determined, a service request may be sent to the target adapter corresponding to the second service node.
The adapter identifier may be information identifying the adapter, and for example, the adapter identifier may include a number or a name of the adapter.
It should be noted that, the identifiers of the plurality of service nodes and the adapter identifiers corresponding to the identifiers of the service nodes may be received in advance, and the identifiers of the plurality of service nodes and the adapter identifiers corresponding to the identifiers of the service nodes are stored in the correspondence between the identifiers of the service nodes and the adapter identifiers.
Optionally, the data transmission system includes a plurality of routing nodes, and each routing node corresponds to a different service organization type, and correspondingly, the operation of receiving the service request sent by the first service node in step 101 may include: and receiving a service request which is sent by the first service node and is consistent with the service organization type corresponding to the routing node.
Because the service cluster may include a plurality of service organization types, and the routing node may receive a plurality of service requests corresponding to different service organization types, in order to perform accurate matching and distribution on different service requests and improve data transmission efficiency, the routing node corresponding to different service organization types may receive service requests of the same service organization type.
The routing node can be obtained by setting in advance according to different service organization types.
For example, when the service organization type includes operation, operation and maintenance, supervision, monitoring, cloud, and advertisement, six types of routing nodes, such as an operation routing node, an operation and maintenance routing node, a supervision routing node, a monitoring routing node, a cloud routing node, and an advertisement routing node, may be correspondingly set.
Optionally, the service request further includes timing information, and the operation of sending the service request to the second service node in the at least one service cluster in step 102 may include: and sending the service request to a second service node in at least one service cluster according to the period indicated by the timing information.
Since data in the service node may change, such as adding new data or modifying data, in order to ensure timeliness and accuracy of data transmission, a service request may be periodically sent to the second service node through the timing information, so as to acquire service data periodically acquired from the second service node.
The timing information is used for indicating the period duration of the service request sent to the second service node, and the timing information can be obtained by presetting or receiving the submission of a user.
The timing task may be set according to the timing information, and if the current time matches the time indicated by the timing information, the timing task is triggered, thereby sending the service request to the second service node in the at least one service cluster.
Wherein the timed tasks may be set by a timing component, which may comprise Quartz Job (a Job scheduling component). Of course, in practical applications, the operation of periodically sending the service request to the second service node through the timing information may be implemented through other timing components or other manners.
Fig. 2 is a schematic flow chart of a data transmission method based on an organization structure according to the present disclosure. The method can be applied to a second service node in a data transmission system, the data transmission system comprises at least one service cluster and a routing node, each service cluster comprises a plurality of service nodes, each service node included in the same service cluster corresponds to different service organization types, and at least one service cluster is connected with the routing node through a service bus. It should be noted that the organization structure-based data transmission method according to the present disclosure is not limited by the specific sequence shown in fig. 2 and described below, and it should be understood that, in other embodiments, the sequence of some steps in the organization structure-based data transmission method according to the present disclosure may be interchanged according to actual needs, or some steps may be omitted or deleted. The flow shown in fig. 2 will be explained in detail below.
Step 201, a service request sent by a first service node is received through a routing node, the service request carries an identifier of a second service node, and the first service node is any service node in at least one service cluster.
In order to realize data intercommunication among service nodes in each service cluster, improve the utilization rate of resources and reduce the use cost of the resources, the second boundary node can receive a service request of any service node in any service cluster through the routing node.
The second service node may receive a service request from the first service node sent by the routing node over the service bus.
Step 202, acquiring service data based on the service request.
In order to implement data intercommunication between service nodes in each service cluster by performing correspondence on the service request of the first service node, the second service node may obtain corresponding service data according to the service request from the first service node.
The second service node may perform corresponding service processing according to the service request, for example, perform data query, storage, or other service operations, to obtain service data after service processing.
Step 203, the service data is sent to the first service node through the routing node.
The second service node may send the service data to the routing node via a service bus, which sends the service data to the first service node via the service bus.
In the embodiment of the disclosure, the data transmission system includes a routing node and at least one service cluster, each service cluster includes a plurality of service nodes, and each service node included in the same service cluster corresponds to a different service organization type, wherein at least one service cluster is connected to the routing node through a service bus, and a second service node can receive a service request sent by any first service node in the at least one service cluster through the routing node, acquire the service request based on the service request, and send the service data to the first service node through the routing node, thereby implementing data intercommunication between each service cluster and each service node in the data transmission system, improving resource utilization rate, and reducing cost.
Optionally, the service node includes an adapter, and accordingly, the operation of receiving, by the routing node, the service request sent by the first service node in step 201 may include: and receiving the service request through the target adapter corresponding to the identifier of the second service node. Correspondingly, the second service node may interact with the target adapter, thereby performing service processing according to the service request.
Since the service nodes may have different service organization types and thus need to interact in different ways, the second service node may send a service request through a corresponding target adapter in order to obtain reliability of the relevant service from the second service node.
Optionally, the adapter is provided with a standardized external interface, and correspondingly, the operation of receiving the service request through the target adapter corresponding to the identifier of the second service node in the foregoing may include: the service request is received through a standardized external interface of the target adapter.
In order to avoid the problem, an adapter included in the service node may be provided with a standardized external interface, so that the service request is received through the standardized external interface of the target adapter.
The adapter can convert the service request from the data type corresponding to the standardized interface to the data type corresponding to the internal interface facing the service node, thereby realizing the conversion between the external interface and the internal interface facing the service node.
Fig. 3 is a schematic flow chart of a data transmission method based on an organization structure according to the present disclosure. The method can be applied to interaction between service nodes and routing nodes in a data transmission system, wherein the data transmission system comprises at least one service cluster and the routing nodes, each service cluster comprises a plurality of service nodes, each service node in the same service cluster corresponds to different service organization types, and at least one service cluster is connected with the routing nodes through a service bus. It should be noted that the organization structure-based data transmission method according to the present disclosure is not limited by the specific sequence shown in fig. 3 and described below, and it should be understood that, in other embodiments, the sequence of some steps in the organization structure-based data transmission method according to the present disclosure may be interchanged according to actual needs, or some steps may be omitted or deleted. The flow shown in fig. 3 will be explained in detail below.
Step 301, the first service node sends a service request to the routing node, where the service request carries an identifier of the second service node.
The first service node may send a service request from the routing node over the service bus.
Optionally, the first service node may send the service request to the routing node corresponding to the service organization type according to the service organization type corresponding to the service request.
Step 302, the routing node receives a service request sent by the first service node.
The manner in which the routing node receives the service request sent by the first service node may be the same as that in step 101, and is not described in detail here.
Step 303, the routing node sends a service request to a second service node in the at least one service cluster.
Optionally, the routing node may obtain, according to the identifier of the second service node carried in the service request, an adapter identifier corresponding to the identifier of the second service node from a correspondence between the identifier of the service node and the adapter identifier, where the adapter corresponding to the adapter identifier is a target adapter, and thus send the service request to the target adapter corresponding to the identifier of the second service node.
Step 304, the second service node receives the service request.
Alternatively, the second service node may receive a service request from the first service node through the target adapter.
Step 305, the second service node obtains service data based on the service request.
The manner of acquiring the service data by the second service node based on the service request may be the same as that in step 202, and is not described in detail here.
Step 306, the second service node sends the service data to the routing node.
Wherein the second service node may send the service data to the routing node via the service bus.
Step 307, the routing node sends the service data to the first service node.
The routing node may send the service data to the first service node via the service bus.
In the disclosed embodiment, the data transmission system includes a routing node and at least one service cluster, each service cluster includes a plurality of service nodes, each service node included in the same service cluster corresponds to a different service organization type, wherein, at least one service cluster is connected with the routing node through a service bus, a first service node can send a service request to the routing node, the routing node can receive the service request sent by the first service node and send the service request to a second service node in at least one service cluster according to an identifier of the second service node carried by the service request, the second service node obtains the service request based on the service request and sends the service data to the first service node through the routing node, thereby realizing data intercommunication between each service cluster and each service node in the data transmission system, the utilization rate of resources is improved, and the cost is reduced.
Referring to fig. 4, a functional block diagram of a data transmission apparatus 400 based on an organization architecture according to the present disclosure is shown. The data transmission apparatus 400 based on the organization architecture is applied to a routing node in a data transmission system, the data transmission system further includes at least one service cluster, each service cluster includes a plurality of service nodes, and each service node included in the same service cluster corresponds to a different service organization type, where it needs to be explained that at least one service cluster is connected with the routing node through a service bus, and the basic principle and the generated technical effects of the data transmission apparatus 400 based on the organization architecture provided in this embodiment are the same as those of the corresponding method embodiments, and for brief description, no mention part in this embodiment may refer to corresponding contents in the method embodiments. The data transmission apparatus 400 based on the organization architecture includes a receiving module 401, a first sending module 402 and a second sending module 403.
A receiving module 401, configured to receive a service request sent by a first service node, where the service request carries an identifier of a second service node, and the first service node is any service node in at least one service cluster;
a first sending module 402, configured to send a service request to the second service node in at least one service cluster;
a second sending module 403, configured to receive service data fed back by the second service node according to the service request, and send the service data to the first service node.
Optionally, the service node comprises an adapter;
the first sending module 402 is specifically configured to:
and sending the service request to a target adapter corresponding to the identifier of the second service node.
Optionally, the adapter is provided with a standardized external interface;
the first sending module 402 is specifically configured to:
and sending the service request to the target adapter corresponding to the identifier of the second service node through the standardized external interface of the target adapter.
Optionally, the data transmission system includes a plurality of the routing nodes, and each routing node corresponds to a different service organization type;
the receiving module 401 is specifically configured to:
and receiving a service request which is sent by the first service node and is consistent with the service organization type corresponding to the routing node.
Optionally, the service request further includes timing information;
the first sending module 402 is specifically configured to:
and sending the service request to the second service node in at least one service cluster according to the period indicated by the timing information.
The above-mentioned apparatus is used for executing the method provided by the foregoing embodiment, and the implementation principle and technical effect are similar, which are not described herein again.
Fig. 5 is a functional block diagram of a data transmission apparatus 500 based on an organization structure according to the present disclosure. The data transmission apparatus 500 based on the organization architecture is applied to a second service node in a data transmission system, where the data transmission system includes at least one service cluster and a routing node, each service cluster includes a plurality of service nodes, and each service node included in the same service cluster corresponds to a different service organization type, where at least one service cluster is connected to the routing node through a service bus. It should be noted that the basic principle and the resulting technical effect of the data transmission apparatus 500 based on the organization structure provided in the present embodiment are the same as those of the corresponding method embodiments described above, and for a brief description, reference may be made to corresponding contents in the method embodiments for a part not mentioned in the present embodiment. The data transmission apparatus 500 based on the organization architecture includes a receiving module 501, an obtaining module 502 and a sending module 503.
A receiving module 501, configured to receive, through a routing node, a service request sent by a first service node, where the service request carries an identifier of the second service node, and the first service node is any service node in at least one service cluster;
an obtaining module 502, configured to obtain service data based on the service request;
a sending module 503, configured to send the service data to the first service node through the routing node.
Optionally, the service node comprises an adapter;
the receiving module 501 is specifically configured to:
and receiving the service request through the target adapter corresponding to the identifier of the second service node.
Optionally, the adapter is provided with a standardized external interface;
the receiving module 501 is specifically configured to:
the service request is received through a standardized external interface of the target adapter.
The above-mentioned apparatus is used for executing the method provided by the foregoing embodiment, and the implementation principle and technical effect are similar, which are not described herein again.
These above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), among others. For another example, when one of the above modules is implemented in the form of a Processing element scheduler code, the Processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
Fig. 6 is a schematic diagram of functional modules of a routing device according to the present disclosure. The routing device may include a processor 601, a computer-readable storage medium 602 and a bus 603, the computer-readable storage medium 602 stores machine-readable instructions executable by the processor 601, when the routing device is operated, the processor 601 and the computer-readable storage medium 602 communicate through the bus 603, and the processor 601 executes the machine-readable instructions, so as to implement the above-mentioned method embodiments. The specific implementation and technical effects are similar, and are not described herein again.
Optionally, the present disclosure also provides a computer-readable storage medium, on which a computer program is stored, and the computer program is executed by a processor when executed, so as to implement the above method embodiments.
Please refer to fig. 7, which is a schematic diagram of a functional module of a server according to the present disclosure. The routing device may include a processor 701, a computer-readable storage medium 702 and a bus 703, the computer-readable storage medium 702 stores machine-readable instructions executable by the processor 701, when the server runs, the processor 701 communicates with the computer-readable storage medium 702 through the bus 703, and the processor 701 executes the machine-readable instructions, so as to implement the above-mentioned method embodiments. The specific implementation and technical effects are similar, and are not described herein again.
Optionally, the present disclosure also provides a computer-readable storage medium, on which a computer program is stored, and the computer program is executed by a processor when executed, so as to implement the above method embodiments.
In the several embodiments provided in the present disclosure, it should be understood that the above-described apparatus embodiments are merely illustrative, and the disclosed apparatus and method may be implemented in other ways. For example, the division of the unit is only a logical function division, and in actual implementation, there may be another division manner, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or may not be executed, for example, each unit may be integrated into one processing unit, each unit may exist alone physically, or two or more units may be integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure, and various modifications and changes may be made to the present disclosure by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present disclosure should be included in the protection scope of the present disclosure.

Claims (8)

1. A data transmission method based on an organization architecture is characterized in that the method is applied to a routing node in a data transmission system, the data transmission system further comprises at least one service cluster, each service cluster comprises a plurality of service nodes, each service node included in the same service cluster corresponds to a different service organization type, at least one service cluster is connected with the routing node through a service bus, each service node comprises an adapter, the adapter provides a standardized external interface, and the routing node stores the corresponding relation between the identification of the service node and the identification of the adapter, the method comprises the following steps:
receiving a service request sent by a first service node, wherein the service request carries an identifier of a second service node, and the first service node is any service node in at least one service cluster;
sending a service request to the second service node in at least one of the service clusters;
receiving service data fed back by the second service node according to the service request, and sending the service data to the first service node;
wherein the service request includes timing information, and the sending the service request to the second service node in at least one of the service clusters includes: and sending the service request to the target adapter corresponding to the identifier of the second service node through a standardized external interface of the target adapter according to the period indicated by the timing information.
2. The method of claim 1, wherein said data transmission system includes a plurality of said routing nodes, and each of said routing nodes corresponds to a different traffic organization type;
the receiving of the service request sent by the first service node includes:
and receiving a service request which is sent by the first service node and is consistent with the service organization type corresponding to the routing node.
3. A data transmission method based on an organization architecture is applied to a second service node in a data transmission system, the data transmission system comprises at least one service cluster and a routing node, each service cluster comprises a plurality of service nodes, each service node included in the same service cluster corresponds to a different service organization type, at least one service cluster is connected with the routing node through a service bus, each service node comprises an adapter, the adapter provides a standardized external interface, and the routing node stores the corresponding relation between the identification of the service node and the identification of the adapter, the method comprises the following steps:
receiving a service request sent by a first service node through a routing node, wherein the service request carries an identifier of a second service node, and the first service node is any service node in at least one service cluster;
acquiring service data based on the service request;
sending the service data to the first service node through the routing node;
wherein, the service request includes timing information, and the receiving of the service request sent by the first service node by the routing node includes: and receiving the service request through a standardized external interface of the target adapter corresponding to the identifier of the second service node according to the period indicated by the timing information.
4. A data transmission device based on an organization architecture is applied to a routing node in a data transmission system, the data transmission system further includes at least one service cluster, each service cluster includes a plurality of service nodes, each service node included in the same service cluster corresponds to a different service organization type, wherein at least one service cluster is connected with the routing node through a service bus, the service node includes an adapter, the adapter provides a standardized external interface, the routing node stores a corresponding relationship between an identifier of the service node and an identifier of the adapter, and the device includes:
a receiving module, configured to receive a service request sent by a first service node, where the service request carries an identifier of a second service node, and the first service node is any service node in at least one service cluster;
a first sending module, configured to send a service request to the second service node in at least one of the service clusters;
a second sending module, configured to receive service data fed back by the second service node according to the service request, and send the service data to the first service node;
the first sending module is further specifically configured to send the service request to a target adapter corresponding to the identifier of the second service node through a standardized external interface of the target adapter according to the period indicated by the timing information.
5. A data transmission device based on an organization architecture is applied to a second service node in a data transmission system, the data transmission system includes at least one service cluster and a routing node, each service cluster includes a plurality of service nodes, each service node included in the same service cluster corresponds to a different service organization type, wherein at least one service cluster is connected with the routing node through a service bus, the service node includes an adapter, the adapter provides a standardized external interface, and the routing node stores a corresponding relationship between an identifier of the service node and an identifier of the adapter, the device includes:
a receiving module, configured to receive, through a routing node, a service request sent by a first service node, where the service request carries an identifier of a second service node, and the first service node is any service node in at least one service cluster;
the acquisition module is used for acquiring service data based on the service request;
a sending module, configured to send the service data to the first service node through the routing node;
the receiving module is specifically further configured to receive the service request through a standardized external interface of the target adapter corresponding to the identifier of the second service node according to the period indicated by the timing information.
6. A routing device, comprising: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating over the bus when the routing device is operating, the processor executing the machine-readable instructions to perform the steps of the method of any of claims 1-2.
7. A server, comprising: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating over the bus when the server is running, the processor executing the machine-readable instructions to perform the steps of claim 3.
8. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, is adapted to carry out the steps of the method according to any one of claims 1-3.
CN201910884270.6A 2019-09-18 2019-09-18 Data transmission method and device, routing equipment, server and storage medium Active CN110581893B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910884270.6A CN110581893B (en) 2019-09-18 2019-09-18 Data transmission method and device, routing equipment, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910884270.6A CN110581893B (en) 2019-09-18 2019-09-18 Data transmission method and device, routing equipment, server and storage medium

Publications (2)

Publication Number Publication Date
CN110581893A CN110581893A (en) 2019-12-17
CN110581893B true CN110581893B (en) 2022-05-06

Family

ID=68811528

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910884270.6A Active CN110581893B (en) 2019-09-18 2019-09-18 Data transmission method and device, routing equipment, server and storage medium

Country Status (1)

Country Link
CN (1) CN110581893B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111585896B (en) * 2020-03-30 2021-07-09 华为技术有限公司 Data forwarding method and device and readable storage medium
CN113515369B (en) * 2021-04-23 2022-03-29 深圳希施玛数据科技有限公司 Data processing method, system, terminal and storage medium
CN113535432B (en) * 2021-07-20 2023-12-15 西安力传智能技术有限公司 Data distribution method and device, electronic equipment and storage medium
CN114374635B (en) * 2021-12-14 2023-12-05 阿里巴巴(中国)有限公司 Route detection method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104580520A (en) * 2015-01-29 2015-04-29 广州华多网络科技有限公司 Interactive business operating method and device
CN105357329A (en) * 2015-10-12 2016-02-24 广州市百果园网络科技有限公司 Business data transmission method, device and system for use in cross-Internet data center (IDC) network environment
CN105721398A (en) * 2014-12-04 2016-06-29 深圳市金蝶中间件有限公司 Data access method and device
CN106502769A (en) * 2016-09-30 2017-03-15 华为技术有限公司 Distributed transaction processing method, apparatus and system
CN107707943A (en) * 2017-06-29 2018-02-16 贵州白山云科技有限公司 A kind of method and system for realizing cloud service fusion
CN109714183A (en) * 2017-10-26 2019-05-03 阿里巴巴集团控股有限公司 Data processing method and device in a kind of cluster

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9300576B2 (en) * 2010-05-03 2016-03-29 Pluribus Networks Inc. Methods, systems, and fabrics implementing a distributed network operating system
CN103209090A (en) * 2012-01-17 2013-07-17 中兴通讯股份有限公司 Remote network management system and business operation method thereof
CN109815013A (en) * 2019-01-02 2019-05-28 深圳壹账通智能科技有限公司 Business data processing method, device, computer equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105721398A (en) * 2014-12-04 2016-06-29 深圳市金蝶中间件有限公司 Data access method and device
CN104580520A (en) * 2015-01-29 2015-04-29 广州华多网络科技有限公司 Interactive business operating method and device
CN105357329A (en) * 2015-10-12 2016-02-24 广州市百果园网络科技有限公司 Business data transmission method, device and system for use in cross-Internet data center (IDC) network environment
CN106502769A (en) * 2016-09-30 2017-03-15 华为技术有限公司 Distributed transaction processing method, apparatus and system
CN107707943A (en) * 2017-06-29 2018-02-16 贵州白山云科技有限公司 A kind of method and system for realizing cloud service fusion
CN109714183A (en) * 2017-10-26 2019-05-03 阿里巴巴集团控股有限公司 Data processing method and device in a kind of cluster

Also Published As

Publication number Publication date
CN110581893A (en) 2019-12-17

Similar Documents

Publication Publication Date Title
CN110581893B (en) Data transmission method and device, routing equipment, server and storage medium
US11615087B2 (en) Search time estimate in a data intake and query system
US11580107B2 (en) Bucket data distribution for exporting data to worker nodes
US11321321B2 (en) Record expansion and reduction based on a processing task in a data intake and query system
US11593377B2 (en) Assigning processing tasks in a data intake and query system
US11341131B2 (en) Query scheduling based on a query-resource allocation and resource availability
US11442935B2 (en) Determining a record generation estimate of a processing task
CN108132830B (en) Task scheduling method, device and system
CN108234670B (en) Zookeeper and netty-based distributed remote calling method
US10338958B1 (en) Stream adapter for batch-oriented processing frameworks
CN111091429A (en) Electronic bill identification distribution method and device and electronic bill generation system
CN110677462B (en) Access processing method, system, device and storage medium for multi-block chain network
CN112243032B (en) Service calling method and system based on access gateway
CN107133231B (en) Data acquisition method and device
CN109783562B (en) Service processing method and device
CN111861482A (en) Block chain account checking method and system
CN111124589A (en) Service discovery system, method, device and equipment
CN112199353A (en) Data processing method and electric power customer service platform
CN109525590A (en) The transmission method and device of data packet
WO2022156542A1 (en) Data access method and system, and storage medium
CN109586970B (en) Resource allocation method, device and system
CN110555064A (en) data service system and method for insurance business
CN111913784B (en) Task scheduling method and device, network element and storage medium
CN113055378B (en) Protocol conversion platform for industrial internet identification analysis and data docking method
CN112491943A (en) Data request method, device, storage medium and electronic equipment

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
GR01 Patent grant
GR01 Patent grant