CN111586135A - Cloud deployment micro-service application system and data transmission method, device and equipment thereof - Google Patents

Cloud deployment micro-service application system and data transmission method, device and equipment thereof Download PDF

Info

Publication number
CN111586135A
CN111586135A CN202010360040.2A CN202010360040A CN111586135A CN 111586135 A CN111586135 A CN 111586135A CN 202010360040 A CN202010360040 A CN 202010360040A CN 111586135 A CN111586135 A CN 111586135A
Authority
CN
China
Prior art keywords
micro
service application
information
sending
data transmission
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
CN202010360040.2A
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.)
OneConnect Smart Technology Co Ltd
OneConnect Financial Technology Co Ltd Shanghai
Original Assignee
OneConnect Financial Technology Co Ltd Shanghai
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 OneConnect Financial Technology Co Ltd Shanghai filed Critical OneConnect Financial Technology Co Ltd Shanghai
Priority to CN202010360040.2A priority Critical patent/CN111586135A/en
Publication of CN111586135A publication Critical patent/CN111586135A/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/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
    • 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/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention relates to artificial intelligence, and provides a cloud deployment micro-service application system and a data transmission method, a device and equipment thereof, wherein the method comprises the following steps: receiving calling information sent by a first micro-service application; determining a second micro service application which needs to be called by the first micro service application according to the calling information; sending the calling information to the second micro-service application, and feeding back the first sending success information to the first micro-service application when the sending is successful; receiving reply information sent by the second micro service application, wherein the reply information is obtained after the second micro service application processes the calling information; and sending the reply information back to the first micro-service application, and feeding back second sending success information to the second micro-service application when the sending is successful. In addition, the invention also relates to a block chain technology, and information can be stored in the block chain nodes. The method and the system reduce the dependency relationship among the micro-service applications in the cloud deployment micro-service application system, and reduce the obstacles generated by the data difference of the micro-service applications to the micro-service system.

Description

