CN110505257A - Request message processing method and processing device - Google Patents

Request message processing method and processing device Download PDF

Info

Publication number
CN110505257A
CN110505257A CN201810474113.3A CN201810474113A CN110505257A CN 110505257 A CN110505257 A CN 110505257A CN 201810474113 A CN201810474113 A CN 201810474113A CN 110505257 A CN110505257 A CN 110505257A
Authority
CN
China
Prior art keywords
request message
target process
process outcome
server
judging 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
CN201810474113.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 Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum 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 Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201810474113.3A priority Critical patent/CN110505257A/en
Publication of CN110505257A publication Critical patent/CN110505257A/en
Pending legal-status Critical Current

Links

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/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • 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

Abstract

The invention discloses a kind of request message processing method and processing devices, receive the first request message for indicating the first user end to server request target process outcome;When not preserving target process outcome in the caching system of server, then judge in the Message Processing queue of server whether to include the second request message for indicating the second user end to server request target process outcome, obtain the second judging result;The first request message is handled according to the second judging result.The above method and device, when the first request message that the first client is sent cannot hit caching system, directly the first request message is not handled, but judge whether have in message queue for indicating the second user end to server request target process outcome request message, the first request message is handled according to judging result, it can guarantee the identical request message that multi-client is sent, the same time only handles one, avoids the obstruction of server.

Description

