CN110943993A - Method and device for requesting preposition, computer equipment and storage medium - Google Patents

Method and device for requesting preposition, computer equipment and storage medium Download PDF

Info

Publication number
CN110943993A
CN110943993A CN201911212784.3A CN201911212784A CN110943993A CN 110943993 A CN110943993 A CN 110943993A CN 201911212784 A CN201911212784 A CN 201911212784A CN 110943993 A CN110943993 A CN 110943993A
Authority
CN
China
Prior art keywords
data
requested
end processor
centralized node
party
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
CN201911212784.3A
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.)
Beijing Ruian Technology Co Ltd
Original Assignee
Beijing Ruian 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 Beijing Ruian Technology Co Ltd filed Critical Beijing Ruian Technology Co Ltd
Priority to CN201911212784.3A priority Critical patent/CN110943993A/en
Publication of CN110943993A publication Critical patent/CN110943993A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/02Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/02Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
    • H04L63/0281Proxies
    • 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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/133Protocols for remote procedure calls [RPC]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method and a device for requesting a preamble, computer equipment and a storage medium. The method comprises the following steps: the centralized node responds to a data acquisition request sent by the front-end processor, and locally inquires whether data to be requested sent by a service processing party is stored at present; if so, the centralized node sends the data to be requested to the front-end processor so that the front-end processor requests a response service to a third-party server according to the data to be requested, wherein the front-end processor is used for isolating direct communication between the centralized node and the third-party server; and the centralized node receives response result data of the data to be requested, which is acquired by the front-end processor from the third-party server, and provides the response result data to the service processing party. By using the technical scheme of the invention, the network is partitioned according to functions and authorities, the network partition of a service processing part is realized, and the network security during service processing is improved.

Description