Cloud deployment micro-service application system and data transmission method, device and equipment thereof
Technical Field
The invention relates to the technical field of artificial intelligence cloud services, in particular to a cloud deployment micro-service application system and a data transmission method, device and equipment thereof.
Background
With the gradual maturity of micro service technology, various application systems are also developing towards micro service, and the micro service system deployed at the cloud end is becoming the mainstream. Microservice technology provides a lightweight solution for a variety of applications. In an overall application system, a business process can be split and degraded to a plurality of specific applications, and the split specific applications cooperate to complete the whole business, so that the specific applications form a relationship of mutual calling and strong dependence. However, as the service complexity increases, the number of different specific applications in the entire micro service system also increases, and each specific application also increases or decreases the application service instance according to the actual service throughput, so that the complexity of the entire micro service system also increases due to the strong dependency relationship between the applications.
Furthermore, the inter-invocation between specific applications necessarily involves the transmission and storage of data. Due to the difference of developers of specific applications, the complexity of the micro service system is also increased due to the data difference between the specific applications. If the point-to-point calling transmission mode among the applications is still adopted, when different types of applications exist in the system at the same time, different data forms of the applications become a barrier, developers need to pay constant attention, and great efforts are invested to eliminate the data form difference among the applications. With the increase of service complexity, different external interfaces unifying the applications have the possibility of data difference.
In summary, a cloud deployment micro-service application system, a data transmission method, an apparatus, and a device thereof are provided to reduce dependency relationships among micro-service applications in the cloud deployment micro-service application system, and reduce obstacles generated by data differences among different micro-service applications to the micro-service system, which become technical problems urgently needed to be solved at present.
Disclosure of Invention
The invention aims to provide a cloud deployment microservice application system, a data transmission method, a data transmission device and data transmission equipment thereof, which are used for solving the technical problems in the prior art.
On one hand, in order to achieve the above purpose, the invention provides a data transmission method for a cloud deployment micro-service application system.
The data transmission method of the cloud deployment micro-service application system comprises the following steps: receiving calling information sent by a first micro-service application, wherein the calling information is used for calling the micro-service application; determining a second micro service application which needs to be called by the first micro service application according to the calling information; sending the calling information to the second micro-service application, and feeding back the first sending success information to the first micro-service application when the sending is successful; receiving reply information sent by the second micro service application, wherein the reply information is obtained after the second micro service application processes the calling information; and sending the reply information back to the first micro-service application, and feeding back second sending success information to the second micro-service application when the sending is successful.
Further, the data transmission method of the cloud deployment micro-service application system further comprises the following steps: when the calling information is sent to the second micro service application and fails to be sent, feeding back the first sending failure information to the first micro service application; storing the calling information; and starting a retransmission mechanism, and sending the stored calling information to the second micro-service application.
Further, the step of feeding back the first sending success information to the first micro service application specifically includes: feeding back first sending success information to the first micro-service application through the synchronous notification; the data transmission method of the cloud deployment micro-service application system further comprises the following steps: and when the stored calling information is sent to the second micro-service application successfully, feeding back the first sending success information to the first micro-service application through asynchronous notification.
Furthermore, the calling information and the reply information adopt a uniform data format.
Further, the unified data format comprises a data header, a data must input item and a data body, wherein the data header comprises identification information of the source micro-service application, identification information of the target micro-service application and data identification information, the data must input item is a service field for defining data transmission between the source micro-service application and the target micro-service application, and the data body is the detailed content of the transmitted data; the step of determining a second micro service application required to be called by the first micro service application according to the calling information comprises the following steps: and analyzing the calling information to obtain the identification information of the target micro-service application, wherein the micro-service application identified by the identification information of the target micro-service application is a second micro-service application.
Further, the step of determining a second micro service application required to be called by the first micro service application according to the calling information includes: determining that the first micro-service application is a micro-service application subscribing to a broadcast channel; and determining all micro-service applications subscribed to the broadcast channel, wherein the second micro-service application is included in all the micro-service applications subscribed to the broadcast channel.
On the other hand, in order to achieve the above purpose, the invention provides a data transmission device for a cloud deployment micro-service application system.
The data transmission device of the cloud deployment micro-service application system comprises: the first receiving module is used for receiving calling information sent by a first micro-service application, wherein the calling information is used for calling the micro-service application; the first processing module is used for determining a second micro-service application which needs to be called by the first micro-service application according to the calling information; the first sending module is used for sending the calling information to the second micro-service application and feeding back the first sending success information to the first micro-service application when the calling information is successfully sent; the second receiving module is used for receiving reply information sent by the second micro service application, wherein the reply information is obtained after the second micro service application processes the calling information; and the second sending module is used for sending the reply information back to the first micro-service application and feeding back second sending success information to the second micro-service application when the sending is successful.
In another aspect, to achieve the above object, the present invention provides a cloud deployment microservice application system.
The cloud deployment micro-service application system comprises a plurality of micro-service applications and a data transmission device for realizing data transmission among the micro-service applications, wherein the plurality of micro-service applications comprise a first micro-service application and a second micro-service application, the first micro-service application is used for sending calling information to the data transmission device, and the calling information is used for calling the second micro-service application; the data transmission device is used for receiving and analyzing the calling information, then sending the calling information to the second micro-service application, and feeding back the first sending success information to the first micro-service application when the sending is successful; the first micro-service application is used for receiving first sending success information; the second micro-service application is used for receiving and processing the calling information to obtain reply information, and then sending the reply information to the data transmission device; the data transmission device is used for receiving and analyzing the reply information, then sending the reply information to the first micro service application, and feeding back second sending success information to the second micro service application when the sending is successful; the first microservice application is configured to receive a reply message.
In another aspect, to achieve the above object, the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and running on the processor, and when the processor executes the computer program, the steps of the method are implemented.
In still another aspect, to achieve the above object, the present invention further provides a computer-readable storage medium including a stored data area storing data created according to use of a blockchain node and a stored program area storing a computer program, wherein the computer program when executed by a processor implements the steps of the above method.
According to the cloud deployment micro-service application system and the data transmission method, device and equipment thereof, the data transmission device is deployed in the cloud deployment micro-service application system, data transmission is carried out between micro-service applications in the cloud deployment micro-service application system through the data transmission device, namely, calling information, reply information and response results of the calling information and the reply information among the micro-service applications are all sent through the data transmission device, the dependency relationship among the micro-service applications is reduced, meanwhile, as the information is transferred through the data transmission device, the format of the information can be processed in the data transmission device, and obstacles generated by data differences among different micro-service applications to the micro-service system are reduced.
Drawings
Fig. 1 is a flowchart of a data transmission method of a cloud-deployed micro-service application system according to an embodiment of the present invention;
fig. 2 is a block diagram of a data transmission apparatus of a cloud deployment microservice application system according to a second embodiment of the present invention;
fig. 3 is a block diagram of a cloud deployment microservice application system according to a third embodiment of the present invention; and
fig. 4 is a hardware configuration diagram of a computer device according to a fourth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the 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.
Example one
The embodiment of the present invention provides a data transmission method for a cloud-deployed micro-service application system, where a data transmission device is deployed in the cloud-deployed micro-service application system, and data transmission is performed between micro-service applications in the cloud-deployed micro-service application system through the data transmission device, specifically, in this embodiment, any two micro-service applications in the cloud-deployed micro-service application system, that is, a first micro-service application and a second micro-service application, are taken as examples to describe a data transmission method for the cloud-deployed micro-service application system, and meanwhile, an execution subject of the data transmission method is the data transmission device, fig. 1 is a flowchart of the data transmission method for the cloud-deployed micro-service application system according to an embodiment of the present invention, and as shown in fig. 1, the data transmission method specifically includes the following steps S101 to S106.
Step S101: and receiving calling information sent by the first micro-service application.
When the first micro-service application calls the second micro-service application, the calling information is sent to the data transmission device, wherein the calling information is used for calling the micro-service application correspondingly, and the data transmission device receives the calling information sent by the first micro-service application.
Step S102: a second microservice application invoked by the invocation information is determined.
Namely, the second micro-service application which needs to be called by the first micro-service application is determined according to the calling information.
After receiving the calling information, the data transmission apparatus needs to determine the micro service application called by the calling information, and in this embodiment, the micro service application called by the calling information is defined as the second micro service application. In step S102, the second micro service application may be determined in the following two ways.
The first method comprises the following steps:
the calling information includes a header, wherein the header includes identification information of the source microservice application and identification information of the target microservice application. In this embodiment, the source micro service application, i.e., the first micro service application, corresponding to the calling information, and the target micro service application, i.e., the second micro service application, are the micro service applications for receiving the information.
In step S102, the data header of the calling information is parsed to obtain the identification information of the target micro-service application, wherein in the calling information, the micro-service application identified by the identification information of the target micro-service application is the second micro-service application.
And the second method comprises the following steps:
the output transmission system sets a data transmission mode of the broadcast, and each micro-service application can subscribe to a broadcast channel. The first micro service application and the second micro service application are micro service applications subscribing to the same broadcast channel.
In step S102, after receiving the call information, the data transmission apparatus first determines whether the first micro service application initiating the call information is a micro service application subscribing to a broadcast channel according to the port receiving the call information, and determines all the micro service applications subscribing to the broadcast channel if the first micro service application is the micro service application subscribing to the broadcast channel, where all the micro service applications subscribing to the broadcast channel include the second micro service application.
Step S103: and sending the calling information to the second micro-service application, and feeding back the first sending success information to the first micro-service application when the sending is successful.
In any of the above manners, the second microservice application is determined, and after the determination, the call information is sent to the second microservice application. If the first micro-service application is a micro-service application subscribed to a broadcast channel, the calling information is sent to all micro-service applications subscribed to the broadcast channel.
After the data transmission device sends the calling information to the second micro-service application, if the calling information is successfully sent, the first sending success information is fed back to the first micro-service application; and if the transmission fails, feeding back first transmission failure information to the first micro-service application.
Optionally, the first microservice application starts a thread, sends the call information to the data transmission device, and ends the thread after receiving the first sending success information or the second sending failure information.
The data transmission device can be used for converting the format of the calling information into a data format which can be recognized by the second micro-service application so as to reduce the obstacle of data difference between different micro-service applications to the micro-service system.
Step S104: and receiving the reply information sent by the second micro-service application.
After the data transmission device successfully sends the calling information to the second micro service application, the second micro service application processes the calling information to obtain information responding to the calling information, the information is defined as reply information, and then the reply information is sent to the data transmission device so that the data transmission device receives the reply information.
Step S105: and determining the first micro-service application replied by the reply message.
Optionally, when the data transmission device receives a plurality of reply messages, it needs to determine the micro service application replied by the reply messages, in this embodiment, the micro service application replied by the reply messages is the first micro service application. In step S105, the first microservice application can be determined in the following two ways.
The first method comprises the following steps:
the reply information includes a header, wherein the header includes identification information of the source microservice application and identification information of the target microservice application. In this embodiment, the source micro service application corresponding to the reply information is also the first micro service application, and the target micro service application is also the second micro service application.
In step S105, the data header of the reply message is parsed to obtain the identification information of the target micro service application, wherein in the reply message, the micro service application identified by the identification information of the target micro service application is the first micro service application.
And the second method comprises the following steps:
the output transmission system sets a data transmission mode of the broadcast, and each micro-service application can subscribe to a broadcast channel. The first micro service application and the second micro service application are micro service applications subscribing to the same broadcast channel.
In step S105, after receiving the reply message, the data transmission device first determines whether the second micro service application initiating the reply message is the micro service application subscribing to the broadcast channel according to the port receiving the reply message, and if the second micro service application is the micro service application subscribing to the broadcast channel, determines all the micro service applications subscribing to the broadcast channel, where all the micro service applications subscribing to the broadcast channel include the first micro service application.
Step S106: and sending the reply information back to the first micro-service application, and feeding back second sending success information to the second micro-service application when the sending is successful.
No matter which way the first micro service application is determined, after the determination, the reply message is sent to the first micro service application. If the second micro-service application is a micro-service application subscribed to the broadcast channel, sending the reply information to all micro-service applications subscribed to the broadcast channel.
After the data transmission device sends the reply information back to the first micro-service application, if the sending is successful, the data transmission device feeds back second sending success information to the second micro-service application; and if the transmission fails, feeding back second transmission failure information to the second micro-service application.
Optionally, the second microservice application starts a thread, processes the call information to obtain reply information, sends the reply information to the data transmission device, and ends the thread after receiving the second sending success information or the second sending failure information.
The data transmission device can be used for setting format conversion of the reply message and converting the format conversion into a data format which can be recognized by the first micro-service application so as to reduce the obstacle of data difference between different micro-service applications to the micro-service system.
By adopting the data transmission method of the cloud-deployed micro-service application system provided by the embodiment, the data transmission device is deployed in the cloud-deployed micro-service application system, and data transmission is performed between micro-service applications in the cloud-deployed micro-service application system through the data transmission device, that is, the calling information, the reply information, and the response results of the calling information and the reply information between the micro-service applications are all sent through the data transmission device, so that the dependency relationship between the micro-service applications is reduced.
In another embodiment, the data transmission method for the cloud-deployed micro-service application system further includes the following steps: after feeding back the first sending failure information to the first micro-service application, the data transmission device stores the calling information and starts a retransmission mechanism to send the stored calling information to the second micro-service application.
Through the embodiment, when the second micro-service application fails to receive the calling information in time due to a network or a system and the like, the data transmission device feeds back the first sending failure information to the first micro-service application, locally stores the calling information, starts a retransmission mechanism, and continuously sends the stored calling information to the second micro-service application, so that the second micro-service application can receive the calling information in the retransmission mechanism of the data transmission device, and the service of the first micro-service application is prevented from being affected.
In another embodiment, in a normal state, the data transmission device can normally send the call information to the second micro service application, and the step of the data transmission device feeding back the first sending success information to the first micro service application specifically includes: and feeding back the first successful sending information to the first micro-service application through the synchronous notification, namely, for the first micro-service application, sending the calling information in the same thread and receiving the first successful sending information. In an abnormal state, the data transmission device does not normally send the call information to the second micro service application, at this time, the data transmission device feeds back the first sending failure information to the first micro service application through synchronous notification, further, the data transmission device sends the call information to the second micro service application in a retransmission mechanism, and when the sending is successful, feeds back the first sending success information to the first micro service application through asynchronous notification, that is, for the first micro service application, the call information is sent in the first thread and the first sending failure information is received, and after the first sending success information is received, the second thread is started to receive the reply information in the second thread. Through the asynchronous mechanism, after the first micro-service application receives the first sending failure information, the first micro-service application records the first sending failure information, ends the first thread and starts other threads. And after the first successful sending information is received, the second thread for receiving the reply information is started, so that the influence of unexpected conditions such as transmission interruption on the first micro-service application is avoided.
In another embodiment, each micro-service application in the cloud deployed micro-service application system adopts a uniform data format for data transmission, that is, the calling information and the reply information adopt a uniform data format, so that the problem of data consistency of the bottom layer of the cloud deployed micro-service application system is solved, and a data transmission device is not required for data format conversion. Specifically, the data in the unified data format includes a data header, a data must-input item, and a data body, where the data header includes identification information of the source micro-service application, identification information of the target micro-service application, and data identification information (for example, an order number for processing an order), the data must-input item is a field that defines a service field when data is transferred between the source micro-service application and the target micro-service application, that is, a field that must be included in transferring data between applications, and this part of the field defines specific content by the unified service field, and the fields of the data must-input item are different between different applications, for example: taking a loan system as an example, an order number, a product number and channel information in the process of loading the loan; the examination and approval result and the examination and approval amount in the examination and approval process; the contract number data body when the contract is signed is the detail content of the transmitted data. The data body is data details such as other customer information, material information, video, and file information added to the order.
Example two
Corresponding to the first embodiment, a second embodiment of the present invention provides a data transmission device for a cloud-deployed micro-service application system, and reference may be made to the related description of the first embodiment for corresponding technical features and corresponding technical effects, which are not described herein again. Fig. 2 is a block diagram of a data transmission apparatus of a cloud-deployed micro-service application system according to a second embodiment of the present invention, and as shown in fig. 2, the apparatus includes: a first receiving module 201, a first processing module 202, a first sending module 203, a second receiving module 204 and a second sending module 206.
The first receiving module 201 is configured to receive call information sent by a first micro service application, where the call information is used to call the micro service application; the first processing module 202 is configured to determine, according to the call information, a second micro service application that the first micro service application needs to call; the first sending module 203 is configured to send the call information to the second micro service application, and when the sending is successful, feed back the first sending success information to the first micro service application; the second receiving module 204 is configured to receive reply information sent by the second micro service application, where the reply information is information obtained after the second micro service application processes the call information; the second sending module 206 is configured to send the reply information back to the first micro service application, and when the sending is successful, feed back the second sending success information to the second micro service application.
Optionally, in an embodiment, the data transmission apparatus of the cloud-deployed micro-service application system further includes a second processing module 205, where the second processing module 205 is configured to determine the first micro-service application replied by the reply information.
Optionally, in an embodiment, the data transmission apparatus of the cloud-deployed micro-service application system further includes: and the third processing module is used for feeding back the first sending failure information to the first micro-service application when the calling information is sent to the second micro-service application and fails to be sent, storing the calling information, starting a retransmission mechanism and sending the stored calling information to the second micro-service application.
Optionally, in an embodiment, when the first sending module 203 feeds back the first sending success information to the first micro service application, the specifically executed steps include: feeding back first sending success information to the first micro-service application through the synchronous notification; the data transmission device of the cloud deployment micro-service application system further comprises: and the fourth processing module is used for feeding back the first sending success information to the first micro-service application through asynchronous notification when the stored calling information is sent to the second micro-service application successfully.
Optionally, in an embodiment, the call information and the reply information adopt a unified data format.
Optionally, in an embodiment, the unified data format includes a data header, a data necessary input item, and a data body, where the data header includes identification information of the source micro service application, identification information of the target micro service application, and data identification information, the data necessary input item is a service field defining when data is transferred between the source micro service application and the target micro service application, and the data body is details of the transferred data; when the first processing module 201 determines, according to the call information, a second micro service application that the first micro service application needs to call, the specific steps executed include: and analyzing the calling information to obtain the identification information of the target micro-service application, wherein the micro-service application identified by the identification information of the target micro-service application is a second micro-service application.
Optionally, in an embodiment, when determining, according to the call information, a second micro service application that the first micro service application needs to call, the first processing module 201 specifically performs steps including: determining that the first micro-service application is a micro-service application subscribing to a broadcast channel; and determining all micro-service applications subscribed to the broadcast channel, wherein the second micro-service application is included in all the micro-service applications subscribed to the broadcast channel.
EXAMPLE III
The third embodiment of the present invention provides a cloud deployment microservice application system, and some technical features and corresponding technical effects may refer to the related description of the first embodiment and the second embodiment, which are not described herein again. Fig. 3 is a block diagram of a cloud-deployed micro-service application system according to a third embodiment of the present invention, and as shown in fig. 3, the cloud-deployed micro-service application system includes a plurality of micro-service applications and a data transmission device 301 for implementing data transmission between the micro-service applications, where the plurality of micro-service applications includes a first micro-service application 302 and a second micro-service application 303.
The first micro service application 302 is configured to send call information to the data transmission apparatus 301, where the call information is used to call the second micro service application 303; the data transmission device 301 is configured to receive and analyze the call information, send the call information to the second micro service application 303, and when the sending is successful, feed back the first successful sending information to the first micro service application 302; the first micro-service application 302 is configured to receive the first transmission success information; the second micro-service application 303 is configured to receive and process the call information to obtain reply information, and then send the reply information to the data transmission apparatus 301; the data transmission device 301 is configured to receive and analyze the reply message, send the reply message to the first micro service application 302, and when the sending is successful, feed back a second sending success message to the second micro service application 303; the first microservice application 302 is configured to receive the reply message.
Optionally, in an embodiment, in the cloud deployment micro-service application system, the data transmission device 301 is further configured to, when sending the calling information to the second micro-service application 303 fails, feed back the first sending failure information to the first micro-service application 302, store the calling information, start a retransmission mechanism, and send the stored calling information to the second micro-service application 303.
Optionally, in an embodiment, when the data transmission apparatus 301 feeds back the first transmission success information to the first micro service application 302, the specifically executed steps include: feeding back a first transmission success message to the first microservice application 302 through the synchronization notification; the data transmission device 301 is further configured to: when the stored call information is successfully sent to the second micro service application 303, the first sending success information is fed back to the first micro service application 302 through the asynchronous notification.
Optionally, in an embodiment, the call information and the reply information adopt a unified data format.
Optionally, in an embodiment, the unified data format includes a data header, a data necessary input item, and a data body, where the data header includes identification information of the source micro service application, identification information of the target micro service application, and data identification information, the data necessary input item is a service field defining when data is transferred between the source micro service application and the target micro service application, and the data body is details of the transferred data; when determining the second micro-service application 303 called by the calling information, the data transmission apparatus 301 specifically executes the following steps: and analyzing the calling information to obtain the identification information of the target micro-service application, wherein the micro-service application identified by the identification information of the target micro-service application is the second micro-service application 303.
Optionally, in an embodiment, when determining the second micro-service application 303 called by the calling information, the data transmission apparatus 301 specifically performs the following steps: determining that the first micro-service application 302 is a micro-service application subscribed to a broadcast channel; all the microservice applications subscribed to the broadcast channel are determined, wherein the second microservice application 303 is included in all the microservice applications subscribed to the broadcast channel.
Example four
The fourth embodiment further provides a computer device, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a rack server, a blade server, a tower server or a rack server (including an independent server or a server cluster composed of a plurality of servers) capable of executing programs, and the like. As shown in fig. 4, the computer device 01 of the present embodiment at least includes but is not limited to: a memory 011 and a processor 012, which are communicatively connected to each other via a system bus, as shown in fig. 4. It is noted that fig. 4 only shows the computer device 01 having the component memory 011 and the processor 012, but it is to be understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead.
In this embodiment, the memory 011 (i.e., a readable storage medium) includes a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the storage 011 can be an internal storage unit of the computer device 01, such as a hard disk or a memory of the computer device 01. In other embodiments, the memory 011 can also be an external storage device of the computer device 01, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), etc. provided on the computer device 01. Of course, the memory 011 can also include both internal and external memory units of the computer device 01. In this embodiment, the memory 011 is generally used for storing an operating system and various application software installed in the computer device 01, for example, a program code of the data transmission apparatus of the cloud deployment microservice application system in the second embodiment. Further, the memory 011 can also be used to temporarily store various kinds of data that have been output or are to be output.
The processor 012 may be a Central Processing Unit (CPU), a controller, a microcontroller, a microprocessor, or other data Processing chip in some embodiments. The processor 012 is generally used to control the overall operation of the computer device 01. In this embodiment, the processor 012 is configured to run a program code stored in the memory 011 or process data, for example, a data transmission method of a cloud-deployed micro-service application system.
EXAMPLE five
The fifth embodiment further provides a computer-readable storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, a server, an App application store, etc., on which a computer program is stored, which when executed by a processor implements corresponding functions. The computer-readable storage medium of this embodiment is used to store a data transmission apparatus of a cloud-deployed micro-service application system, and when executed by a processor, the computer-readable storage medium implements the data transmission method of the cloud-deployed micro-service application system of the first embodiment.
Further, the computer-readable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the blockchain node, and the like.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
It should be noted that, in this document, 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 like elements in a process, method, article, or apparatus that comprises the element.
The application is operational with numerous general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like. The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A data transmission method of a cloud deployment micro-service application system is characterized by comprising the following steps:
receiving calling information sent by a first micro-service application, wherein the calling information is used for calling the micro-service application;
determining a second micro service application which needs to be called by the first micro service application according to the calling information;
sending the calling information to the second micro service application, and feeding back first sending success information to the first micro service application when the calling information is successfully sent;
receiving reply information sent by the second micro service application, wherein the reply information is obtained after the second micro service application processes the call information;
and sending the reply message to the first micro service application, and feeding back a second sending success message to the second micro service application when the sending is successful.
2. The data transmission method of the cloud-deployed micro-service application system according to claim 1, further comprising:
when the calling information is sent to the second micro service application and fails to be sent, feeding back first sending failure information to the first micro service application;
storing the calling information;
and starting a retransmission mechanism, and sending the stored calling information to the second micro-service application.
3. The data transmission method of the cloud-deployed micro-service application system according to claim 2,
the step of feeding back the first sending success information to the first micro service application specifically includes: feeding back the first sending success information to the first micro-service application through a synchronous notification;
the method further comprises the following steps: and when the stored calling information is sent to the second micro-service application successfully, feeding back the first sending success information to the first micro-service application through asynchronous notification.
4. The data transmission method of the cloud-deployed micro-service application system according to claim 1, wherein the call information and the reply information are in a unified data format.
5. The data transmission method of the cloud-deployed micro-service application system according to claim 4,
the unified data format comprises a data header, a data input item and a data body, wherein the data header comprises identification information of a source micro service application, identification information of a target micro service application and data identification information, the data input item is a service field for defining data transmission between the source micro service application and the target micro service application, and the data body is the detailed content of the transmitted data;
the step of determining a second micro service application required to be called by the first micro service application according to the calling information comprises the following steps: analyzing the calling information to obtain the identification information of the target micro-service application, and determining the target micro-service application as the second micro-service application according to the identification information.
6. The data transmission method of the cloud-deployed micro-service application system according to claim 1, wherein the step of determining, according to the call information, a second micro-service application that the first micro-service application needs to call comprises:
determining that the first micro-service application is a micro-service application subscribed to a broadcast channel;
determining all micro-service applications subscribed to the broadcast channel, wherein the second micro-service application is included in all the micro-service applications subscribed to the broadcast channel.
7. A data transmission device of a cloud deployment micro-service application system is characterized by comprising:
the first receiving module is used for receiving calling information sent by a first micro-service application, wherein the calling information is used for calling the micro-service application;
the first processing module is used for determining a second micro-service application which needs to be called by the first micro-service application according to the calling information;
the first sending module is used for sending the calling information to the second micro-service application and feeding back first sending success information to the first micro-service application when the calling information is successfully sent;
a second receiving module, configured to receive reply information sent by the second micro service application, where the reply information is obtained after the second micro service application processes the call information;
and the second sending module is used for sending the reply message to the first micro-service application and feeding back a second sending success message to the second micro-service application when the sending is successful.
8. A cloud deployment micro-service application system is characterized by comprising a plurality of micro-service applications and a data transmission device for realizing data transmission among the micro-service applications, wherein the micro-service applications comprise a first micro-service application and a second micro-service application,
the first micro service application is used for sending calling information to the data transmission device, and the calling information is used for calling the second micro service application;
the data transmission device is used for receiving and analyzing the calling information, then sending the calling information to the second micro-service application, and feeding back first sending success information to the first micro-service application when the sending is successful;
the first micro-service application is used for receiving the first sending success information;
the second micro service application is used for receiving and processing the calling information to obtain reply information, and then sending the reply information to the data transmission device;
the data transmission device is used for receiving and analyzing the reply information, then sending the reply information to the first micro service application, and feeding back second sending success information to the second micro service application when the sending is successful;
the first micro-service application is used for receiving the reply message.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 6 are implemented by the processor when executing the computer program.
10. A computer-readable storage medium comprising a stored data area storing data created from the use of blockchain nodes and a stored program area storing a computer program, characterized in that the computer program realizes the steps of the method according to any one of claims 1 to 6 when executed by a processor.
CN202010360040.2A 2020-04-30 2020-04-30 Cloud deployment micro-service application system and data transmission method, device and equipment thereof Pending CN111586135A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010360040.2A CN111586135A (en) 2020-04-30 2020-04-30 Cloud deployment micro-service application system and data transmission method, device and equipment thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010360040.2A CN111586135A (en) 2020-04-30 2020-04-30 Cloud deployment micro-service application system and data transmission method, device and equipment thereof

