CN112311812A - Service system, method, device, computer equipment and storage medium - Google Patents

Service system, method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN112311812A
CN112311812A CN202011312023.8A CN202011312023A CN112311812A CN 112311812 A CN112311812 A CN 112311812A CN 202011312023 A CN202011312023 A CN 202011312023A CN 112311812 A CN112311812 A CN 112311812A
Authority
CN
China
Prior art keywords
service request
server
service
sending
response result
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
CN202011312023.8A
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 Baijia Technology Group Co ltd
Original Assignee
Beijing Baijia Technology Group 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 Baijia Technology Group Co ltd filed Critical Beijing Baijia Technology Group Co ltd
Priority to CN202011312023.8A priority Critical patent/CN112311812A/en
Publication of CN112311812A publication Critical patent/CN112311812A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • 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/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion

Landscapes

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

Abstract

The present disclosure provides a service system, a method, an apparatus, a computer device and a storage medium, wherein the service system includes: a processing server and a storage server; the storage server is used for acquiring and storing a service request initiated by the terminal equipment; after receiving a service request acquisition instruction sent by the processing server, sending the service request to the processing server; the processing server is used for generating a service request acquisition instruction and sending the service request acquisition instruction to the storage server; receiving a service request fed back by the storage server based on the file acquisition instruction; and generating a response result based on the service request, and sending the response result to the terminal equipment. According to the embodiment of the disclosure, by setting the storage server, the influence of losing the service request on the property of the user and the service performance of the application program when the processing server is restarted is avoided, and the service performance of the application program is improved.

Description

