[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN115834565A - Communication method, communication device, computer equipment and computer readable storage medium - Google Patents

Communication method, communication device, computer equipment and computer readable storage medium Download PDF

Info

Publication number
CN115834565A
CN115834565A CN202211261915.9A CN202211261915A CN115834565A CN 115834565 A CN115834565 A CN 115834565A CN 202211261915 A CN202211261915 A CN 202211261915A CN 115834565 A CN115834565 A CN 115834565A
Authority
CN
China
Prior art keywords
file
sap
computer device
sending
communication method
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
CN202211261915.9A
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.)
Zhongke Yungu Technology Co Ltd
Original Assignee
Zhongke Yungu Technology 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 Zhongke Yungu Technology Co Ltd filed Critical Zhongke Yungu Technology Co Ltd
Priority to CN202211261915.9A priority Critical patent/CN115834565A/en
Publication of CN115834565A publication Critical patent/CN115834565A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to the field of communication, and discloses a communication method, a communication device, computer equipment and a computer readable storage medium. The communication method is applied to a first computer device which is loaded with one of an SAP and a non-SAP, and comprises the following steps: acquiring data to be transmitted; dividing the data to be transmitted into notification messages and files; sending the file to an intermediate storage server; and sending the notification message to a second computer device, wherein the second computer device is loaded with the other one of the SAP and the non-SAP. Therefore, on the basis of realizing data communication between the SAP and the non-SAP, network congestion between the first computer equipment and the second computer equipment when files with large processing capacity are processed is avoided.

Description