Method and device for requesting preposition, computer equipment and storage medium
Technical Field
The embodiment of the invention relates to a multi-Web system integration technology, in particular to a method and a device for requesting preposition, computer equipment and a storage medium.
Background
For multi-Web system integration, in some specific cases, the service to be accessed needs to initiate a request to a third party service.
Single sign-on integration is a common integration technology, and OAuth (Open Authorization) can implement single sign-on integration. OAuth provides a secure, open and simple standard for authorization of user resources, and a third party can apply for authorization of the user resources without using a user name and password of the user, and OAuth2 is a second version of OAuth. As shown in fig. 1, in the network interaction process of OAuth2, steps 6 and 8 are to require the service to be accessed to initiate a request to the third party service. In the prior art, two interaction modes for actively initiating a request to a third-party server are mainly used, the first mode is to directly access the third-party server when the third-party server needs to be accessed, but the method is applicable to the mode and cannot partition a network structure by the server according to functions and permissions. The second approach is to access the third-party server uniformly through one proxy server, but this approach cannot logically separate networks of different partitions. In the prior art, a service processing part of a service party to be accessed needs to send a request outwards, and the network security is poor.
Disclosure of Invention
Embodiments of the present invention provide a method and an apparatus for requesting a prefix, a computer device, and a storage medium, so as to implement the prefix of a request initiated by a third-party service, perform network partition on a service processing part, and improve network security of the service processing part.
In a first aspect, an embodiment of the present invention provides a method for requesting a preamble, where the method includes:
the centralized node responds to a data acquisition request sent by the front-end processor, and locally inquires whether data to be requested sent by a service processing party is stored at present;
if so, the centralized node sends the data to be requested to the front-end processor so that the front-end processor requests a response service to a third-party server according to the data to be requested, wherein the front-end processor is used for isolating direct communication between the centralized node and the third-party server;
and the centralized node receives response result data of the data to be requested, which is acquired by the front-end processor from the third-party server, and provides the response result data to the service processing party.
In a second aspect, an embodiment of the present invention further provides a method for requesting a preamble, where the method includes:
the front-end processor sends a data acquisition request to a centralized node, wherein the data acquisition request is used for indicating the centralized node to locally inquire whether to-be-requested data sent by a service processing party is stored;
if the front-end processor receives the data to be requested fed back by the centralized node, the front-end processor sends the data to be requested to a third-party server for requesting response service, wherein the front-end processor is used for isolating direct communication between the centralized node and the third-party server;
and the front-end processor sends response result data fed back by the third-party server aiming at the data to be requested to the centralized node so that the centralized node provides the response result data to the service processing party.
In a third aspect, an embodiment of the present invention further provides an apparatus for requesting a preamble, where the apparatus includes:
the data to be requested query module is used for enabling the centralized node to respond to a data acquisition request sent by the front-end processor and locally query whether the data to be requested sent by the service processing party is stored currently;
a to-be-requested data sending module, configured to send, if yes, the to-be-requested data to the front-end processor by the central node, so that the front-end processor requests a response service from a third-party server according to the to-be-requested data, where the front-end processor is configured to isolate direct connection communication between the central node and the third-party server;
a response result data receiving module, configured to enable the centralized node to receive response result data of the to-be-requested data, which is obtained by the front-end processor from the third-party server, and provide the response result data to the service processing party.
In a fourth aspect, an embodiment of the present invention further provides an apparatus for requesting a preamble, where the apparatus includes:
the data acquisition request sending module is used for enabling the front-end processor to send a data acquisition request to the centralized node, wherein the data acquisition request is used for indicating whether to-be-requested data sent by a service processing party is stored in local inquiry of the centralized node;
a response service request module, configured to enable the front-end processor to send the data to be requested to a third-party server to request a response service if the front-end processor receives the data to be requested, which is fed back by the centralized node, where the front-end processor is configured to isolate direct communication between the centralized node and the third-party server;
and the response result data sending module is used for enabling the front-end processor to send the response result data fed back by the third-party server aiming at the data to be requested to the centralized node so as to enable the centralized node to provide the response result data to the service processing party.
In a fifth aspect, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the method for requesting a preamble according to any one of the embodiments of the present invention.
In a sixth aspect, embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are used to perform the method of request front-end according to any of the embodiments of the present invention.
The embodiment of the invention stores the data to be requested of the service processing party to the centralized node in a centralized manner, the front-end processor sends the data acquisition request to the centralized node, when the data to be requested exists in the centralized node, the data to be requested is sent to the front-end processor, the front-end processor requests a response service to the third-party server according to the data to be requested, receives a response result returned by the third-party server, sends the returned result to the centralized node, and the centralized node provides the returned result to the service processing party. The problem of poor network security caused by the fact that a business processing part directly accesses a third-party service when the third-party service needs to be called in the prior art is solved. The network is partitioned according to functions and authorities, the network partition of a service processing part is realized, and the network security during service processing is improved.
Drawings
FIG. 1 is a flow chart of a prior art single sign-on with OAuth2 as an example;
FIG. 2 is a flow chart of a method for requesting a preamble according to one embodiment of the present invention;
FIG. 3 is a flowchart of a method for requesting a preamble according to a second embodiment of the present invention;
FIG. 4 is a flowchart of a method for requesting a preamble according to a third embodiment of the present invention;
FIG. 5 is a flow chart of a method for requesting a preamble in a fourth embodiment of the present invention;
FIG. 6 is a flow chart of a method of requesting a preamble suitable for use in embodiments of the present invention;
fig. 7 is a schematic structural diagram of an apparatus for requesting a preamble according to a fifth embodiment of the present invention;
fig. 8 is a schematic structural diagram of an apparatus for requesting a preamble according to a sixth embodiment of the present invention;
FIG. 9 is a schematic structural diagram of a computer device in a seventh embodiment of the present invention;
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 2 is a flowchart of a method for requesting a preamble according to an embodiment of the present invention, where this embodiment is applicable to a case where a party to be accessed needs to invoke a third-party service, and the method may be executed by a device for requesting a preamble, where the device may be implemented by software and/or hardware, and may be generally integrated in a server.
As shown in fig. 2, the technical solution of the embodiment of the present invention specifically includes the following steps:
s110, the centralized node responds to the data acquisition request sent by the front-end processor, and locally inquires whether the data to be requested sent by the service processing party is stored currently.
The centralized node may be a node responsible for collecting all data related to the outbound request and the result of the outbound request. The front-end processor can be arranged among different systems to solve the problem of communication among the systems. The front-end processor may be responsible for obtaining data of the external request, obtaining a result of the external request, and submitting a result of the request. The request for obtaining data may be a request sent by the front-end processor to the centralized node to obtain data to be requested stored in the centralized node. The business processor may be a business logic processor that needs to initiate a request to a third party server.
In the embodiment of the invention, the front-end processor sends a data acquisition request to the centralized node, and the centralized node inquires whether to locally store data to be requested or not after receiving the data acquisition request. And the data to be requested is sent to the centralized node for the service processing party and is stored in the centralized node.
In an alternative embodiment of the invention, the centralized node may communicate with the front-end processor via a long connection service.
The long connection service may mean that a connection is established when both communication parties have data interaction, the connection is not closed after data transmission is completed, and the established connection is reused when both communication parties perform data interaction again. The advantage of this arrangement is that it can improve the data transmission efficiency, save the data transmission time, and is suitable for the system requiring frequent resource request to communicate.
And S120, if so, the centralized node sends the data to be requested to the front-end processor, so that the front-end processor requests a response service to a third-party server according to the data to be requested.
Wherein the front-end processor is configured to isolate direct communication between the centralized node and the third-party server. The method has the advantages that the service processing party and the centralized node can be isolated from other systems, and the network security of the service processing party and the centralized node is guaranteed.
In the embodiment of the invention, if the data to be requested is stored in the centralized node, the data to be requested is sent to the front-end processor, and the front-end processor requests the corresponding service from the third-party server according to the acquired data to be requested.
S130, the central node receives response result data of the data to be requested, which is obtained by the front-end processor from the third-party server, and provides the response result data to the service processing party.
The response result data may be processing result data obtained by processing the data to be requested by the third-party server according to the received data to be requested.
In the embodiment of the invention, the third party responds to the service request sent by the front-end processor, processes the data to be processed to obtain the response result data, sends the response result data to the front-end processor, and sends the response result data to the centralized node after the front-end processor receives the response result data. And after receiving the response data, the centralized node returns the response result data to the service processing party.
According to the technical scheme of the embodiment, the data to be requested of the service processing party is stored in the centralized node in a centralized mode, the front-end processor sends the data acquisition request to the centralized node, when the data to be requested exists in the centralized node, the data to be requested is sent to the front-end processor, the front-end processor requests response service to the third-party server according to the data to be requested, receives a response result returned by the third-party server, sends the return result to the centralized node, and the centralized node provides the return result to the service processing party. The problem of poor network security caused by the fact that a business processing part directly accesses a third-party service when the third-party service needs to be called in the prior art is solved. The network is partitioned according to functions and authorities, the network partition of a service processing part is realized, and the network security during service processing is improved.
Example two
Fig. 3 is a flowchart of a method for requesting a front-end according to a second embodiment of the present invention, where the second embodiment of the present invention further embodies an interaction process between a centralized node and a front-end on the basis of the above-mentioned embodiment.
Correspondingly, as shown in fig. 3, the technical solution of the embodiment of the present invention specifically includes the following steps:
s210, the centralized node responds to the data to be requested uploaded by the service party and stores the data to be requested locally.
In the embodiment of the invention, the business service side sends all the data to be processed to the centralized node, and the centralized node stores the received data to be processed.
S220, the centralized node responds to the data acquisition request sent by the front-end processor, and locally inquires whether the data to be requested sent by the service processing party is stored currently. If so, S240 is performed, otherwise S230 is performed.
And S230, after the waiting time is set at intervals, locally inquiring whether the data to be requested sent by the service processing party is stored at present. If so, S240 is performed, otherwise S250 is performed.
The interval setting can be a time period set in the waiting time length, and the re-inquiry is performed at set intervals, or a certain condition is set in the waiting time length, and the re-inquiry is performed when the condition is triggered. The embodiment does not limit the manner in which the waiting time period is set at the interval. In one specific example, if it is determined that there is no pending data stored in the centralized node, the wait time is 60s, and the query may be reinitiated every 10s for 60 s. In another specific example, if it is determined that the data to be requested is not stored in the centralized node, the waiting time is 60s, and the query may be re-initiated after the 5 th, 10 th, 20 th and 60 th time periods.
S240, the centralized node sends the data to be requested to the front-end processor, so that the front-end processor requests a response service to a third-party server according to the data to be requested.
Wherein the front-end processor is configured to isolate direct communication between the centralized node and the third-party server.
And S250, sending a no-request data response to the front-end processor.
In the embodiment of the invention, if the data to be requested is not inquired in the centralized node after the waiting time, the centralized node directly sends the response without the requested data to the front-end processor.
S260, the central node receives response result data of the data to be requested, which is obtained by the front-end processor from the third-party server, and provides the response result data to the service processing party.
According to the technical scheme of the embodiment, the data to be requested of the service processing party is stored in the centralized node in a centralized mode, the front-end processor sends the data acquisition request to the centralized node, when the data to be requested exists in the centralized node, the data to be requested is sent to the front-end processor, the front-end processor requests response service to the third-party server according to the data to be requested, receives a response result returned by the third-party server, sends the return result to the centralized node, and the centralized node provides the return result to the service processing party. And when the data to be requested does not exist in the centralized node, waiting is carried out, whether the data to be requested exists is inquired again, and if the data to be requested is not obtained after a certain time, a result of no request data response is returned to the front-end processor. The problem of poor network security caused by the fact that a business processing part directly accesses a third-party service when the third-party service needs to be called in the prior art is solved. The network is partitioned according to functions and authorities, the network partition of a service processing part is realized, and the network security during service processing is improved.
EXAMPLE III
Fig. 4 is a flowchart of a method for requesting a preamble according to a third embodiment of the present invention, where this embodiment is applicable to a case where a party to be accessed needs to invoke a third-party service, and this method may be executed by a device for requesting a preamble, where this device may be implemented by software and/or hardware, and may be generally integrated in a server.
As shown in fig. 4, the technical solution of the embodiment of the present invention specifically includes the following steps:
and S310, the front-end processor sends a data acquisition request to the centralized node.
The data acquisition request is used for indicating the centralized node to locally inquire whether to-be-requested data sent by a service processing party is stored.
S320, if the front-end processor receives the data to be requested fed back by the centralized node, the data to be requested is sent to a third-party server for requesting response service.
Wherein the front-end processor is configured to isolate direct communication between the centralized node and the third-party server.
S330, the front-end processor sends response result data fed back by the third-party server aiming at the data to be requested to the centralized node, so that the centralized node provides the response result data to the service processing party.
According to the technical scheme of the embodiment of the invention, the front-end processor sends the data acquisition request to the centralized node, if the centralized node responds to the data acquisition request and sends the data to be requested to the front-end processor, the front-end processor requests the response service to the third-party server according to the data to be requested, receives the response result data returned by the third-party server, and returns the response result data to the centralized node. The problem of poor network security caused by the fact that the business processing part directly accesses the third-party service when the business processing part needs to call the third-party service in the prior art is solved. The communication separation between the service processing part and the third-party service by the front-end processor is realized, the network is partitioned according to the functions and the authority, and the network security during service processing is improved.
Example four
Fig. 5 is a flowchart of a method for requesting a front-end according to a fourth embodiment of the present invention, where the embodiment of the present invention further embodies an interaction process between a centralized node and a front-end on the basis of the foregoing embodiment.
Correspondingly, as shown in fig. 5, the technical solution of the embodiment of the present invention specifically includes the following steps:
s410, the front-end processor sends a data acquisition request to the centralized node.
The data acquisition request is used for indicating the centralized node to locally inquire whether to-be-requested data sent by a service processing party is stored.
And S420, judging whether the front-end processor receives the data to be requested fed back by the centralized node. If so, S430 is performed, otherwise, S440 is performed.
Wherein the front-end processor is configured to isolate direct communication between the centralized node and the third-party server.
And S430, sending the data to be requested to a third-party server for requesting response service.
S440, judging whether the front-end processor receives the unsolicited data response fed back by the centralized node, if so, executing S450, otherwise, executing S470.
S450, judging whether the repeated acquisition condition is met, if so, executing S410, otherwise, executing S470.
Wherein the repetitive acquisition condition may be set to be after a preset time elapses. At this time, if the front-end processor receives the result of no request data fed back by the centralized node, after a preset time, the front-end processor needs to obtain the data to be requested from the centralized node again. In a specific example, if the front-end processor receives the result of the non-requested data fed back by the centralized node, the request for obtaining the data to be requested may be sent to the centralized node again after 120 s. It should be noted that the present embodiment does not limit the specific content of the repetitive acquisition condition.
And S460, the front-end processor sends response result data fed back by the third-party server aiming at the data to be requested to the centralized node, so that the centralized node provides the response result data to the service processing party.
And S470, ending.
In a specific example, fig. 6 is a flowchart of a method for requesting a front end, which is applicable to the embodiment of the present invention, as shown in fig. 6, a to-be-requested data is submitted to a centralized node by a to-be-requested third party service provider, the front end sends a request for invoking the to-be-requested data to the centralized node, the centralized node queries whether the to-be-requested data is locally stored, and if so, the to-be-requested data is returned to the front end. If not, waiting for a period of time, then inquiring whether the data is to be requested again, if so, returning the data to be requested to the front-end processor, and if not, returning the result of no data to be requested to the front-end processor. And after receiving the data processing request, the third-party service processes the data to be processed and sends a request result to the front-end processor. After receiving the request result, the front-end processor submits the request result data to the centralized node, and the centralized node returns the request result to the service party of the service to be processed.
According to the technical scheme of the embodiment of the invention, the front-end processor sends the data acquisition request to the centralized node, if the centralized node responds to the data acquisition request and sends the data to be requested to the front-end processor, the front-end processor requests the response service to the third-party server according to the data to be requested, receives the response result data returned by the third-party server, and returns the response result data to the centralized node. And if the centralized node sends a response result without the requested data to the front-end processor, the front-end processor sends the request for acquiring the data to the centralized node again when meeting the acquisition condition. The problem of poor network security caused by the fact that the business processing part directly accesses the third-party service when the business processing part needs to call the third-party service in the prior art is solved. The communication separation between the service processing part and the third-party service by the front-end processor is realized, the network is partitioned according to the functions and the authority, and the network security during service processing is improved.
EXAMPLE five
Fig. 7 is a schematic structural diagram of an apparatus for requesting a preamble according to a fifth embodiment of the present invention, where the apparatus includes: a data to request query module 510, a data to request sending module 520, and a response result data receiving module 530. Wherein:
a to-be-requested data query module 510, configured to enable the centralized node to respond to a data acquisition request sent by the front-end processor, and locally query whether to store data to be requested, which is sent by a service processor, currently;
a to-be-requested data sending module 520, configured to, if yes, send, by the central node, the to-be-requested data to the front-end processor, so that the front-end processor requests a response service from a third-party server according to the to-be-requested data, where the front-end processor is configured to isolate direct communication between the central node and the third-party server;
a response result data receiving module 530, configured to enable the centralized node to receive response result data of the data to be requested, which is obtained by the front-end processor from the third-party server, and provide the response result data to the service processing party.
According to the technical scheme of the embodiment, the data to be requested of the service processing party is stored in the centralized node in a centralized mode, the front-end processor sends the data acquisition request to the centralized node, when the data to be requested exists in the centralized node, the data to be requested is sent to the front-end processor, the front-end processor requests response service to the third-party server according to the data to be requested, receives a response result returned by the third-party server, sends the return result to the centralized node, and the centralized node provides the return result to the service processing party. The problem of poor network security caused by the fact that a business processing part directly accesses a third-party service when the third-party service needs to be called in the prior art is solved. The network is partitioned according to functions and authorities, the network partition of a service processing part is realized, and the network security during service processing is improved.
On the basis of the above embodiment, the apparatus further includes:
and the data to be requested storage module is used for enabling the centralized node to respond to the data to be requested uploaded by the service server and locally store the data to be requested.
On the basis of the above embodiment, the apparatus further includes:
the data to be requested is inquired again module, is used for if not, after interval presumes waiting for duration, inquire locally again whether store the data to be requested that the business processing side sends at present;
and the unsolicited data response sending module is used for sending unsolicited data response to the front-end processor if the unsolicited data response is not received.
On the basis of the above embodiment, the centralized node communicates with the front-end processor through a long connection service.
The device for requesting the preposition provided by the embodiment of the invention can execute the method for requesting the preposition provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
EXAMPLE six
Fig. 8 is a schematic structural diagram of an apparatus for requesting a preamble according to a sixth embodiment of the present invention, where the apparatus includes: a get data request sending module 610, a response service request module 620 and a response result data sending module 630. Wherein:
an acquire data request sending module 610, configured to enable a front-end processor to send an acquire data request to a centralized node, where the acquire data request is used to indicate whether to-be-requested data sent by a service processor is stored in a local query of the centralized node;
a response service request module 620, configured to enable the front-end processor to send the data to be requested to a third-party server to request a response service if the front-end processor receives the data to be requested, which is fed back by the centralized node, where the front-end processor is configured to isolate direct communication between the centralized node and the third-party server;
a response result data sending module 630, configured to enable the front-end processor to send response result data, which is fed back by the third-party server for the data to be requested, to the centralized node, so that the centralized node provides the response result data to the service processing party.
According to the technical scheme of the embodiment of the invention, the front-end processor sends the data acquisition request to the centralized node, if the centralized node responds to the data acquisition request and sends the data to be requested to the front-end processor, the front-end processor requests the response service to the third-party server according to the data to be requested, receives the response result data returned by the third-party server, and returns the response result data to the centralized node. The problem of poor network security caused by the fact that the business processing part directly accesses the third-party service when the business processing part needs to call the third-party service in the prior art is solved. The communication separation between the service processing part and the third-party service by the front-end processor is realized, the network is partitioned according to the functions and the authority, and the network security during service processing is improved.
On the basis of the above embodiment, the apparatus further includes:
and a data acquisition request resending module, configured to enable the front-end processor to resend the data acquisition request to the centralized node when a repeated acquisition condition is met if the front-end processor receives a no-request data response fed back by the centralized node.
The device for requesting the preposition provided by the embodiment of the invention can execute the method for requesting the preposition provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
EXAMPLE seven
Fig. 9 is a schematic structural diagram of a computer apparatus according to a seventh embodiment of the present invention, as shown in fig. 9, the computer apparatus includes a processor 70, a memory 71, an input device 72, and an output device 73; the number of the processors 70 in the computer device may be one or more, and one processor 70 is taken as an example in fig. 9; the processor 70, the memory 71, the input device 72 and the output device 73 in the computer apparatus may be connected by a bus or other means, and the connection by the bus is exemplified in fig. 9.
The memory 71 serves as a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as modules corresponding to the method for requesting a preamble in the embodiment of the present invention (for example, the module for querying data to be requested 510, the module for sending data to be requested 520, and the module for receiving response result data 530 in the device for requesting a preamble, or the module for sending a request for obtaining data 610, the module for requesting a response service 620, and the module for sending response result data 630 in the device for requesting a preamble). The processor 70 executes various functional applications and data processing of the computer device, i.e., the method for requesting a preamble described above, by executing software programs, instructions and modules stored in the memory 71.
The memory 71 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; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 71 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 71 may further include memory located remotely from the processor 70, which may be connected to a computer device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 72 may be used to receive input numeric or character information and generate key signal inputs relating to user settings and function controls of the computer apparatus. The output device 73 may include a display device such as a display screen.
Example eight
An eighth embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method for requesting a preamble, the method including:
the centralized node responds to a data acquisition request sent by the front-end processor, and locally inquires whether data to be requested sent by a service processing party is stored at present;
if so, the centralized node sends the data to be requested to the front-end processor so that the front-end processor requests a response service to a third-party server according to the data to be requested, wherein the front-end processor is used for isolating direct communication between the centralized node and the third-party server;
and the centralized node receives response result data of the data to be requested, which is acquired by the front-end processor from the third-party server, and provides the response result data to the service processing party.
The computer-executable instructions, when executed by a computer processor, are further operable to perform a method of requesting a preamble, the method comprising:
the front-end processor sends a data acquisition request to a centralized node, wherein the data acquisition request is used for indicating the centralized node to locally inquire whether to-be-requested data sent by a service processing party is stored;
if the front-end processor receives the data to be requested fed back by the centralized node, the front-end processor sends the data to be requested to a third-party server for requesting response service, wherein the front-end processor is used for isolating direct communication between the centralized node and the third-party server;
and the front-end processor sends response result data fed back by the third-party server aiming at the data to be requested to the centralized node so that the centralized node provides the response result data to the service processing party.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the method operations described above, and may also perform related operations in the method for requesting a preamble provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the device for requesting a front end, the included units and modules are only divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for requesting a preamble, comprising:
the centralized node responds to a data acquisition request sent by the front-end processor, and locally inquires whether data to be requested sent by a service processing party is stored at present;
if so, the centralized node sends the data to be requested to the front-end processor so that the front-end processor requests a response service to a third-party server according to the data to be requested, wherein the front-end processor is used for isolating direct communication between the centralized node and the third-party server;
and the centralized node receives response result data of the data to be requested, which is acquired by the front-end processor from the third-party server, and provides the response result data to the service processing party.
2. The method of claim 1, further comprising:
and the centralized node responds to the data to be requested uploaded by the service provider and locally stores the data to be requested.
3. The method of claim 1, wherein after the centralized node responds to the data obtaining request sent by the front-end processor, and locally inquires whether data to be requested sent by the service processor is currently stored, the method further comprises:
if not, after setting the waiting time at intervals, locally inquiring whether to store the data to be requested sent by the service processor at present;
and if not, sending a no-request data response to the front-end processor.
4. A method according to any of claims 1-3, wherein the centralized node communicates with the front-end processor via a long connection service.
5. A method for requesting a preamble, comprising:
the front-end processor sends a data acquisition request to a centralized node, wherein the data acquisition request is used for indicating the centralized node to locally inquire whether to-be-requested data sent by a service processing party is stored;
if the front-end processor receives the data to be requested fed back by the centralized node, the front-end processor sends the data to be requested to a third-party server for requesting response service, wherein the front-end processor is used for isolating direct communication between the centralized node and the third-party server;
and the front-end processor sends response result data fed back by the third-party server aiming at the data to be requested to the centralized node so that the centralized node provides the response result data to the service processing party.
6. The method of claim 5, after the front-end processor sends a get data request to a centralized node, further comprising:
and if the front-end processor receives the no-request data response fed back by the centralized node, the front-end processor resends the data acquisition request to the centralized node when the repeated acquisition condition is met.
7. An apparatus for requesting a preamble, comprising:
the data to be requested query module is used for enabling the centralized node to respond to a data acquisition request sent by the front-end processor and locally query whether the data to be requested sent by the service processing party is stored currently;
a to-be-requested data sending module, configured to send, if yes, the to-be-requested data to the front-end processor by the central node, so that the front-end processor requests a response service from a third-party server according to the to-be-requested data, where the front-end processor is configured to isolate direct connection communication between the central node and the third-party server;
a response result data receiving module, configured to enable the centralized node to receive response result data of the to-be-requested data, which is obtained by the front-end processor from the third-party server, and provide the response result data to the service processing party.
8. An apparatus for requesting a preamble, comprising:
the data acquisition request sending module is used for enabling the front-end processor to send a data acquisition request to the centralized node, wherein the data acquisition request is used for indicating whether to-be-requested data sent by a service processing party is stored in local inquiry of the centralized node;
a response service request module, configured to enable the front-end processor to send the data to be requested to a third-party server to request a response service if the front-end processor receives the data to be requested, which is fed back by the centralized node, where the front-end processor is configured to isolate direct communication between the centralized node and the third-party server;
and the response result data sending module is used for enabling the front-end processor to send the response result data fed back by the third-party server aiming at the data to be requested to the centralized node so as to enable the centralized node to provide the response result data to the service processing party.
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 processor implements the method of request front-pointing according to any of claims 1-6 when executing the program.
10. A storage medium containing computer-executable instructions for performing the method of request front end according to any one of claims 1-6 when executed by a computer processor.
CN201911212784.3A 2019-12-02 2019-12-02 Method and device for requesting preposition, computer equipment and storage medium Pending CN110943993A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911212784.3A CN110943993A (en) 2019-12-02 2019-12-02 Method and device for requesting preposition, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911212784.3A CN110943993A (en) 2019-12-02 2019-12-02 Method and device for requesting preposition, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110943993A true CN110943993A (en) 2020-03-31