Request message processing method and processing device
Technical field
The present invention relates to fields of communication technology, and in particular to a kind of request message processing method and processing device.
Background technique
In computer field, there are a large amount of client and server end architectures, one or more is even a large amount of Client be connected to server end, interacted with server end, and serviced, to meet the needs of client.
Currently, one server end may mention simultaneously with the needs that business increases for 100,000 even clients up to a million For service, in this way, just unavoidably there is multiple and different clients that can initiate simultaneously or in a very short period of time to server end Identical request message.In this case, if request message treatment process is fairly simple, server end if, can be in time by phase The processing result answered feeds back to multiple and different clients, still, if request message treatment process is more complicated (for example, right The treatment process of request message includes the data query operation needed by 30s), server end due to need simultaneously to it is multiple this The request message of sample is handled, therefore will cause the obstruction of server end, and then can not be anti-by corresponding processing result in time It feeds multiple and different clients.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind The request message processing method and processing device of problem is stated, concrete scheme is as follows:
A kind of request message processing method, which comprises
The first request message of the first client transmission is received, first request message is for indicating first client It holds to server request target process outcome;
Judge whether preserve the target process outcome in the caching system of the server, obtains the first judgement knot Fruit;
When first judging result indicates not preserve the target process outcome in the caching system, then judge Whether include the second request message in the Message Processing queue of the server, obtains the second judging result, second request Message is for indicating the second client to target process outcome described in the server request;
First request message is handled according to second judging result.
It is optionally, described that first request message is handled according to second judging result, comprising:
When second judging result indicates in the Message Processing queue to include second request message, then in institute It states server to carry out after handling the generation target process outcome second request message, by the target process outcome It stores into the caching system, and the target process outcome is fed back into first client.
It is optionally, described that first request message is handled according to second judging result, comprising:
When second judging result indicates in the Message Processing queue not including second request message, then will First request message is added in the Message Processing queue, and is carried out in the server to first request message After processing generates the target process outcome, the target process outcome is stored into the caching system, and will be described Target process outcome feeds back to first client.
Optionally, the method also includes:
It, then will be described when first judging result indicates to preserve the target process outcome in the caching system The target process outcome saved in caching system feeds back to first client.
Optionally, before receiving the first request message that the first client is sent, the method also includes:
Caching system and Message Processing queue are initialized.
A kind of request message processing unit, described device include:
Receiving unit, for receiving the first request message of the first client transmission, first request message is used for table Show the first user end to server request target process outcome;
Whether the first judging unit preserves the target processing knot in the caching system for judging the server Fruit obtains the first judging result;
Second judgment unit, for indicating not preserving the target in the caching system when first judging result When processing result, then judges in the Message Processing queue of the server whether to include the second request message, obtain the second judgement As a result, second request message is for indicating the second client to target process outcome described in the server request;
Processing unit, for being handled according to second judging result first request message.
Optionally, the processing unit is specifically used for:
It, then will be described when first judging result indicates to preserve the target process outcome in the caching system The target process outcome saved in caching system feeds back to first client;
When second judging result indicates in the Message Processing queue to include second request message, then in institute It states server to carry out after handling the generation target process outcome second request message, by the target process outcome It stores into the caching system, and the target process outcome is fed back into first client;
When second judging result indicates in the Message Processing queue not including second request message, then will First request message is added in the Message Processing queue, and is carried out in the server to first request message After processing generates the target process outcome, the target process outcome is stored into the caching system, and will be described Target process outcome feeds back to first client.
Optionally, described device further include:
Initialization unit, for caching system and disappearing before receiving the first request message that the first client is sent Breath processing queue is initialized.
A kind of storage medium, is stored thereon with program, realizes that request as described above disappears when which is executed by processor Cease processing method.
A kind of processor, the processor is for running program, wherein executes when described program is run and asks as described above Seek message treatment method.
By above-mentioned technical proposal, request message processing method and processing device provided by the invention receives the first client hair The first request message sent, first request message is for indicating at the first user end to server request target Manage result;Judge whether preserve the target process outcome in the caching system of the server, obtains the first judging result; When first judging result indicates not preserve the target process outcome in the caching system, then the service is judged Whether include the second request message in the Message Processing queue of device, obtains the second judging result, second request message is used for Indicate the second client to target process outcome described in the server request;According to second judging result to described First request message is handled.The above method and device, when the first client send the first request message cannot hit it is slow When deposit system, directly the first request message is not handled, but judges whether have in message queue for indicating the second visitor Family end is handled the first request message to server request target process outcome request message, according to judging result, It can guarantee the identical request message that multi-client is sent, the same time only handles one, avoids the resistance of server end Plug.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows a kind of flow diagram of request message processing method provided by the invention;
Fig. 2 shows the flow diagrams of another request message processing method provided by the invention;
Fig. 3 shows a kind of structural schematic diagram of request message processing unit provided by the invention;
Fig. 4 shows the structural schematic diagram of another request message processing unit provided by the invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
Attached drawing 1 is please referred to, Fig. 1 is a kind of flow diagram of request message processing method provided by the invention, this method Specifically comprise the following steps:
Step S100, the first request message that the first client is sent is received, first request message is for indicating institute It states the first client request and obtains target process outcome;
Step S110, judge whether preserve the target process outcome in the caching system of the server, obtain One judging result;
It should be noted that when first judging result indicates to preserve the target processing knot in the caching system When fruit, then the target process outcome saved in the caching system is fed back into first client.
When first judging result indicates to preserve the target process outcome in the caching system, illustrate to service Device end received this from other clients or active client before the request message for receiving active client transmission Request message, and processing is carried out to the request message and generates target process outcome, and by the target process outcome store to In caching system.
Step S120, when first judging result indicates not preserving the target process outcome in the caching system When, then judge in the Message Processing queue of the server whether to include the second request message, obtains the second judging result, it is described Second request message is for indicating the second client to target process outcome described in the server request;
First judging result is indicated not preserving the target process outcome in the caching system, be referred specifically to Server end did not received this from other clients or active client before receiving the request message that current family end is sent Request message, although not being successfully processed this alternatively, received the request message from other clients or active client Request message generates target process outcome, causes not preserving the target process outcome in caching system.
The caching system of the server refers specifically to carry out the memory of high-speed data exchange.In the present embodiment, The corresponding processing knot that server carries out processing generation to different request messages is stored in the caching system of the server Fruit.Since the hardware condition of server limits, the message that may cause server cannot send client is handled in real time, this When, server can then will be unable to the message handled in real time in a certain order (for example, according to the elder generation for receiving the message moment It saves afterwards) medium to be processed to Message Processing queue.For a certain client, the message sent to server is used for table The processing result for showing the user end to server request is then target process outcome, and target process outcome may be stored in clothes It is engaged in being stored in the caching system of server in the caching system of device, when target process outcome is not stored in server Caching system in when, server then needs to handle the request, if cannot handle in real time, can add the request Into Message Processing queue.
Step S130, first request message is handled according to second judging result.
Specifically, when second judging result indicates to include second request message in the Message Processing queue When, then after carrying out the processing generation target process outcome to second request message in the server, by the mesh Mark processing result is stored into the caching system, and the target process outcome is fed back to first client.
When second judging result indicates in the Message Processing queue not including second request message, then will First request message is added in the Message Processing queue, and is carried out in the server to first request message After processing generates the target process outcome, the target process outcome is stored into the caching system, and will be described Target process outcome feeds back to first client.
Request message processing method provided in this embodiment receives the first request message that the first client is sent, described First request message is for indicating the first user end to server request target process outcome;Judge the server Caching system in whether preserve the target process outcome, obtain the first judging result;When the first judging result table Show when not preserving the target process outcome in the caching system, then judge be in the Message Processing queue of the server No includes the second request message, obtains the second judging result, and second request message is for indicating the second client to described Target process outcome described in server request;According to second judging result to first request message at Reason.The above method is not requested first directly when the first request message that the first client is sent cannot hit caching system Message is handled, but judges whether have in message queue for indicating at the second user end to server request target Result request message is managed, the first request message is handled according to judging result, can guarantee that multi-client is sent identical Request message, the same time only handles one, avoids the obstruction of server end.
Attached drawing 2 is please referred to, Fig. 2 is the flow diagram of another request message processing method provided by the invention, the party Method specifically comprises the following steps:
Step S200, caching system and Message Processing queue are initialized.
It should be noted that before receiving the request message that client is sent, to caching system and Message Processing queue It is initialized, to guarantee that current cache system and Message Processing queue are in last state.
Step S210, the first request message that the first client is sent is received, first request message is for indicating institute State the first user end to server request target process outcome;
Step S220, judge whether preserve the target process outcome in the caching system of the server, obtain One judging result;
It should be noted that when first judging result indicates to preserve the target processing knot in the caching system When fruit, then the target process outcome saved in the caching system is fed back into first client.
When first judging result indicates to preserve the target process outcome in the caching system, illustrate to service Device end received this from other clients or active client before the request message for receiving active client transmission Request message, and processing is carried out to the request message and generates target process outcome, and by the target process outcome store to In caching system.
Step S230, when first judging result indicates not preserving the target process outcome in the caching system When, then judge in the Message Processing queue of the server whether to include the second request message, obtains the second judging result, it is described Second request message is for indicating the second client to target process outcome described in the server request;
First judging result is indicated not preserving the target process outcome in the caching system, be referred specifically to Server end did not received this from other clients or active client before receiving the request message that current family end is sent Request message, although not being successfully processed this alternatively, received the request message from other clients or active client Request message generates target process outcome, causes not preserving the target process outcome in caching system.
Step S240, first request message is handled according to second judging result.
Specifically, when second judging result indicates to include second request message in the Message Processing queue When, then after carrying out the processing generation target process outcome to second request message in the server, by the mesh Mark processing result is stored into the caching system, and the target process outcome is fed back to first client.
When second judging result indicates in the Message Processing queue not including second request message, then will First request message is added in the Message Processing queue, and is carried out in the server to first request message After processing generates the target process outcome, the target process outcome is stored into the caching system, and will be described Target process outcome feeds back to first client.
Request message processing method provided in this embodiment receives the first request message that the first client is sent, described First request message is for indicating the first user end to server request target process outcome;Judge the server Caching system in whether preserve the target process outcome, obtain the first judging result;When the first judging result table Show when not preserving the target process outcome in the caching system, then judge be in the Message Processing queue of the server No includes the second request message, obtains the second judging result, and second request message is for indicating the second client to described Target process outcome described in server request;According to second judging result to first request message at Reason.The above method is not requested first directly when the first request message that the first client is sent cannot hit caching system Message is handled, but judges whether have in message queue for indicating at the second user end to server request target Result request message is managed, the first request message is handled according to judging result, can guarantee that multi-client is sent identical Request message, the same time only handles one, avoids the obstruction of server end.
Attached drawing 3 is please referred to, Fig. 3 is a kind of structural schematic diagram of request message processing unit provided by the invention, the dress It sets and includes:
Receiving unit 10, for receiving the first request message of the first client transmission, first request message is used for Indicate the first user end to server request target process outcome;
Whether the first judging unit 11 preserves the target processing knot in the caching system for judging the server Fruit obtains the first judging result;
Second judgment unit 12, for indicating not preserving the mesh in the caching system when first judging result When marking processing result, then judges in the Message Processing queue of the server whether to include the second request message, obtain second and sentence It is disconnected to indicate the second client to the processing knot of target described in the server request as a result, second request message is used for Fruit;
Processing unit 13, for being handled according to second judging result first request message.
Optionally, the processing unit 13 is specifically used for:
It, then will be described when first judging result indicates to preserve the target process outcome in the caching system The target process outcome saved in caching system feeds back to first client;
When second judging result indicates in the Message Processing queue to include second request message, then in institute It states server to carry out after handling the generation target process outcome second request message, by the target process outcome It stores into the caching system, and the target process outcome is fed back into first client;
When second judging result indicates in the Message Processing queue not including second request message, then will First request message is added in the Message Processing queue, and is carried out in the server to first request message After processing generates the target process outcome, the target process outcome is stored into the caching system, and will be described Target process outcome feeds back to first client.
Attached drawing 4 is please referred to, Fig. 4 is the structural schematic diagram of another request message processing unit provided by the invention, described Device is other than including each unit shown in Fig. 2, further includes:
Initialization unit 14, for before receiving the first request message that the first client is sent, to caching system and Message Processing queue is initialized.
It should be noted that the concrete function of above-mentioned each unit is realized, it is described in detail in embodiment of the method, this reality Example is applied to repeat no more.
The request message processing unit includes processor and memory, above-mentioned receiving unit, the first judging unit, second Judging unit, processing unit and initialization unit etc. store in memory as program unit, execute storage by processor Above procedure unit in memory realizes corresponding function.
Include kernel in processor, is gone in memory to transfer corresponding program unit by kernel.Kernel can be set one Or more, guaranteeing the identical request message of multi-client transmission by adjusting kernel parameter, the same time only handles one, Avoid the obstruction of server end.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/ Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flashRAM), memory includes at least one storage Chip.
The embodiment of the invention provides a kind of storage mediums, are stored thereon with program, real when which is executed by processor The existing request message processing method.
The embodiment of the invention provides a kind of processor, the processor is for running program, wherein described program operation Request message processing method described in Shi Zhihang.
The embodiment of the invention provides a kind of equipment, equipment include processor, memory and storage on a memory and can The program run on a processor, processor perform the steps of when executing program
The first request message of the first client transmission is received, first request message is for indicating first client It holds to server request target process outcome;
Judge whether preserve the target process outcome in the caching system of the server, obtains the first judgement knot Fruit;
When first judging result indicates not preserve the target process outcome in the caching system, then judge Whether include the second request message in the Message Processing queue of the server, obtains the second judging result, second request Message is for indicating the second client to target process outcome described in the server request;
First request message is handled according to second judging result.
It is optionally, described that first request message is handled according to second judging result, comprising:
When second judging result indicates in the Message Processing queue to include second request message, then in institute It states server to carry out after handling the generation target process outcome second request message, by the target process outcome It stores into the caching system, and the target process outcome is fed back into first client.
It is optionally, described that first request message is handled according to second judging result, comprising:
When second judging result indicates in the Message Processing queue not including second request message, then will First request message is added in the Message Processing queue, and is carried out in the server to first request message After processing generates the target process outcome, the target process outcome is stored into the caching system, and will be described Target process outcome feeds back to first client.
Optionally, the method also includes:
It, then will be described when first judging result indicates to preserve the target process outcome in the caching system The target process outcome saved in caching system feeds back to first client.
Optionally, before receiving the first request message that the first client is sent, the method also includes:
Caching system and Message Processing queue are initialized.
Equipment herein can be server, PC, PAD, mobile phone etc..
Present invention also provides a kind of computer program products, when executing on data processing equipment, are adapted for carrying out just The program of beginningization there are as below methods step:
The first request message of the first client transmission is received, first request message is for indicating first client It holds to server request target process outcome;
Judge whether preserve the target process outcome in the caching system of the server, obtains the first judgement knot Fruit;
When first judging result indicates not preserve the target process outcome in the caching system, then judge Whether include the second request message in the Message Processing queue of the server, obtains the second judging result, second request Message is for indicating the second client to target process outcome described in the server request;
First request message is handled according to second judging result.
It is optionally, described that first request message is handled according to second judging result, comprising:
When second judging result indicates in the Message Processing queue to include second request message, then in institute It states server to carry out after handling the generation target process outcome second request message, by the target process outcome It stores into the caching system, and the target process outcome is fed back into first client.
It is optionally, described that first request message is handled according to second judging result, comprising:
When second judging result indicates in the Message Processing queue not including second request message, then will First request message is added in the Message Processing queue, and is carried out in the server to first request message After processing generates the target process outcome, the target process outcome is stored into the caching system, and will be described Target process outcome feeds back to first client.
Optionally, the method also includes:
It, then will be described when first judging result indicates to preserve the target process outcome in the caching system The target process outcome saved in caching system feeds back to first client.
Optionally, before receiving the first request message that the first client is sent, the method also includes:
Caching system and Message Processing queue are initialized.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/ Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flashRAM).Memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including element There is also other identical elements in process, method, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can provide as method, system or computer program product. Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application Form.It is deposited moreover, the application can be used to can be used in the computer that one or more wherein includes computer usable program code The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) Formula.
The above is only embodiments herein, are not intended to limit this application.To those skilled in the art, Various changes and changes are possible in this application.It is all within the spirit and principles of the present application made by any modification, equivalent replacement, Improve etc., it should be included within the scope of the claims of this application.