Publications (1)

Publication Number Publication Date
CN111586135A true CN111586135A (en) 2020-08-25

Family

ID=72111937

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010360040.2A Pending CN111586135A (en) 2020-04-30 2020-04-30 Cloud deployment micro-service application system and data transmission method, device and equipment thereof

Country Status (1)

Country Link
CN (1) CN111586135A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114866606A (en) * 2022-04-21 2022-08-05 彩讯科技股份有限公司 Micro-service management system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180027080A1 (en) * 2016-07-22 2018-01-25 Cisco Technology, Inc. Scaling service discovery in a micro-service environment
CN109582471A (en) * 2017-09-29 2019-04-05 西门子公司 Information processing method, device and system
CN110138741A (en) * 2019-04-15 2019-08-16 平安科技(深圳)有限公司 Micro services management method, device and computer equipment based on management platform
CN110401696A (en) * 2019-06-18 2019-11-01 华为技术有限公司 A kind of method, communication agent, host and the storage medium of decentralization processing
CN110430079A (en) * 2019-08-05 2019-11-08 腾讯科技(深圳)有限公司 Bus or train route cooperative system
CN110740103A (en) * 2019-09-02 2020-01-31 深圳壹账通智能科技有限公司 Service request processing method and device, computer equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180027080A1 (en) * 2016-07-22 2018-01-25 Cisco Technology, Inc. Scaling service discovery in a micro-service environment
CN109582471A (en) * 2017-09-29 2019-04-05 西门子公司 Information processing method, device and system
CN110138741A (en) * 2019-04-15 2019-08-16 平安科技(深圳)有限公司 Micro services management method, device and computer equipment based on management platform
CN110401696A (en) * 2019-06-18 2019-11-01 华为技术有限公司 A kind of method, communication agent, host and the storage medium of decentralization processing
CN110430079A (en) * 2019-08-05 2019-11-08 腾讯科技(深圳)有限公司 Bus or train route cooperative system
CN110740103A (en) * 2019-09-02 2020-01-31 深圳壹账通智能科技有限公司 Service request processing method and device, computer equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114866606A (en) * 2022-04-21 2022-08-05 彩讯科技股份有限公司 Micro-service management system