Service system, method, device, computer equipment and storage medium
Technical Field
The present disclosure relates to the field of computer application technologies, and in particular, to a service system, a method, an apparatus, a computer device, and a storage medium.
Background
Currently, a user triggers a corresponding service request based on an application installed on a terminal device, and the terminal device sends the service request to a processing server for processing; the processing server generates a corresponding response result to feed back to the terminal equipment after receiving the service request sent by the terminal equipment; when the developer of the application program deploys and modifies the application program, the processing server needs to be restarted; in the restart time period, the processing server cannot receive the service request sent by the terminal device, and the service request in the time period may be lost.
Disclosure of Invention
The embodiment of the disclosure at least provides a service system, a service method, a service device, computer equipment and a storage medium.
In a first aspect, an embodiment of the present disclosure provides a service system, including: a processing server and a storage server; the storage server is used for acquiring and storing a service request initiated by the terminal equipment; after receiving a service request acquisition instruction sent by the processing server, sending the service request to the processing server; the processing server is used for generating a service request acquisition instruction and sending the service request acquisition instruction to the storage server; receiving a service request fed back by the storage server based on the file acquisition instruction; and generating a response result based on the service request, and sending the response result to the terminal equipment.
In a possible implementation manner, the storage server, when storing the service request initiated by the terminal device, is configured to: and storing the service request to the tail of a preset service request queue.
In a possible implementation, the storage server, when sending the service request to the processing server, is configured to: determining N service requests from a queue head of the service request queue, and sending the N service requests to the processing server; wherein N is a positive integer greater than 0.
In one possible embodiment, the method further comprises: a first protocol conversion server; the first protocol conversion server is used for receiving a first service request sent by the terminal equipment; and packaging the first service request by utilizing a communication protocol between the first protocol conversion server and the storage server, generating the service request, and sending the service request to the storage server.
In one possible embodiment, the method further comprises: a second protocol conversion server; the processing server, when sending the response result to the terminal device, is configured to: sending the response result to the second protocol conversion server; and the second protocol conversion server is used for receiving the response result sent by the processing server, performing protocol conversion on the response result by using a communication protocol between the second protocol conversion server and the terminal equipment to obtain a target response result, and sending the target response result to the terminal equipment.
In a second aspect, an embodiment of the present disclosure provides a service method, which is applied to a storage server, and includes: acquiring and storing a service request initiated by terminal equipment; and after receiving a service request acquisition instruction sent by a processing server, sending the service request to the processing server.
In a possible implementation manner, the storing the service request initiated by the terminal device includes: and storing the service request to the tail of a preset service request queue.
In one possible embodiment, the sending the service request to the processing server includes: determining N service requests from a queue head of the service request queue, and sending the N service requests to the processing server; wherein N is a positive integer greater than 0.
In a third aspect, an embodiment of the present disclosure provides a service method applied to a processing server, including: generating a service request acquisition instruction, and sending the service request acquisition instruction to a storage server; receiving a service request fed back by the storage server based on the file acquisition instruction; and generating a response result based on the service request, and sending the response result to the terminal equipment.
In a possible implementation manner, the sending the response result to the terminal device includes: sending the response result to a second protocol conversion server; and enabling the second protocol conversion server to obtain a target response result based on the response result and the communication protocol between the second protocol conversion server and the terminal equipment, and sending the target response result to the terminal equipment.
In a fourth aspect, an embodiment of the present disclosure provides a service apparatus, applied to a storage server, including: the first processing module is used for acquiring and storing a service request initiated by the terminal equipment; and the sending module is used for sending the service request to the processing server after receiving a service request acquisition instruction sent by the processing server.
In a possible implementation manner, when storing a service request initiated by a terminal device, the first processing module is specifically configured to store the service request to a tail of a preset service request queue.
In a possible implementation manner, when sending the service request to the processing server, the sending module is specifically configured to determine N service requests from a queue head of the service request queue, and send the N service requests to the processing server; wherein N is a positive integer greater than 0.
In a fifth aspect, an embodiment of the present disclosure provides a service apparatus, applied to a processing server, including: the second processing module is used for generating a service request acquisition instruction and sending the service request acquisition instruction to the storage server; the receiving module is used for receiving a service request fed back by the storage server based on the file acquisition instruction; and the third processing module is used for generating a response result based on the service request and sending the response result to the terminal equipment.
In a possible implementation manner, when sending the response result to the terminal device, the third processing module is specifically configured to send the response result to the second protocol conversion server; and enabling the second protocol conversion server to obtain a target response result based on the response result and the communication protocol between the second protocol conversion server and the terminal equipment, and sending the target response result to the terminal equipment.
In a sixth aspect, this disclosure also provides a computer device, a processor, and a memory, where the memory stores machine-readable instructions executable by the processor, and the processor is configured to execute the machine-readable instructions stored in the memory, and the machine-readable instructions, when executed by the processor, perform the steps in any one of the possible implementations of the second and third aspects.
In a fourth aspect, alternative implementations of the present disclosure also provide a computer-readable storage medium having a computer program stored thereon, where the computer program is executed by a processor to perform the steps in any one of the possible implementations of the second and third aspects.
For the description of the effects of the service method, the service device, the computer device, and the storage medium, reference is made to the description of the service system, and details are not repeated here.
The service system, the method, the device, the computer equipment and the storage medium provided by the embodiment of the disclosure are characterized in that a storage server is arranged, the storage server receives and stores a service request sent by terminal equipment, a processing server generates a service request acquisition instruction and sends the service request acquisition instruction to the storage server, the storage server sends the service request to the processing server after receiving the service request acquisition instruction sent by the processing server, and the processing server generates a corresponding response result based on the service request and sends the response result to the terminal equipment after receiving the service request sent by the storage server. In the service system, because the service request initiated by the terminal equipment is stored on the storage server, the storage server should process the instruction of the server and then forwards the service request to the processing server; in the time period of restarting the processing server, the service request acquisition instruction can not be sent to the storage server any more, so the service request can be stored on the storage server all the time until the processing server is restarted, and the service request acquisition instruction is sent to the storage server again, thereby ensuring that the service request initiated by the terminal equipment can not be lost in the restarting process of the processing server.
In order to make the aforementioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for use in the embodiments will be briefly described below, and the drawings herein incorporated in and forming a part of the specification illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the technical solutions of the present disclosure. It is appreciated that the following drawings depict only certain embodiments of the disclosure and are therefore not to be considered limiting of its scope, for those skilled in the art will be able to derive additional related drawings therefrom without the benefit of the inventive faculty.
FIG. 1 is a block diagram illustrating a service system provided by an embodiment of the present disclosure;
FIG. 2 illustrates another service system architecture provided by embodiments of the present disclosure;
FIG. 3 is a flow chart illustrating a service method applied to a storage server according to an embodiment of the present disclosure;
FIG. 4 is a flow chart illustrating a service method applied to a processing server according to an embodiment of the disclosure;
FIG. 5 is a logic flow diagram illustrating an overall implementation of a service system provided by an embodiment of the present disclosure;
FIG. 6 is a schematic diagram illustrating a service apparatus applied to a storage server according to an embodiment of the present disclosure;
FIG. 7 is a schematic diagram of a service device applied to a processing server according to an embodiment of the disclosure;
fig. 8 shows a schematic structural diagram of a computer device provided by an embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, not all of the embodiments. The components of embodiments of the present disclosure, as generally described and illustrated herein, may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present disclosure is not intended to limit the scope of the disclosure, as claimed, but is merely representative of selected embodiments of the disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the disclosure without making creative efforts, shall fall within the protection scope of the disclosure.
Research shows that when a user uses an application program installed on the terminal device, the user can trigger a corresponding service request, and the terminal device can send the service request to the processing server; the processing server generates a corresponding response result after receiving a service request sent by the terminal equipment; then feeding back the response result to the terminal equipment; but when the developer of the application program deploys and modifies the application program, the processing server needs to be restarted; during the restart time period, the user may continue to trigger the service request through the application installed on the terminal device, and the terminal device may also continue to send the service request to the processing server, but the processing server at this time has no way to receive the service request, and a situation that the service request is lost occurs, which affects the service performance of the application.
Based on the research, the disclosure provides a service system, a method, a device, a computer device and a readable storage medium, wherein a storage server is arranged, a service request initiated by a terminal device is stored on the storage server, and the storage server processes an instruction of the server and forwards the service request to a processing server; in the time period of restarting the processing server, the service request acquisition instruction cannot be sent to the storage server, so that the service request can be stored on the storage server all the time until the processing server is restarted, and the service request acquisition instruction is sent to the storage server again, so that the service request initiated by the terminal equipment cannot be lost in the restarting process of the processing server.
The above-mentioned drawbacks are the results of the inventor after practical and careful study, and therefore, the discovery process of the above-mentioned problems and the solutions proposed by the present disclosure to the above-mentioned problems should be the contribution of the inventor in the process of the present disclosure.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In some possible embodiments, the service system, method, apparatus, and the like provided by the present disclosure may be applied to a scenario including an interaction scenario between any client and server in the internet, such as instant messaging, online education, live broadcast, and the like, without limitation.
As shown in fig. 1, a structure diagram of a service system provided in an embodiment of the present invention includes: a storage server 10, and a processing server 20.
The storage server 10 is configured to acquire and store a service request initiated by a terminal device; after receiving a service request acquisition instruction sent by a processing server, sending a service request to the processing server;
the processing server 20 is configured to generate a service request obtaining instruction and send the service request obtaining instruction to the storage server; receiving a service request fed back by a storage server based on a file acquisition instruction; and generating a response result based on the service request, and sending the response result to the terminal equipment.
According to the embodiment of the disclosure, by setting the storage server, the storage server receives and stores a service request sent by the terminal device, the processing server generates a service request acquisition instruction and sends the service request acquisition instruction to the storage server, the storage server sends the service request to the processing server after receiving the service request acquisition instruction sent by the processing server, and the processing server generates a corresponding response result based on the service request and sends the response result to the terminal device after receiving the service request sent by the storage server. In the service system, because the service request initiated by the terminal equipment is stored on the storage server, the storage server should process the instruction of the server and then forwards the service request to the processing server; in the time period of restarting the processing server, the service request acquisition instruction can not be sent to the storage server any more, so the service request can be stored on the storage server all the time until the processing server is restarted, and the service request acquisition instruction is sent to the storage server again, thereby ensuring that the service request initiated by the terminal equipment can not be lost in the restarting process of the processing server.
In an embodiment, referring to fig. 2, the service system provided in the embodiment of the present disclosure further includes at least one of the following: a first protocol conversion server 30, a second protocol conversion server 40, and a terminal device 50;
the storage server 10, the processing server 20, the first protocol conversion server 30, the second protocol conversion server 40, and the terminal device 50 will be described in detail below.
For the terminal device 50, the terminal device 50 includes, for example: computers, mobile phones, tablet computers, and the like. The terminal device 50 generates a service request in response to a user trigger based on an application installed on the terminal device, such as shopping software, a browser, chat software, learning software, and the like.
In one possible embodiment, the terminal device 50 may send the server request directly to the storage server 10; the storage server receives and stores the service request transmitted from the terminal device 50.
The service request may include, for example: financial transaction requests, information acquisition requests, information conversion requests, and the like.
The storage server 10 may generate a service request queue to store the received service requests in order, and store the service requests to the tail of the service request queue after receiving a new service request, for example.
In some possible embodiments, the service request queue may be a normal queue or a circular queue, which is not described in detail herein.
In another possible embodiment, the terminal device 50 generates a first service request based on a trigger of a user (for example, click, double click, shake, scan a two-dimensional code, and the like), and sends the first service request to the first protocol conversion server 30, after receiving the first service request sent by the terminal device 50, the first protocol conversion server 30 encapsulates the first service request by using a communication protocol between the first protocol conversion server 30 and the storage server 10, generates a service request, and sends the service request to the storage server 10, and the storage server 10 receives and stores the service request sent by the first protocol conversion server 30.
Illustratively, the terminal device 50 communicates with the first Protocol conversion server 30 via a HyperText Transfer Protocol (HTTP) Protocol; there is no communication protocol applicable between the terminal device 50 and the storage server 10, and the first protocol conversion server 30 communicates with the storage server 10 through a customized communication protocol; therefore, the terminal device 50 sends the first service request to the first protocol conversion server based on the HTTP protocol, after receiving the first service request sent by the terminal device 50, the first protocol conversion server 30 encapsulates the first service request by using the communication protocol between the first protocol conversion server 30 and the storage server 10 to generate a service request, the service request is adapted to the customized communication protocol, and the first protocol conversion server 30 sends the service request to the storage server 10 based on the customized communication protocol.
The processing server 20 generates a service request acquisition instruction and transmits the service request acquisition instruction to the storage server 10.
Wherein, the processing server 20 may generate a service request acquisition instruction based on a fixed time interval, for example; or the processing server can judge whether to generate a new file acquisition instruction based on the processing capacity of the processing server; or the request service queue can automatically send out a request when the data is full (or reaches a set quantity threshold value); or a combination of the above ways, for example, issuing once every hour when it is determined that a new file is generated, and the like. The service request acquisition instruction is used for the processing server 20 to acquire the service request stored on the storage server 10 sent by the terminal device 50, and the service request acquisition instruction may include, for example, the number information of the service requests, the number information based on the number information, or the corresponding number of service requests.
The storage server 10, upon receiving the service request acquisition instruction sent by the processing server 20, feeds back the service request to the processing server 20.
The storage server 10 may determine a corresponding number of service requests to the queue head of the storage service request queue based on the service request quantity information in the service request acquisition instruction, and feed back the corresponding number of service requests to the processing server 10.
Illustratively, the number information of the service requests in the service request acquisition instruction is 10, new service requests are continuously stored at the tail of the queue of the service request queue in the storage server 10, and the storage server 10 determines 10 service requests from the head of the queue based on the number information and feeds the service requests back to the processing server 20. If the number of service requests in the current service request queue does not reach 10, all the service requests in the queue can be fed back to the processing server 20; or may wait for a preset time threshold, for example, one minute, determine 10 service requests from the queue head to be fed back to the processing server 20 if the number of service requests in the service request queue in the time period reaches or exceeds 10, and feed back all service requests in the queue to the processing server 20 if the number of service requests in the service request queue in the time period is still less than 10.
The storage server 10 determines a corresponding number of service requests from the head of the queue and transmits the service requests to the processing server 10, and then deletes the determined service requests from the queue.
After receiving the service request fed back by the storage server 10, the processing server 20 generates a corresponding response result based on the acquired service request, and directly transmits the generated response result to the corresponding terminal device 50.
The service request carries a user identifier, the response result generated by the processing server 20 based on the service request also carries the user identifier, and the processing server 20 sends the response result to the corresponding terminal device 50 based on the user identifier carried in the response result.
In a possible embodiment, when sending the response result to the terminal device 50, the processing server may send the response result to the second protocol conversion server 40, and after receiving the response result sent by the processing server 20, the second protocol conversion server 40 performs protocol conversion on the response result by using the communication protocol between the second protocol conversion server 40 and the terminal device 50 to obtain a target response result, and sends the target response result to the terminal device 50.
The terminal device 50 receives the response result sent by the processing server 20 or the second protocol conversion server 40 and displays the response result to the user.
Based on the same inventive concept, a service method corresponding to the service system is also provided in the embodiments of the present disclosure, and as the principle of solving the problem of the method in the embodiments of the present disclosure is similar to that of the service system in the embodiments of the present disclosure, the implementation of the method can refer to the implementation of the system, and repeated details are not repeated.
To facilitate understanding of the present embodiment, a service method disclosed in the embodiments of the present disclosure is described in detail, and in some possible implementations, the service method may be implemented by a processor calling a computer readable instruction stored in a memory.
The following describes a service method provided by the embodiment of the present disclosure by taking an execution subject as a storage server as an example.
Referring to fig. 3, a flowchart of a service method applied to a storage server according to an embodiment of the present disclosure is provided, where the method includes the following steps:
s301: acquiring and storing a service request initiated by terminal equipment;
s302: and after receiving a service request acquisition instruction sent by the processing server, sending a service request to the processing server.
In a possible implementation manner, the storing the service request initiated by the terminal device includes: and storing the service request to the tail of a preset service request queue.
In one possible embodiment, the sending the service request to the processing server includes: determining N service requests from a queue head of the service request queue, and sending the N service requests to the processing server; wherein N is a positive integer greater than 0.
The following describes a service method provided by the embodiment of the present disclosure by taking an execution subject as a processing server as an example.
Referring to fig. 4, there is provided a flowchart of a service method applied to a processing server according to an embodiment of the present disclosure, where the method includes the following steps:
s401: generating a service request acquisition instruction, and sending the service request acquisition instruction to a storage server;
s402: receiving a service request fed back by a storage server based on a file acquisition instruction;
s403: and generating a response result based on the service request, and sending the response result to the terminal equipment.
In a possible implementation manner, the sending the response result to the terminal device includes: sending the response result to a second protocol conversion server; and enabling the second protocol conversion server to obtain a target response result based on the response result and the communication protocol between the second protocol conversion server and the terminal equipment, and sending the target response result to the terminal equipment.
It will be understood by those skilled in the art that in the method of the present invention, the order of writing the steps does not imply a strict order of execution and any limitations on the implementation, and the specific order of execution of the steps should be determined by their function and possible inherent logic.
As shown in fig. 5, an overall implementation logic flowchart of a service system provided in the embodiment of the present disclosure includes:
step 1: the terminal device 50 generates a first service request, and transmits the first service request to the first protocol conversion server 30;
step 2: after receiving the first service request sent by the terminal device 50, the first protocol conversion server 30 encapsulates the first service request by using a communication protocol between the first protocol conversion server 30 and the storage server 10 to generate a service request, and sends the service request to the storage server 10;
and step 3: the storage server 10, after receiving the service request sent by the first protocol conversion server 30, stores the service request, for example, may store the service request to the tail of a preset service request queue.
And 4, step 4: the processing server 20 generates a service request acquisition instruction and sends the service request acquisition instruction to the storage server 10;
and 5: after receiving the service request acquisition instruction sent by the processing server 20, the storage server 10 feeds back the service request to the processing server 20;
step 6: after receiving the service request fed back by the storage server 10, the processing server 20 generates a response result based on the service request, and sends the response result to the second protocol conversion server 30;
and 7: after receiving the response result sent by the processing server 20, the second protocol conversion server 30 performs protocol conversion on the response result by using the communication protocol between the second protocol conversion server 30 and the terminal device 50 to obtain a target response result, and sends the target response result to the terminal device 50;
and 8: the terminal device 50 receives the target response result transmitted by the second protocol conversion server 30.
Based on the same inventive concept, a service device corresponding to the service method is also provided in the embodiments of the present disclosure, and as the principle of solving the problem of the device in the embodiments of the present disclosure is similar to the service method described above in the embodiments of the present disclosure, the implementation of the device may refer to the implementation of the method, and repeated details are not described.
Referring to fig. 6, a schematic diagram of a service apparatus applied to a storage server according to an embodiment of the present disclosure is provided, where the apparatus includes: a first processing module 601 and a sending module 602; wherein the content of the first and second substances,
a first processing module 601, configured to acquire and store a service request initiated by a terminal device;
the sending module 602 is configured to send the service request to the processing server after receiving a service request acquisition instruction sent by the processing server.
In a possible implementation manner, when storing a service request initiated by a terminal device, the first processing module is specifically configured to store the service request to a tail of a preset service request queue.
In a possible implementation manner, when sending the service request to the processing server, the sending module is specifically configured to determine N service requests from a queue head of the service request queue, and send the N service requests to the processing server; wherein N is a positive integer greater than 0.
Referring to fig. 7, a schematic diagram of a service apparatus applied to a processing server according to an embodiment of the present disclosure is shown, where the apparatus includes: a second processing module 701, a receiving module 702, and a third processing module 703; wherein the content of the first and second substances,
the second processing module 701 is configured to generate a service request acquisition instruction, and send the service request acquisition instruction to a storage server;
a receiving module 702, configured to receive a service request fed back by the storage server based on the file obtaining instruction;
the third processing module 703 is configured to generate a response result based on the service request, and send the response result to the terminal device.
In a possible implementation manner, when sending the response result to the terminal device, the third processing module is specifically configured to send the response result to the second protocol conversion server; and enabling the second protocol conversion server to obtain a target response result based on the response result and the communication protocol between the second protocol conversion server and the terminal equipment, and sending the target response result to the terminal equipment.
The description of the processing flow of each module in the device and the interaction flow between the modules may refer to the related description in the above method embodiments, and will not be described in detail here.
An embodiment of the present disclosure further provides a computer device, as shown in fig. 8, which is a schematic structural diagram of the computer device provided in the embodiment of the present disclosure, and the computer device includes:
a processor 81 and a memory 82; the memory 82 stores machine-readable instructions executable by the processor 81, the processor 81 being configured to execute the machine-readable instructions stored in the memory 82, the processor 81 performing the following steps when the machine-readable instructions are executed by the processor 81:
acquiring and storing a service request initiated by terminal equipment;
and after receiving a service request acquisition instruction sent by a processing server, sending the service request to the processing server.
Alternatively, when the machine readable instructions are executed by the processor 81, the processor 81 performs the steps of:
generating a service request acquisition instruction, and sending the service request acquisition instruction to a storage server;
receiving a service request fed back by the storage server based on the file acquisition instruction;
and generating a response result based on the service request, and sending the response result to the terminal equipment.
The memory 82 includes a memory 821 and an external memory 822; the memory 821 is also referred to as an internal memory and temporarily stores operation data in the processor 81 and data exchanged with the external memory 822 such as a hard disk, and the processor 81 exchanges data with the external memory 822 through the memory 821.
The specific execution process of the instruction may refer to the steps of the service method described in the embodiments of the present disclosure, and details are not described here.
The embodiments of the present disclosure also provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, performs the steps of the service method described in the above method embodiments. The storage medium may be a volatile or non-volatile computer-readable storage medium.
The embodiments of the present disclosure also provide a computer program product, where the computer program product carries a program code, and instructions included in the program code may be used to execute the steps of the service method described in the foregoing method embodiments, which may be referred to specifically in the foregoing method embodiments, and are not described herein again.
The computer program product may be implemented by hardware, software or a combination thereof. In an alternative embodiment, the computer program product is embodied in a computer storage medium, and in another alternative embodiment, the computer program product is embodied in a Software product, such as a Software Development Kit (SDK), or the like.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, apparatus, and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present disclosure. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above-mentioned embodiments are merely specific embodiments of the present disclosure, which are used for illustrating the technical solutions of the present disclosure and not for limiting the same, and the scope of the present disclosure is not limited thereto, and although the present disclosure is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive of the technical solutions described in the foregoing embodiments or equivalent technical features thereof within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present disclosure, and should be construed as being included therein. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (14)