Claims (10)

1. a kind of request message processing method, which is characterized in that the described method includes:
Receive the first client transmission the first request message, first request message for indicate first client to Server request target process outcome;
Judge whether preserve the target process outcome in the caching system of the server, obtains the first judging result;
When first judging result indicates not preserve the target process outcome in the caching system, then described in judgement Whether include the second request message in the Message Processing queue of server, obtains the second judging result, second request message For indicating the second client to target process outcome described in the server request;
First request message is handled according to second judging result.
2. the method according to claim 1, wherein described ask according to second judging result to described first Message is asked to be handled, comprising:
When second judging result indicates in the Message Processing queue to include second request message, then in the clothes After business device carries out the processing generation target process outcome to second request message, the target process outcome is stored Extremely in the caching system, and the target process outcome is fed back into first client.
3. the method according to claim 1, wherein described ask according to second judging result to described first Message is asked to be handled, comprising:
It, then will be described when second judging result indicates in the Message Processing queue not including second request message First request message is added in the Message Processing queue, and is handled in the server first request message After generating the target process outcome, the target process outcome is stored into the caching system, and by the target Processing result feeds back to first client.
4. the method according to claim 1, wherein the method also includes:
When first judging result indicates to preserve the target process outcome in the caching system, then by the caching The target process outcome saved in system feeds back to first client.
5. method as claimed in any of claims 1 to 4, which is characterized in that receiving what the first client was sent Before first request message, the method also includes:
Caching system and Message Processing queue to server initialize.
6. a kind of request message processing unit, which is characterized in that described device includes:
Receiving unit, for receiving the first request message of the first client transmission, first request message is for indicating institute State the first user end to server request target process outcome;
Whether the first judging unit is preserved the target process outcome in the caching system for judging the server, is obtained To the first judging result;
Second judgment unit, for indicating not preserving the target processing in the caching system when first judging result When as a result, then judges in the Message Processing queue of the server whether to include the second request message, obtains the second judging result, Second request message is for indicating the second client to target process outcome described in the server request;
Processing unit, for being handled according to second judging result first request message.
7. device according to claim 6, which is characterized in that the processing unit is specifically used for:
When first judging result indicates to preserve the target process outcome in the caching system, then by the caching The target process outcome saved in system feeds back to first client;
When second judging result indicates in the Message Processing queue to include second request message, then in the clothes After business device carries out the processing generation target process outcome to second request message, the target process outcome is stored Extremely in the caching system, and the target process outcome is fed back into first client;
It, then will be described when second judging result indicates in the Message Processing queue not including second request message First request message is added in the Message Processing queue, and is handled in the server first request message After generating the target process outcome, the target process outcome is stored into the caching system, and by the target Processing result feeds back to first client.
8. device according to claim 7, which is characterized in that described device further include:
Initialization unit, for receive the first client send the first request message before, at caching system and message Reason queue is initialized.
9. a kind of storage medium, is stored thereon with program, realized when which is executed by processor as appointed in claim 1 to 5 Request message processing method described in one.
10. a kind of processor, the processor is for running program, wherein executed when described program is run as claim 1 to Request message processing method described in any one of 5.
CN201810474113.3A 2018-05-17 2018-05-17 Request message processing method and processing device Pending CN110505257A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810474113.3A CN110505257A (en) 2018-05-17 2018-05-17 Request message processing method and processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810474113.3A CN110505257A (en) 2018-05-17 2018-05-17 Request message processing method and processing device