Family

ID=69908678

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911212784.3A Pending CN110943993A (en) 2019-12-02 2019-12-02 Method and device for requesting preposition, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110943993A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114257611A (en) * 2021-11-19 2022-03-29 南方电网数字电网研究院有限公司 Data interaction method, device, equipment and medium based on front-end processor containerization

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060274761A1 (en) * 2005-06-06 2006-12-07 Error Christopher R Network architecture with load balancing, fault tolerance and distributed querying
CN109150702A (en) * 2018-08-16 2019-01-04 南京南瑞信息通信科技有限公司 A kind of the high-performance mobile access gateway and its method of communication information intranet and extranet
CN109246212A (en) * 2018-08-30 2019-01-18 上海艾融软件股份有限公司 A kind of multi-bank data interaction implementation method based on long connection
CN109508243A (en) * 2018-07-27 2019-03-22 江西贪玩信息技术有限公司 Service request processing method, device, computer equipment and storage medium
CN109962913A (en) * 2019-03-11 2019-07-02 北京信安世纪科技股份有限公司 Proxy server and Proxy Method based on secure socket layer protocol

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060274761A1 (en) * 2005-06-06 2006-12-07 Error Christopher R Network architecture with load balancing, fault tolerance and distributed querying
CN109508243A (en) * 2018-07-27 2019-03-22 江西贪玩信息技术有限公司 Service request processing method, device, computer equipment and storage medium
CN109150702A (en) * 2018-08-16 2019-01-04 南京南瑞信息通信科技有限公司 A kind of the high-performance mobile access gateway and its method of communication information intranet and extranet
CN109246212A (en) * 2018-08-30 2019-01-18 上海艾融软件股份有限公司 A kind of multi-bank data interaction implementation method based on long connection
CN109962913A (en) * 2019-03-11 2019-07-02 北京信安世纪科技股份有限公司 Proxy server and Proxy Method based on secure socket layer protocol

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114257611A (en) * 2021-11-19 2022-03-29 南方电网数字电网研究院有限公司 Data interaction method, device, equipment and medium based on front-end processor containerization