1. A service system, comprising: a processing server and a storage server;
the storage server is used for acquiring and storing a service request initiated by the terminal equipment; after receiving a service request acquisition instruction sent by the processing server, sending the service request to the processing server;
the processing server is used for generating a service request acquisition instruction and sending the service request acquisition instruction to the storage server; receiving a service request fed back by the storage server based on the file acquisition instruction; and generating a response result based on the service request, and sending the response result to the terminal equipment.
2. The service system according to claim 1, wherein the storage server, when storing the service request initiated by the terminal device, is configured to:
and storing the service request to the tail of a preset service request queue.
3. The service system of claim 2, wherein the storage server, when sending the service request to the processing server, is configured to:
determining N service requests from a queue head of the service request queue, and sending the N service requests to the processing server; wherein N is a positive integer greater than 0.
4. The service system according to any one of claims 1 to 3, further comprising: a first protocol conversion server;
the first protocol conversion server is used for receiving a first service request sent by the terminal equipment; and packaging the first service request by utilizing a communication protocol between the first protocol conversion server and the storage server, generating the service request, and sending the service request to the storage server.
5. The service system according to any one of claims 1 to 3, further comprising: a second protocol conversion server;
the processing server, when sending the response result to the terminal device, is configured to: sending the response result to the second protocol conversion server;
and the second protocol conversion server is used for receiving the response result sent by the processing server, performing protocol conversion on the response result by using a communication protocol between the second protocol conversion server and the terminal equipment to obtain a target response result, and sending the target response result to the terminal equipment.
6. A service method is applied to a storage server and comprises the following steps:
acquiring and storing a service request initiated by terminal equipment;
and after receiving a service request acquisition instruction sent by a processing server, sending the service request to the processing server.
7. The service method of claim 6, wherein storing the service request initiated by the terminal device comprises:
and storing the service request to the tail of a preset service request queue.
8. The service method of claim 7, wherein said sending the service request to the processing server comprises:
determining N service requests from a queue head of the service request queue, and sending the N service requests to the processing server; wherein N is a positive integer greater than 0.
9. A service method is applied to a processing server and comprises the following steps:
generating a service request acquisition instruction, and sending the service request acquisition instruction to a storage server;
receiving a service request fed back by the storage server based on the file acquisition instruction;
and generating a response result based on the service request, and sending the response result to the terminal equipment.
10. The service method according to claim 9, wherein the sending the response result to the terminal device includes:
sending the response result to a second protocol conversion server; and enabling the second protocol conversion server to obtain a target response result based on the response result and the communication protocol between the second protocol conversion server and the terminal equipment, and sending the target response result to the terminal equipment.
11. A service device, applied to a storage server, includes:
the first processing module is used for acquiring and storing a service request initiated by the terminal equipment;
and the sending module is used for sending the service request to the processing server after receiving a service request acquisition instruction sent by the processing server.
12. A service device, applied to a processing server, includes:
the second processing module is used for generating a service request acquisition instruction and sending the service request acquisition instruction to the storage server;
the receiving module is used for receiving a service request fed back by the storage server based on the file acquisition instruction;
and the third processing module is used for generating a response result based on the service request and sending the response result to the terminal equipment.
13. A computer device, comprising: a processor, a memory storing machine readable instructions executable by the processor, the processor for executing machine readable instructions stored in the memory, the machine readable instructions when executed by the processor, the processor performing the steps of the service method of any of claims 6 to 10.
14. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when executed by a computer device, performs the steps of the service method according to any one of claims 6 to 10.
CN202011312023.8A 2020-11-20 2020-11-20 Service system, method, device, computer equipment and storage medium Pending CN112311812A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011312023.8A CN112311812A (en) 2020-11-20 2020-11-20 Service system, method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011312023.8A CN112311812A (en) 2020-11-20 2020-11-20 Service system, method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112311812A true CN112311812A (en) 2021-02-02

