Supercharge Your Innovation With Domain-Expert AI Agents!

Communication method and device based on plug-in compatibility, equipment and storage medium

A communication method and plug-in technology, applied in the computer field, can solve problems such as uncontrollable risks and huge processing costs, and achieve the effect of reducing complexity

Pending Publication Date: 2022-04-01
BEIJING TOPSEC NETWORK SECURITY TECH +2
View PDF6 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, when the plug-in is updated, it is inevitable to update the version of some dynamic libraries that support the operation of this plug-in. At this time, it will inevitably cause unpredictable effects on other services running on the same server.
At the same time, for the differences in interface methods and data formats, the cost of modifying the processing methods of the upper and lower layer applications is also huge, and the risks involved in the modification of the original process are also uncontrollable

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Communication method and device based on plug-in compatibility, equipment and storage medium
  • Communication method and device based on plug-in compatibility, equipment and storage medium
  • Communication method and device based on plug-in compatibility, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0045] see figure 1 , figure 1 It is a schematic flowchart of a communication method based on plug-in compatibility disclosed in the embodiment of this application. like figure 1 As shown, the plug-in compatible communication method in the embodiment of the present application includes the following steps:

[0046] 101. When it is detected that the upper-layer application program needs to perform data interaction with the lower-layer communication module, obtain a communication plug-in for realizing communication between the upper-layer application program and the lower-layer communication module;

[0047] 102. Create a plug-in instance according to the type identifier of the communication plug-in;

[0048] 103. Call the communication function of the plug-in instance to communicate with the kafka message queue of the lower communication module.

[0049]In some scenarios, the communication device is first installed with a pykafka plug-in, that is, the pykafka plug-in acts a...

Embodiment 2

[0074] see image 3 , image 3 It is a schematic structural diagram of a plug-in compatible communication device disclosed in the embodiment of this application. like image 3 As shown, the plug-in compatible communication device disclosed in the embodiment of the present application includes the following functional modules:

[0075] Obtaining module 201, is used for when detecting that the upper-level application program needs to carry out data interaction with the lower-level communication module, obtain the type identification of the communication plug-in, and the plug-in in the upper-level application program is used to communicate with the kafka message queue of the lower-level communication module;

[0076] An instance creation module 202, configured to obtain a plug-in instance according to the type identification of the communication plug-in;

[0077] The communication module 203 is configured to communicate with the kafka message queue of the lower layer communica...

Embodiment 3

[0084] see Figure 4 , Figure 4 It is a schematic structural diagram of a communication method based on plug-in compatibility disclosed in the embodiment of this application. like Figure 4 As shown, the plug-in compatible communication device disclosed in the embodiment of the present application includes:

[0085] a memory 302 storing executable program code;

[0086] a processor 301 coupled to the memory;

[0087] The processor 301 invokes the executable program code stored in the memory 302 to execute the communication method based on plug-in compatibility in the embodiment of the present application.

[0088] The device in the embodiment of the present application can be compatible with two kinds of plug-ins through the execution method, and enables the upper-layer application program to communicate with the lower-layer communication module on the premise of not knowing the plug-in type referenced by the lower-layer communication module. The version requirements are...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a plug-in compatibility-based communication method, a plug-in compatibility-based communication device, plug-in compatibility-based communication equipment and a storage medium, and the plug-in compatibility-based communication method comprises the following steps: when it is detected that an upper-layer application program needs to perform data interaction with a lower-layer communication module; obtaining a type identifier of the communication plug-in used for realizing communication between the upper-layer application program and the lower-layer communication module; creating a plug-in instance according to the type identifier of the communication plug-in; and calling a communication function of the plug-in instance to communicate with the kafka message queue of the lower-layer communication module. On the premise of being compatible with plug-ins of different versions, communication between the upper-layer application program and the kafka message team can be achieved, the upper-layer application program and the lower-layer application program do not sense the cited plug-in type, the situation that the requirements for versions are different due to different system operation environments is abandoned, the version consistency of historical projects and current development projects is guaranteed to the maximum extent, and the development efficiency is improved. Multiple versions are not maintained at the same time, and the complexity of version maintenance is reduced.

Description

technical field [0001] The present application relates to the field of computer technology, in particular, to a plug-in compatible communication method, device, device and storage medium. Background technique [0002] Currently, in the development of the Kafka application client based on the python language, there are mainly two popular open source plug-ins, pykafka and confluent_kafka. In the early project development, the pykafka plug-in was used as the interactive interface with the Kafka application. In the later project practice, it was found that It is quite different from confluent_kafka in terms of performance efficiency. In addition, the confluent_kafka plug-in is maintained and released by confluence company, and its advantages over pykafka are more obvious in terms of stability, continuity, and maintainability. Therefore, in actual project development Gradually abandon the pykafka plug-in and use the confluent_kafka plug-in as the client communication plug-in for ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/445G06F9/54
Inventor 徐飞飞
Owner BEIJING TOPSEC NETWORK SECURITY TECH
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More