Publications (1)

Publication Number Publication Date
CN110505257A true CN110505257A (en) 2019-11-26

Family

ID=68585163

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810474113.3A Pending CN110505257A (en) 2018-05-17 2018-05-17 Request message processing method and processing device

Country Status (1)

Country Link
CN (1) CN110505257A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103370917A (en) * 2012-11-20 2013-10-23 华为技术有限公司 Message processing method and server
CN103780679A (en) * 2014-01-03 2014-05-07 电子科技大学 Long time delay remote invocation method based on HTTP protocol
CN105049240A (en) * 2015-06-26 2015-11-11 大唐移动通信设备有限公司 Message processing method and server
CN105450730A (en) * 2015-11-05 2016-03-30 北京奇虎科技有限公司 Method and apparatus for processing request from client
CN105516284A (en) * 2015-12-01 2016-04-20 深圳市华讯方舟软件技术有限公司 Clustered database distributed storage method and device
CN105635208A (en) * 2014-10-30 2016-06-01 阿里巴巴集团控股有限公司 Business processing method and device
US20160248836A1 (en) * 2015-02-20 2016-08-25 International Business Machines Corporation Scalable self-healing architecture for client-server operations in transient connectivity conditions
CN107181787A (en) * 2017-03-21 2017-09-19 阿里巴巴集团控股有限公司 A kind of request processing method and device
CN107872398A (en) * 2017-06-25 2018-04-03 平安科技(深圳)有限公司 High concurrent data processing method, device and computer-readable recording medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103370917A (en) * 2012-11-20 2013-10-23 华为技术有限公司 Message processing method and server
CN103780679A (en) * 2014-01-03 2014-05-07 电子科技大学 Long time delay remote invocation method based on HTTP protocol
CN105635208A (en) * 2014-10-30 2016-06-01 阿里巴巴集团控股有限公司 Business processing method and device
US20160248836A1 (en) * 2015-02-20 2016-08-25 International Business Machines Corporation Scalable self-healing architecture for client-server operations in transient connectivity conditions
CN105049240A (en) * 2015-06-26 2015-11-11 大唐移动通信设备有限公司 Message processing method and server
CN105450730A (en) * 2015-11-05 2016-03-30 北京奇虎科技有限公司 Method and apparatus for processing request from client
CN105516284A (en) * 2015-12-01 2016-04-20 深圳市华讯方舟软件技术有限公司 Clustered database distributed storage method and device
CN107181787A (en) * 2017-03-21 2017-09-19 阿里巴巴集团控股有限公司 A kind of request processing method and device
CN107872398A (en) * 2017-06-25 2018-04-03 平安科技(深圳)有限公司 High concurrent data processing method, device and computer-readable recording medium