Family

ID=74336065

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011312023.8A Pending CN112311812A (en) 2020-11-20 2020-11-20 Service system, method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112311812A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106250432A (en) * 2016-07-26 2016-12-21 浪潮软件股份有限公司 A kind of hbase fault-tolerance approach based on persistence MQ
CN107391268A (en) * 2016-05-17 2017-11-24 阿里巴巴集团控股有限公司 service request processing method and device
CN109040094A (en) * 2018-08-21 2018-12-18 郑州云海信息技术有限公司 A kind of method and system for realizing asynchronous RPC based on RabbitMQ
US20190020533A1 (en) * 2017-07-17 2019-01-17 Vmware, Inc. Data channel between a client and a restartable service
CN109271265A (en) * 2018-09-29 2019-01-25 平安科技(深圳)有限公司 Request processing method, device, equipment and storage medium based on message queue
CN110661849A (en) * 2019-08-30 2020-01-07 中国人民财产保险股份有限公司 Request processing method and device, electronic equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107391268A (en) * 2016-05-17 2017-11-24 阿里巴巴集团控股有限公司 service request processing method and device
CN106250432A (en) * 2016-07-26 2016-12-21 浪潮软件股份有限公司 A kind of hbase fault-tolerance approach based on persistence MQ
US20190020533A1 (en) * 2017-07-17 2019-01-17 Vmware, Inc. Data channel between a client and a restartable service
CN109040094A (en) * 2018-08-21 2018-12-18 郑州云海信息技术有限公司 A kind of method and system for realizing asynchronous RPC based on RabbitMQ
CN109271265A (en) * 2018-09-29 2019-01-25 平安科技(深圳)有限公司 Request processing method, device, equipment and storage medium based on message queue
CN110661849A (en) * 2019-08-30 2020-01-07 中国人民财产保险股份有限公司 Request processing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
WO2020140683A1 (en) Task scheduling method and apparatus, computer device, and storage medium
US20170329565A1 (en) Information processing method, client, server, and computer-readable storage medium
CN109660594B (en) Directional pushing method, display method, device and equipment for business processing result
CN110750222A (en) Printing method, printing device, computer equipment and storage medium
CN107463563B (en) Information service processing method and device of browser
CN112947830A (en) Popup window display method and device, computer equipment and storage medium
WO2021169674A1 (en) Processing method and apparatus for service data
WO2017092594A1 (en) Information processing method and device
CN111182065A (en) Message processing method and device based on MQTT protocol and computer equipment
EP2857948A1 (en) Method, device and system for shunting information in graphic code
CN113242308B (en) Information pushing method, device, equipment and storage medium
US11954396B2 (en) Screen projection status determining method and apparatus
CN108900627B (en) Network request method, terminal device and storage medium
CN110928887A (en) Data processing method and device
CN108933947B (en) Bullet screen display method and device
CN113923181B (en) Group message processing method, device, system and storage medium
CN110826001A (en) Data acquisition request processing method and device, computer equipment and storage medium
US20210112025A1 (en) Method and server for processing messages
CN106487653B (en) Message processing method and server
CN106095886B (en) Data processing method and device
CN106533891B (en) Group-based information processing method and device
CN112311812A (en) Service system, method, device, computer equipment and storage medium
CN114090183B (en) Application starting method and device, computer equipment and storage medium
EP2700023B1 (en) Reducing latency for served applications by anticipatory preprocessing
CN110545296A (en) Log data acquisition method, device and equipment

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

Application publication date: 20210202

RJ01 Rejection of invention patent application after publication