CN113572809B - Single request source multi-target source data communication method, computer equipment and storage medium - Google Patents

Single request source multi-target source data communication method, computer equipment and storage medium Download PDF

Info

Publication number
CN113572809B
CN113572809B CN202110639306.1A CN202110639306A CN113572809B CN 113572809 B CN113572809 B CN 113572809B CN 202110639306 A CN202110639306 A CN 202110639306A CN 113572809 B CN113572809 B CN 113572809B
Authority
CN
China
Prior art keywords
request
main
requested
information
intermediate server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110639306.1A
Other languages
Chinese (zh)
Other versions
CN113572809A (en
Inventor
周波
丁建
蔡浴泓
杨张磊
郭能
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Huifu Network Technology Co ltd
Original Assignee
Zhejiang Huifu Network 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 Zhejiang Huifu Network Technology Co ltd filed Critical Zhejiang Huifu Network Technology Co ltd
Priority to CN202110639306.1A priority Critical patent/CN113572809B/en
Publication of CN113572809A publication Critical patent/CN113572809A/en
Application granted granted Critical
Publication of CN113572809B publication Critical patent/CN113572809B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1859Arrangements for providing special services to substations for broadcast or conference, e.g. multicast adapted to provide push services, e.g. data channels
    • 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/562Brokering proxy services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a single request source multi-target source data communication method, computer equipment and a storage medium. The method comprises the following steps: the request end responds to the request information of the user based on the network protocol and is connected to the intermediate server; the intermediate server responds to the main request information of the request end and is connected to a main requested end; the main requested end receives the main request information of the request end, responds to the main request information of the request end, and forwards the generated main response information to the request end through the intermediate server end; the request terminal receives the main response information of the main requested terminal and generates interaction data; and the intermediate server transmits the interactive data between the request terminal and the main requested terminal to N secondary requested terminals and receives the secondary response information of the N secondary requested terminals.

Description

Single request source multi-target source data communication method, computer equipment and storage medium
Technical Field
The invention relates to the technical field of computers. And more particularly, to a single request source multi-target source data communication method, a computer device, and a storage medium.
Background
At present, the internet is mainly used for data communication based on http and https protocols, and the working principle of the internet is basically as follows: the first step: the request end establishes connection with the requested end; and a second step of: the request end makes a request to the requested end; and a third step of: the requested end receives the request and returns a corresponding file as a response according to the response request; fourth, the request end and the requested end close the connection. Basically, a request end corresponds to a requested end one by one, and data cannot be requested to be pushed to a plurality of requested parties at a time.
Disclosure of Invention
An object of the present invention is to provide a single request source multi-target source data communication method, a computer device and a storage medium.
In order to achieve the above purpose, the invention adopts the following technical scheme:
the first aspect of the present invention provides a single request source multi-target source data communication method, comprising:
the request end responds to the request information of the user based on the network protocol and is connected to the intermediate server;
the intermediate server responds to the main request information of the request end and is connected to a main requested end;
the main requested end receives the main request information of the request end, responds to the main request information of the request end, and forwards the generated main response information to the request end through the intermediate server end;
the request terminal receives the main response information of the main requested terminal and generates interaction data;
and the intermediate server transmits the interactive data between the request terminal and the main requested terminal to N secondary requested terminals and receives the secondary response information of the N secondary requested terminals.
In a specific example, the network protocol is an http protocol or an https protocol.
In one specific example, the method includes:
and configuring a request URL address provided by the intermediate server to the request end, defining a request mode and head information of the request, and enabling the request end to establish connection with the intermediate server.
In a specific example, the secondary requested end acquires the interaction data of the requested end and the primary requested end in real time.
In a specific example, the interaction data includes: traffic data and/or message data.
In a specific example, the number of N is determined according to the number of actual service scenario parties.
In a specific example, N secondary requested ends are added according to an actual service scene party, and a routing URL, a request mode and request header information of each secondary requested end are respectively agreed.
A second aspect of the invention provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method according to the first aspect of the invention when executing the program.
A third aspect of the invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method according to the first aspect of the invention.
The beneficial effects of the invention are as follows:
according to the technical scheme provided by the invention, as long as the primary request is made once for the original request end through the intermediate service, the primary requested end is completed once, and the service data of the request end and the primary requested end can be forwarded to the plurality of secondary requested ends through the intermediate service, so that the original request end can continue to do service, and the tedious and nonsensical work that the original request end makes multiple requests is avoided.
Drawings
The following describes the embodiments of the present invention in further detail with reference to the drawings.
Fig. 1 shows a flowchart of a single request source multi-target source data communication method according to an embodiment of the present invention.
Fig. 2 shows a schematic diagram of the structure of a computer system.
Detailed Description
In order to more clearly illustrate the present invention, the present invention will be further described with reference to preferred embodiments and the accompanying drawings. Like parts in the drawings are denoted by the same reference numerals. It is to be understood by persons skilled in the art that the following detailed description is illustrative and not restrictive, and that this invention is not limited to the details given herein.
As shown in fig. 1, an embodiment of the present invention provides a single request source multi-target source data communication method, which includes:
the request end responds to the request information of the user based on the network protocol and is connected to the intermediate server;
the intermediate server responds to the main request information of the request end and is connected to a main requested end;
the main requested end receives the main request information of the request end, responds to the main request information of the request end, and forwards the generated main response information to the request end through the intermediate server end;
the request terminal receives the main response information of the main requested terminal and generates interaction data;
and the intermediate server transmits the interactive data between the request terminal and the main requested terminal to N secondary requested terminals and receives the secondary response information of the N secondary requested terminals.
In a specific example, the network protocol is an http protocol or an https protocol.
In one specific example, the method includes:
and configuring a request URL address provided by the intermediate server to the request end, defining a request mode and head information of the request, and enabling the request end to establish connection with the intermediate server.
In a specific example, the secondary requested end acquires the interaction data of the requested end and the primary requested end in real time.
In a specific example, the interaction data includes: traffic data and/or message data.
In an embodiment of the present invention, the service request may be generated by a request end according to a corresponding input of a function required by a user, and then data interaction is performed with a requested end to obtain data corresponding to the service request, where the service data is data required to satisfy the service request, and the message data is data for performing message prompt on the user; and only one of the two may indicate that the subsequent requesting end processes only the data without prompting, or only prompting, or both the data and prompting, etc. when receiving the response information.
In a specific example, the number of N is determined according to the number of actual service scenario parties.
In a specific example, N secondary requested ends are added according to an actual service scene party, and a routing URL, a request mode and request header information of each secondary requested end are respectively agreed.
According to the technical scheme provided by the invention, as long as the primary request is made once for the original request end through the intermediate service, the primary requested end is completed once, and the service data of the request end and the primary requested end can be forwarded to the plurality of secondary requested ends through the intermediate service, so that the original request end can continue to do service, and the tedious and nonsensical work that the original request end makes multiple requests is avoided.
As shown in fig. 2, another embodiment of the present invention provides a schematic structural diagram of a computer device. The computer device 12 shown in fig. 2 is merely an example and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in FIG. 2, computer device 12 is in the form of a general purpose computing device. Components of computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, a bus 18 that connects the various system components, including the system memory 28 and the processing units 16.
Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, and a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 12 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and/or cache memory 32. The computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 2, commonly referred to as a "hard disk drive"). Although not shown in fig. 2, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 18 through one or more data medium interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored in, for example, memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 42 generally perform the functions and/or methods of the embodiments described herein.
The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with the computer device 12, and/or any devices (e.g., network card, modem, etc.) that enable the computer device 12 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 22. Moreover, computer device 12 may also communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through network adapter 20. As shown in FIG. 2, the network adapter 20 communicates with other modules of the computer device 12 via the bus 18. It should be appreciated that although not shown in fig. 2, other hardware and/or software modules may be used in connection with computer device 12, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processor unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, for example, to implement a single request source multi-target source data communication method provided by the embodiment of the present invention.
Another embodiment of the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements:
the request end responds to the request information of the user based on the network protocol and is connected to the intermediate server;
the intermediate server responds to the main request information of the request end and is connected to a main requested end;
the main requested end receives the main request information of the request end, responds to the main request information of the request end, and forwards the generated main response information to the request end through the intermediate server end;
the request terminal receives the main response information of the main requested terminal and generates interaction data;
and the intermediate server transmits the interactive data between the request terminal and the main requested terminal to N secondary requested terminals and receives the secondary response information of the N secondary requested terminals.
In practical applications, the computer-readable storage medium may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this embodiment, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
It should be understood that the foregoing examples of the present invention are provided merely for clearly illustrating the present invention and are not intended to limit the embodiments of the present invention, and that various other changes and modifications may be made therein by one skilled in the art without departing from the spirit and scope of the present invention as defined by the appended claims.