Similar Documents

Publication Publication Date Title
US11561835B2 (en) Unified container orchestration controller
CN107395659A (en) A kind of method and device of service handling and common recognition
CN113641457B (en) Container creation method, device, apparatus, medium, and program product
CN111163130B (en) Network service system and data transmission method thereof
US20140215492A1 (en) Dynamic provisioning of message groups
CN106656920B (en) Processing method, device, storage medium and the processor of HTTP service
CN108833191A (en) Gateway configuration method and device
CN108810125B (en) Service discovery method and system for physical node
CN108134766A (en) A kind of method, apparatus, system, server and client for servicing publication
CN109951494B (en) Simulation data processing method and device, simulation equipment and storage medium
CN109194565A (en) A kind of message read states reminding method and device
CN106570097A (en) Sequence generating method and device
CN109743222A (en) A kind of data test method and relevant device
CN109218356A (en) The method and apparatus of stateful application in management server
CN108520077A (en) A kind of method and apparatus avoiding repeated downloads
CN109561128A (en) Data transmission method and device
CN107454138A (en) The implementation method and device that business degrades
CN109428682A (en) A kind of Message Processing confirmation method and device
CN108446168A (en) A kind of the browse right setting method and device of affairs
CN110019974A (en) Implementation method and device are bored under chart
CN110505257A (en) Request message processing method and processing device
CN110764930A (en) Request or response processing method and device based on message mode
CN109981732A (en) Mass file transfer control method and device
CN108965578A (en) Information-pushing method and device
CN106470225B (en) A kind of notification message management method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20191126

RJ01 Rejection of invention patent application after publication