Communication method, communication device, computer equipment and computer readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a communication method, an apparatus, a computer device, and a computer-readable storage medium.
Background
SAP (systems applications and products in data processing) is software for enterprise resource planning management, can provide comprehensive solutions for enterprises of various industries and different scales, and is widely applied. The communication interaction between the software of the SAP and the software of the non-SAP is generally performed through RFC (Remote Function Call) or MQ (Message Queue), which is difficult to process files, especially files with large capacity, and easily causes network congestion or processing timeout, thereby affecting file processing efficiency and user experience.
Therefore, the existing SAP and non-SAP are easy to cause network congestion when processing large files.
Disclosure of Invention
In view of the above, embodiments of the present application provide a communication method, an apparatus, a computer device, and a computer readable storage medium, which can solve the problem that network congestion is easily caused when a file with a large processing capacity is processed between an SAP and a non-SAP in the prior art.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a communication method, applied to a first computer device, where the first computer device is loaded with one of an SAP and a non-SAP, and the communication method includes:
acquiring data to be transmitted;
dividing the data to be transmitted into notification messages and files;
sending the file to an intermediate storage server;
and sending the notification message to a second computer device, wherein the second computer device is loaded with the other one of the SAP and the non-SAP.
According to a specific embodiment disclosed in the present application, the sending the file to an intermediate storage server includes:
and sending the file to the intermediate storage server through FTP or NFS.
According to a specific embodiment disclosed herein, the intermediate storage server is an FTP server.
According to a specific embodiment of the present disclosure, the sending the notification message to the second computer device includes:
and sending the notification message to the second computer equipment through any one of PI, socket and HTTP.
According to a specific embodiment disclosed in the present application, the notification message includes a preset rule, and the communication method further includes:
and receiving a processing result message sent by the second computer device, wherein the processing result message comprises a result obtained by checking whether the file is stored in the intermediate storage server or not and whether the file name meets a preset rule or not after the second computer device receives the notification message.
According to a specific embodiment of the present disclosure, the result includes passing or failing of the check, where the passing of the check indicates that the file is stored in the intermediate storage server, the name of the file conforms to a preset rule, and the failing of the check indicates that the file is not stored in the intermediate storage server and/or the name of the file does not conform to the preset rule.
According to a specific embodiment disclosed in the present application, the communication method further includes:
and if the result is that the check is not passed, analyzing the processing result message to obtain failure reason information, and sending the failure reason information to third computer equipment.
In a second aspect, an embodiment of the present application provides a communication apparatus applied to a first computer device, the first computer device having one of an SAP and a non-SAP mounted thereon, the communication apparatus including:
the acquisition module is used for acquiring data to be transmitted;
the separation module is used for separating the data to be transmitted into notification messages and files;
the file sending module is used for sending the file to an intermediate storage server;
and the notification message sending module is used for sending the notification message to a second computer device, wherein the second computer device is loaded with the other one of the SAP and the non-SAP.
In a third aspect, the present application provides a computer device, including a processor and a memory, where the memory stores a program or instructions, and the program or instructions, when executed by the processor, implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
According to the communication method, the communication device, the computer equipment and the computer readable storage medium provided by the technical scheme, the first computer equipment divides the data to be transmitted into the notification message and the file, sends the file to the intermediate storage server, and sends the notification message to the second computer equipment, so that the second computer equipment can acquire the file through the intermediate storage server after receiving the notification message, and therefore network congestion between the first computer equipment and the second computer equipment is avoided when the file with large processing capacity is processed on the basis of realizing data communication between SAP and non-SAP.
Additional features and advantages of the invention will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
fig. 1 is a flowchart illustrating a communication method according to an embodiment of the present application;
fig. 2 shows a schematic structural diagram of a communication device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
Hereinafter, the terms "including", "having", and their derivatives, which may be used in various embodiments of the present invention, are only intended to indicate specific features, numbers, steps, operations, elements, components, or combinations of the foregoing, and should not be construed as first excluding the existence of, or adding to, one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing.
Furthermore, the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of the present invention belong. The terms (such as those defined in commonly used dictionaries) should be interpreted as having a meaning that is consistent with their contextual meaning in the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein in various embodiments of the present invention.
Referring to fig. 1, fig. 1 is a flowchart of a communication method according to an embodiment of the present application, and as shown in fig. 1, the communication method is applied to a first computer device, where the first computer device is loaded with one of an SAP and a non-SAP, and the communication method includes the following steps:
step 110, acquiring data to be transmitted;
step 120, dividing the data to be transmitted into notification messages and files;
step 130, sending the file to an intermediate storage server;
step 140, sending the notification message to a second computer device, where the second computer device is loaded with the other one of the SAP and the non-SAP.
Specifically, the notification message includes description content or an auxiliary field, and the like, and may be generated according to a preset format, and carries metadata (such as name, size, and the like) of the file, so that a receiver of the notification message may check whether the file is legal or used for other processing by using the notification message; the file includes file content to be processed, such as attachments or structured data.
In the embodiment of the present application, the non-SAP indicates a software system that is not the SAP, and may be a software system constructed by Java, for example: a business process platform, a bank credit platform; and also can be a software system which is constructed by Microsoft and NET and does not belong to the SAP product family. It is understood that the non-SAP may be set according to actual requirements, and the present application is not limited thereto.
The communication method provided by the application can be communication between a first computer device loaded with SAP and a second computer device loaded with non-SAP, or communication between the first computer device loaded with non-SAP and the second computer device loaded with SAP; the first computer equipment can initiate communication first, then the second computer equipment initiates communication, and in the communication process of the first computer equipment and the second computer equipment, blocking waiting is not needed, so that asynchronous communication between the first computer equipment and the second computer equipment is realized.
Therefore, the first computer device divides the data to be transmitted into the notification message and the file, sends the file to the intermediate storage server, and sends the notification message to the second computer device, so that the second computer device can acquire the file through the intermediate storage server after receiving the notification message, and network congestion between the first computer device and the second computer device is avoided when the file with large processing capacity is processed on the basis of realizing data communication between the SAP and the non-SAP.
In an alternative embodiment, step 130 includes:
and sending the file to the intermediate storage server through FTP or NFS.
Specifically, FTP (File Transfer Protocol), a Protocol for File Transfer in the application layer; is an application layer protocol based on the TCP protocol for transferring files over a network.
NFS (Network File System), UNIX presentation layer protocol (presentation layer protocol) developed by SUN corporation, enables users to access files elsewhere on the Network as if using their own computer devices.
In the embodiment of the application, the file is sent to the intermediate storage server in an FTP or NFS manner, so that data can be reliably and efficiently transmitted, and the sharing performance of the file is improved.
On this basis, the intermediate storage server is an FTP server.
Specifically, the FTP server means a server supporting the FTP protocol, and is a computer device providing a file storage and access service on the internet, and provides a service according to the FTP protocol.
In the embodiment of the application, the FTP server is used as the intermediate storage server, so that the data can be reliably and efficiently transmitted, and the sharing performance of the file is improved.
In an alternative embodiment, step 140 includes:
and sending the notification message to the second computer equipment through any one of PI, socket and HTTP.
Specifically, PI (Process Integration), a middleware product released by SAP corporation, is a technology and a platform for Integration. The advantages of PI include: reduced maintenance costs, powerful message detection functionality, good flexibility, standard interface technology, elimination of point-to-point links, and completion of centralized message detection.
Socket, finger cot character-joining, is an appointment or a mode for communication between computers, is an abstraction of an endpoint for bidirectional communication between application processes on different hosts in a network, and is responsible for network data transmission between processes. A socket is a basic communication infrastructure and is a basic operation unit for supporting TCP/IP (Transmission Control Protocol/Internet Protocol) Protocol link communication.
HTTP (hypertext Transfer Protocol), which refers to a hypertext Transfer Protocol for network transmission and file transmission between networks or between computer devices, generally operates on TCP, and plays an important role in computer security and network security.
In the embodiment of the application, the notification message is sent to the second computer device in any one of a PI mode, a Socket mode and an HTTP mode, so that stability of data transmission can be guaranteed.
In an optional implementation manner, the notification message includes a preset rule, and the communication method further includes:
and receiving a processing result message sent by the second computer device, wherein the processing result message comprises a result obtained by checking whether the file is stored in the intermediate storage server and whether the file name meets a preset rule after the second computer device receives the notification message.
Specifically, after receiving the notification message, the second computer device checks whether the file is stored in the intermediate storage server and whether the file name conforms to a preset rule, obtains a processing result message, and then sends the processing result message to the first computer device. And the first computer equipment receives the processing result message sent by the second computer equipment, and can also execute corresponding steps according to the processing result message. The purpose of the second computer device for checking is to prevent mishandling and to ensure that the correct file is handled.
Optionally, the checking, by the second computer device, whether the file is stored in the intermediate storage server may be implemented by:
the second computer device sends a file check request to the intermediate storage server. And after receiving the file checking request, the intermediate storage server checks whether the file exists and is accessible, generates a checking result message and sends the checking result message to the second computer equipment. The second computer device receives the inspection result message as the processing result message.
In the embodiment of the present application, the preset rule may be dk01yyymmdd.txt, the first two characters DK represent generation buttons, the middle two digits 01 represent the serial number of the branch, the last eight digits yymmdd represent the year, month and day, and the last txt represents the file format. It can be understood that the preset rule can be set according to actual requirements, and the present application is not limited thereto.
It should be noted that the result obtained based on the two checks includes a check pass or a check fail, where the check pass indicates that the file is stored in the intermediate storage server, and the name of the file conforms to a preset rule, and the check fail indicates that the file is not stored in the intermediate storage server and/or the name of the file does not conform to the preset rule. That is, the check is passed only if both of the two checks are yes, and the check is not passed if at least one check is not yes.
On this basis, the communication method further comprises:
and if the result is that the check is not passed, analyzing the processing result message to obtain failure reason information, and sending the failure reason information to third computer equipment.
In particular, the third computer device is typically a computer device used by an operation and maintenance person or a care person. That is, after receiving the processing result message with the result of failing to pass the check, the first computer device analyzes the processing result message to obtain failure reason information and sends the failure reason information to the third computer device to prompt operation and maintenance personnel or concerned personnel that the logic or data of the communication process may need to be corrected, and then manual intervention retransmission or system automatic retransmission is performed.
It can be understood that, if the result is that the check is passed, that is, after the first computer device receives the processing result message including that the result is that the check is passed, the first computer device or the second computer device may both execute the steps of reading the file and parsing the file through the intermediate storage server, and may also execute specific service logic and the like in combination with the notification message, and the specific execution step may be set according to an actual requirement, which is not limited in this application.
Corresponding to the above method embodiment, please refer to fig. 2, fig. 2 is a schematic structural diagram of a communication device according to an embodiment of the present application, and as shown in fig. 2, the communication device 1000 includes:
an obtaining module 1001 configured to obtain data to be transmitted;
a separating module 1002, configured to separate the data to be transmitted into a notification message and a file;
a file sending module 1003, configured to send the file to an intermediate storage server;
a notification message sending module 1004, configured to send the file to an intermediate storage server.
Optionally, the file sending module 1003 is specifically configured to send the file to the intermediate storage server through FTP or NFS.
Optionally, the intermediate storage server is an FTP server.
Optionally, the notification message sending module 1004 is specifically configured to send the notification message to the second computer device through any one of PI, socket, and HTTP.
Optionally, the notification message includes a preset rule, and the communication apparatus 1000 further includes:
a receiving module, configured to receive a processing result message sent by the second computer device, where the processing result message includes a result obtained by the second computer device checking, after receiving the notification message, whether the file is stored in the intermediate storage server and whether the name of the file conforms to a preset rule.
Optionally, the result includes a pass or a fail of the check, where the pass of the check indicates that the file is stored in the intermediate storage server, and the name of the file conforms to a preset rule, and the fail of the check indicates that the file is not stored in the intermediate storage server and/or the name of the file does not conform to the preset rule.
Optionally, the communication device 1000 further includes:
and the failure reason information sending module is used for analyzing the processing result message to obtain failure reason information and sending the failure reason information to third computer equipment if the result is that the check is not passed.
The communication device provided in the embodiment of the present application can implement each process of the communication method in the method embodiment of fig. 1, and can achieve the same technical effect, and for avoiding repetition, details are not described here again.
Optionally, an embodiment of the present application further provides a computer device, which includes a processor and a memory, where the memory stores a program or an instruction, and the program or the instruction, when executed by the processor, implements each process of the communication method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
Optionally, an embodiment of the present application further provides a computer-readable storage medium, where a program or an instruction is stored on the computer-readable storage medium, and when the program or the instruction is executed by a processor, the process of the communication method embodiment is implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not repeated here.
Wherein, the processor is the processor in the computer device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative and, for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, each functional module or unit in each embodiment of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention or a part of the technical solution that contributes to the prior art in essence can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of the changes or substitutions within the technical scope of the present invention, and shall cover the scope of the present invention.