Claims (9)

1. A single request source multi-target source data communication method, comprising:
the request end responds to the request information of the user based on the network protocol and is connected to the intermediate server;
the intermediate server responds to the main request information of the request end and is connected to a main requested end;
the main requested end receives the main request information of the request end, responds to the main request information of the request end, and forwards the generated main response information to the request end through the intermediate server end;
the request terminal receives the main response information of the main requested terminal and generates interaction data;
and the intermediate server transmits the interactive data between the request terminal and the main requested terminal to N secondary requested terminals and receives the secondary response information of the N secondary requested terminals.
2. The method of claim 1, wherein the network protocol is an http protocol or an https protocol.
3. The method according to claim 1, characterized in that the method comprises:
and configuring a request URL address provided by the intermediate server to the request end, defining a request mode and head information of the request, and enabling the request end to establish connection with the intermediate server.
4. The method of claim 1, wherein the secondary requested end obtains the interaction data of the requesting end and the primary requested end in real time.
5. The method of claim 4, wherein the interaction data comprises: traffic data and/or message data.
6. The method of claim 1, wherein the number of N is determined according to the number of actual traffic scenario parties.
7. The method of claim 6, wherein N secondary requested ends are added according to actual service scenario sides, and routing URLs, request modes and request header information of each secondary requested end are respectively agreed.
8. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any of claims 1-7 when the program is executed by the processor.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-7.
CN202110639306.1A 2021-06-08 2021-06-08 Single request source multi-target source data communication method, computer equipment and storage medium Active CN113572809B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110639306.1A CN113572809B (en) 2021-06-08 2021-06-08 Single request source multi-target source data communication method, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110639306.1A CN113572809B (en) 2021-06-08 2021-06-08 Single request source multi-target source data communication method, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113572809A CN113572809A (en) 2021-10-29
CN113572809B true CN113572809B (en) 2023-07-11