Similar Documents

Publication Publication Date Title
US10552448B2 (en) Systems and methods for event driven object management and distribution among multiple client applications
CN109739573B (en) Processing method and device for realizing API (application program interface) call and system for realizing API
CN108196961B (en) Asynchronous message processing method, terminal, system and storage medium
CN111274045B (en) Multi-platform docking method and device, computer equipment and readable storage medium
CN109039751B (en) Method, device, computer equipment and storage medium for configuring route
CN111897633A (en) Task processing method and device
CN110162344B (en) Isolation current limiting method and device, computer equipment and readable storage medium
CN111858727A (en) Multi-data-source data export system and method based on template configuration
CN112306805A (en) Method and device for preventing repeated clicking, computer equipment and readable storage medium
CN111258741B (en) Warehouse task execution method, distributed server cluster and computer equipment
CN112882846A (en) Data processing method and device of message queue, computer equipment and storage medium
CN114625533A (en) Distributed task scheduling method and device, electronic equipment and storage medium
CN112422450A (en) Computer equipment, and flow control method and device for service request
CN111586135A (en) Cloud deployment micro-service application system and data transmission method, device and equipment thereof
CN108111630B (en) Zookeeper cluster system and connection method and system thereof
CN113849320A (en) Development method, control method and computing device
CN111240998B (en) Test case processing method and device
CN113010306A (en) Service data processing method and device, computer equipment and storage medium
CN111722946A (en) Distributed transaction processing method and device, computer equipment and readable storage medium
CN112015563A (en) Message queue switching method and device, electronic equipment and storage medium
CN113760522A (en) Task processing method and device
CN111061576B (en) Method and system for creating entity object
CN112835643B (en) Cloud intercom management method and device based on equipment shadow service and equipment
CN113626222A (en) Message processing method and device, computer equipment and storage medium
CN113157461B (en) Method and device for transmitting message in task list execution process

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20200825