Claims (10)

1. A communication method applied to a first computer device having one of an SAP and a non-SAP mounted thereon, comprising:
acquiring data to be transmitted;
dividing the data to be transmitted into notification messages and files;
sending the file to an intermediate storage server;
and sending the notification message to a second computer device, wherein the second computer device is loaded with the other one of the SAP and the non-SAP.
2. The communication method according to claim 1, wherein the sending the file to an intermediate storage server comprises:
and sending the file to the intermediate storage server through FTP or NFS.
3. The communication method according to claim 2, wherein the intermediate storage server is an FTP server.
4. The communication method of claim 1, wherein sending the notification message to a second computer device comprises:
and sending the notification message to the second computer equipment through any one of PI, socket and HTTP.
5. The communication method according to claim 1, wherein the notification message includes a preset rule, the communication method further comprising:
and receiving a processing result message sent by the second computer device, wherein the processing result message comprises a result obtained by checking whether the file is stored in the intermediate storage server and whether the file name meets a preset rule after the second computer device receives the notification message.
6. The communication method according to claim 5, wherein the result comprises a pass or a fail check, wherein the pass check indicates that the file is stored in the intermediate storage server and the name of the file conforms to a preset rule, and the fail check indicates that the file is not stored in the intermediate storage server and/or the name of the file does not conform to the preset rule.
7. The communication method according to claim 6, further comprising:
and if the result is that the check is not passed, analyzing the processing result message to obtain failure reason information, and sending the failure reason information to third computer equipment.
8. A communication apparatus applied to a first computer device having one of an SAP and a non-SAP mounted thereon, comprising:
the acquisition module is used for acquiring data to be transmitted;
the separation module is used for separating the data to be transmitted into notification messages and files;
the file sending module is used for sending the file to an intermediate storage server;
and the notification message sending module is used for sending the notification message to a second computer device, wherein the second computer device is loaded with the other one of the SAP and the non-SAP.
9. A computer device, characterized in that it comprises a processor and a memory, on which are stored programs or instructions that, when executed by the processor, implement the steps of the communication method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a program or instructions which, when executed by a processor, carry out the steps of the communication method according to any one of claims 1 to 7.
CN202211261915.9A 2022-10-14 2022-10-14 Communication method, communication device, computer equipment and computer readable storage medium Pending CN115834565A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211261915.9A CN115834565A (en) 2022-10-14 2022-10-14 Communication method, communication device, computer equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211261915.9A CN115834565A (en) 2022-10-14 2022-10-14 Communication method, communication device, computer equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN115834565A true CN115834565A (en) 2023-03-21

Family

ID=85524789

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211261915.9A Pending CN115834565A (en) 2022-10-14 2022-10-14 Communication method, communication device, computer equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN115834565A (en)

Similar Documents

Publication Publication Date Title
CN111371892A (en) High-concurrency distributed message pushing system and method
US20120215872A1 (en) Criteria-based message publication control and feedback in a publish/subscribe messaging environment
US20120215856A1 (en) Message publication feedback in a publish/subscribe messaging environment
US9264414B2 (en) Retry and snapshot enabled cross-platform synchronized communication queue
US20120215873A1 (en) Failure-controlled message publication and feedback in a publish/subscribe messaging environment
CN104579905A (en) Message passing method and system, MOM (message oriented middleware) server and receiving terminal
WO2018208490A1 (en) Systems and methods for regional data storage and data anonymization
CN109271259B (en) Enterprise service bus system, data processing method, terminal and storage medium
EP1872256B1 (en) System and method of waste management
EP3026860B1 (en) Method and system for transmission management of full configuration synchronization between eml-nml
CN113765871B (en) Method and device for managing fort machine
CN115834565A (en) Communication method, communication device, computer equipment and computer readable storage medium
CN111104216A (en) Batch processing method and device of electronic insurance policy, storage medium and electronic equipment
CN105262845A (en) File transmission processing method and system
US8321484B2 (en) Minimizing bandwidth in file path-centric protocol message
CN112241332B (en) Interface compensation method and device
EP1868351A1 (en) File distribution system
Vassilakis et al. Integrating e-government public transactional services into public authority workflows
CN111552907A (en) Message processing method, device, equipment and storage medium
CN111049938A (en) Message notification method and device, electronic equipment and readable storage medium
CN113766437B (en) Short message sending method and device
CN113687877B (en) Method, device and system for processing data
CN117411847B (en) Mail out-link picture transfer method, system and medium
CN112783665B (en) Interface compensation method and device
CN112988408B (en) Multi-terminal interaction method and device

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