Similar Documents

Publication Publication Date Title
CN111580995B (en) Synchronous communication method and system of distributed cloud platform and Internet of things intelligent terminal based on MQTT asynchronous communication scene
EP3108634B1 (en) Facilitating third parties to perform batch processing of requests requiring authorization from resource owners for repeat access to resources
CN108881228B (en) Cloud registration activation method, device, equipment and storage medium
CN110633442A (en) Pushing method and device and electronic equipment
CN108055311B (en) HTTP asynchronous request method, device, server, terminal and storage medium
CN110601980B (en) Communication method, system and storage medium of vehicle-mounted terminal
CN110830282A (en) Method, device and equipment for configuring user plane function
CN112751847A (en) Interface call request processing method and device, electronic equipment and storage medium
CN110049031B (en) Interface security authentication method, server and authentication center server
CN111984849A (en) Information query method, device, equipment and medium
CN110943993A (en) Method and device for requesting preposition, computer equipment and storage medium
JP2024081633A (en) Processing service requests
WO2012000455A1 (en) Client terminal and load balancing method
CN114025005B (en) Data communication method, system, electronic equipment and storage medium
CN111385324A (en) Data communication method, device, equipment and storage medium
CN112131263B (en) Software package acquisition method, system, device, electronic equipment and storage medium
WO2022121492A1 (en) File transmission method and apparatus, computer device, and storage medium
CN112511440B (en) Message forwarding method, system, storage medium and electronic equipment
CN109361716B (en) Method and device for acquiring IP address, terminal equipment and storage medium
CN111385335B (en) Data request processing method, device, equipment and storage medium
CN109639795B (en) Service management method and device based on AcitveMQ message queue
CN112818183A (en) Data synthesis method and device, computer equipment and storage medium
CN111611134A (en) Time monitoring method and device, application terminal and storage medium
CN109117284A (en) Processing method, device, equipment and the storage medium of solicited message
CN111711620B (en) Method, device, equipment and storage medium for realizing bidirectional communication between applications

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200331