Family

ID=78161725

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110639306.1A Active CN113572809B (en) 2021-06-08 2021-06-08 Single request source multi-target source data communication method, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113572809B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7761500B1 (en) * 2000-02-29 2010-07-20 Cisco Technology, Inc. URL based communication protocol from a client computer to a network device
GB201204504D0 (en) * 2012-03-14 2012-04-25 Canon Kk Method,system and server device for transmitting a digital resource in a client-server communication system
CN108781232A (en) * 2015-12-03 2018-11-09 微软技术许可有限责任公司 Protocol fallback during signaling of conversing
CN112017009A (en) * 2020-08-31 2020-12-01 北京百度网讯科技有限公司 Order processing method and device, electronic equipment and readable storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006031083A (en) * 2004-07-12 2006-02-02 Fujitsu Ltd Multiple transmission processing-feasible information electronic equipment, multiple transmission/response program and multiple transmission/response method
US10645183B2 (en) * 2017-06-26 2020-05-05 Microsoft Technology Licensing, Llc Redirection of client requests to multiple endpoints

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7761500B1 (en) * 2000-02-29 2010-07-20 Cisco Technology, Inc. URL based communication protocol from a client computer to a network device
GB201204504D0 (en) * 2012-03-14 2012-04-25 Canon Kk Method,system and server device for transmitting a digital resource in a client-server communication system
CN108781232A (en) * 2015-12-03 2018-11-09 微软技术许可有限责任公司 Protocol fallback during signaling of conversing
CN112017009A (en) * 2020-08-31 2020-12-01 北京百度网讯科技有限公司 Order processing method and device, electronic equipment and readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Duygu Celik ; Atilla Elci.Ontology-Based QoS Queuing Model for Selection of Web Services Servers.2010 IEEE 34th Annual Computer Software and Applications Conference Workshops.2010,全文. *
基于HIP协议的间接通信结构设计与实现;景娜娜;程东年;胡宇祥;王浩学;;计算机工程(05);全文 *

Also Published As

Publication number Publication date
CN113572809A (en) 2021-10-29

Similar Documents

Publication Publication Date Title
CN110008045B (en) Method, device and equipment for aggregating microservices and storage medium
CN108961033B (en) Multi-service system interaction method and device, storage medium and electronic terminal
US20190073197A1 (en) Chatbot development and deployment platform
WO2020135245A1 (en) Hosting application processing method and device, and computer-readable storage medium
CN107153599B (en) Method and equipment for recording and playing back user operation
CN110134702A (en) Data flow joining method, device, equipment and storage medium
CN107404418B (en) Internet product testing method, device, equipment and storage medium
CN114528044B (en) Interface calling method, device, equipment and medium
CN107817962B (en) Remote control method, device, control server and storage medium
CN110929128A (en) Data crawling method, device, equipment and medium
CN114221995A (en) Service calling method and device and electronic equipment
CN111901221A (en) Message processing method, device and computer storage medium
CN111669447A (en) Page display method, device, equipment and medium
CN109151033B (en) Communication method and device based on distributed system, electronic equipment and storage medium
CN109086097B (en) Method and device for starting small program, server and storage medium
CN107862035B (en) Network reading method and device for conference record, intelligent tablet and storage medium
WO2020177731A1 (en) Real-time communication method between hosted applications
CN108399128A (en) A kind of generation method of user data, device, server and storage medium
CN113572809B (en) Single request source multi-target source data communication method, computer equipment and storage medium
CN114036085B (en) DDR 4-based multitasking read-write scheduling method, computer equipment and storage medium
CN113849449A (en) Communication system and information interaction method, device and medium
CN111309575A (en) Method, device, server and storage medium for starting and stopping test tool
CN110798398A (en) Group message management method, device, equipment and medium
CN110769027A (en) Service request processing method and device, computer equipment and storage medium
CN113542412B (en) Data transmission method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant