CN107454167A - Request processing method and server - Google Patents

Request processing method and server Download PDF

Info

Publication number
CN107454167A
CN107454167A CN201710664208.7A CN201710664208A CN107454167A CN 107454167 A CN107454167 A CN 107454167A CN 201710664208 A CN201710664208 A CN 201710664208A CN 107454167 A CN107454167 A CN 107454167A
Authority
CN
China
Prior art keywords
client
processing request
processing
configured information
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710664208.7A
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.)
Shenzhen Launch Technology Co Ltd
Original Assignee
Shenzhen Launch 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 Shenzhen Launch Technology Co Ltd filed Critical Shenzhen Launch Technology Co Ltd
Priority to CN201710664208.7A priority Critical patent/CN107454167A/en
Publication of CN107454167A publication Critical patent/CN107454167A/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/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
    • H04L67/62Establishing a time schedule for servicing the requests
    • 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
    • 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
    • H04L67/61Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources taking into account QoS or priority requirements

Abstract

The embodiments of the invention provide a kind of request processing method and server, wherein, this method includes:Configured information is obtained, wherein, the client that the configured information is used to indicate to be connected with server is asked with the presence or absence of processing;Destination client is determined according to the configured information, wherein, the destination client is the client for existing processing request;Processing request to the destination client is handled.The efficiency of processing request of server process client can be improved by implementing the embodiment of the present invention.

Description

Request processing method and server
Technical field
The present invention relates to field of computer technology, more particularly to a kind of request processing method and server.
Background technology
With the development of internet, the rise of cloud computing, most of services are all placed on background server end to handle, client Request is initiated at end, and then request of the server end to client is handled.When the client that request be present is more, server End is ranked up processing to client.
Server end determines to initiate to handle the client of request to server using poll pattern in the prior art, and then The client that processing request to these be present is handled, as shown in figure 1, being established to each client between server end Connection, server end are polled to these connections, i.e., are scanned successively, and the visitor that processing request be present is determined after the completion of scanning Family end, obtains the required parameter of connection to be processed, then starts request processing, right when needing client to be processed more These clients are handled according to priority, and processing enters poll next time after terminating.In this case, client is worked as When quantity is more, the connection to each client and server, which is polled, will expend the more time, cause server It is determined that the speed that the client of processing request is initiated to server is slow, efficiency is low, and then cause the place of server process client Manage request speed is slow, efficiency is low.
The content of the invention
The embodiments of the invention provide a kind of request processing method and server, the place of server process client can be made The speed of managing request is fast, efficiency high.
In a first aspect, the embodiments of the invention provide a kind of request processing method, including:Configured information is obtained, wherein, institute State configured information be used for indicate the client that be connected with server whether there is and handle request;Mesh is determined according to the configured information Client is marked, wherein, the destination client is the client for existing processing request;Processing request to the destination client Handled.
With reference in a first aspect, in first aspect in the first possible implementation, before the acquisition configured information, institute Stating method also includes:The connection with multiple client is established, and obtains the identification information of the multiple client;It is described according to institute State after configured information determines destination client, it is described before the processing request to the destination client is handled Method also includes:Obtain the parameter information of the processing request;The processing request to the destination client is handled Including:Handled according to processing request of the parameter information to the destination client, and obtain result;According to institute The identification information of client is stated, the result is passed through into the linkup transmit to corresponding client respectively.
The first possible implementation with reference to first aspect, in second of possible implementation of first aspect, institute State after determining destination client according to the configured information, it is described before the parameter information for obtaining the processing request Method also includes:The destination client is ranked up;The place according to the parameter information to the destination client Reason request, which carries out processing, to be included:According to the sequence, the processing request is handled according to the parameter information.
With reference to first aspect the first or second of possible implementation, the third possible realization side in first aspect In formula, the configured information includes multiple instruction bytes, and the multiple instruction byte corresponds with the multiple client;Institute State and determine that destination client includes according to the configured information:Destination client is determined according to the multiple instruction byte.
, can in the 4th kind of first aspect with reference to any of first aspect the first or second possible implementation In the implementation of energy, the configured information includes multiple indicating bits, and the instruction corresponds positioned at the multiple client; It is described to determine that destination client includes according to the configured information:Destination client is determined according to the multiple indicating bit.
Second aspect, the embodiments of the invention provide a kind of server, including:Memory, for storing executable ask Seek processing routine;Processor, for calling the request handler in the memory, and perform following operate:Obtain instruction Information, wherein, the client that the configured information is used to indicate to be connected with server is asked with the presence or absence of processing;According to the finger Show that information determines destination client, wherein, the destination client is the client for existing processing request;To the target customer The processing request at end is handled.
With reference to second aspect, in second aspect in the first possible implementation, before the acquisition configured information, institute Processor is stated to be additionally operable to:The connection with multiple client is established, and obtains the identification information of the multiple client;The basis After the configured information determines destination client, before the processing request to the destination client is handled, institute Processor is stated to be additionally operable to:Obtain the parameter information of the processing request;Processing of the processor to the destination client please Ask and carry out processing and include:Handled according to processing request of the parameter information to the destination client, and obtain processing As a result;According to the identification information of the client, the result is passed through into the linkup transmit to corresponding client respectively End.
The first possible implementation with reference to second aspect, in second of possible implementation of second aspect, institute State after processor determines destination client according to the configured information, before the parameter information for obtaining the processing request, institute Processor is stated to be additionally operable to:The destination client is ranked up;The processor is according to the parameter information to the target The processing request of client, which carries out processing, to be included:According to the sequence, the processing request is carried out according to the parameter information Processing.
With reference to second aspect the first or second of possible implementation, the third possible realization side in second aspect In formula, the configured information includes multiple instruction bytes, and the multiple instruction byte corresponds with the multiple client;Institute State processor and determine that destination client includes according to the configured information:Target customer is determined according to the multiple instruction byte End.
With reference to second aspect the first or second of possible implementation, in the 4th kind of possible realization side of second aspect In formula, the configured information includes multiple indicating bits, and the multiple indicating bit corresponds with the multiple client;The place Reason device determines that destination client includes according to the configured information:Destination client is determined according to the multiple indicating bit.
As can be seen that the embodiments of the invention provide a kind of request processing method and server, can be according to configured information It is determined that to server initiate processing request client, and to client processing request handle, make server determine to Speed that server initiates the client of processing request is fast, efficiency high, and then improves the processing request of server process client Efficiency.Further, it is also possible to obtain result, and result is sent to corresponding client.Asked when processing be present Client quantity it is more when, these clients can also be ranked up, make server according to sequence to the place of client Reason request is handled, and further improves the efficiency of the request of server process client.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, below will be attached to what is used needed for embodiment Figure is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for this area For those of ordinary skill, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is poll pattern schematic diagram in the prior art;
Fig. 2 is demand processing system network architecture diagram provided in an embodiment of the present invention;
Fig. 3 is a kind of request tupe schematic diagram provided in an embodiment of the present invention;
Fig. 4 is a kind of request processing method schematic diagram provided in an embodiment of the present invention;
Fig. 5 is another request processing method schematic diagram provided in an embodiment of the present invention;
Fig. 6 is a kind of server architecture figure provided in an embodiment of the present invention;
Fig. 7 is another server architecture figure provided in an embodiment of the present invention;
Fig. 8 is another server architecture figure provided in an embodiment of the present invention;
Fig. 9 is another server architecture figure provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes.
Term " first ", " second ", " the 3rd " in description and claims of this specification and above-mentioned accompanying drawing etc. are For distinguishing different objects, rather than for describing particular order.In addition, term " comprising " and " having " and their any changes Shape, it is intended that cover non-exclusive include.Such as contain the process of series of steps or unit, method, system, product or The step of equipment is not limited to list or unit, but alternatively also include the step of not listing or unit, or it is optional Ground is also included for other intrinsic steps of these processes, method, product or equipment or unit.
Fig. 2 is demand processing system network architecture diagram provided in an embodiment of the present invention, it can be seen that at request In reason system, server enters row data communication with multiple client by internet, and client can be handled to server initiation Result after processing can also be back to corresponding client by request, server.Wherein, client includes but is not limited to individual Computer, personal digital assistant (Personal Digital Assistant, PDA), Intelligent mobile equipment (including mobile electricity Words, removable computer, tablet personal computer etc.), wearable device (including intelligent watch, Intelligent bracelet etc.) etc..
Fig. 3 illustrates a kind of request tupe provided in an embodiment of the present invention.As shown in figure 3, can be to every The connection that individual client is established between server, and establish one for each client and the connection of server and corresponding reflect Penetrate, these mappings constitute a mapping queue, map in queue and include configured information, for indicating to connect corresponding to each mapping Connect the processing request sent with the presence or absence of client, processing request can be client after connection is established with server, lead to The request for the processing task that the connection is sent to server is crossed, the request for handling task can be sent to other clients Request, download request or account logging request of message etc..Server can determine according to the configured information in mapping queue In the presence of connection corresponding to the client of processing request, and the required parameter of these connections is obtained, start to ask according to required parameter Processing, when needing client to be processed more, server can be ranked up to these clients, and according to sequence at Reason, processing obtain next mapping queue after terminating.In addition, result can also be passed through each linkup transmit to phase by server The client answered.
It is introduced with reference to Fig. 4-5 pairs of request processing methods provided in an embodiment of the present invention.
Refer to Fig. 4, Fig. 4 is a kind of request processing method schematic diagram provided in an embodiment of the present invention, request processing method Following steps can at least be included:
S201:Obtain configured information.
Specifically, with multiple client there is annexation in server, and be the connection point of each client and server A mapping is not established, and each mapping forms a mapping queue, and the mapping queue can include configured information, and configured information is used for Indicate the processing request that connection corresponding to each mapping is sent with the presence or absence of client.Wherein, it can be that client exists to handle request Established with server after connecting, the request of the processing task sent by the connection to server, handle the request example of task Such as can be request, download request or the account logging request that message is sent to other clients.
S203:Destination client is determined according to the configured information.
Specifically, destination client is the client that processing request is initiated to server.When user end to server being present When sending processing request, configured information will occur to change accordingly.Server can be by checking the instruction mapped in queue Information, and according to the change of configured information, it is determined that there is which user end to server to initiate processing request.
S205:Processing request to the destination client is handled.
Specifically, after determining destination client (client that processing request be present) according to configured information, server The processing request initiated destination client is handled.
Implementing the embodiment of the present invention can determine at server initiation by obtaining configured information, and according to configured information The client of request is managed, makes that the speed for the client that server determines to initiate processing request to server is fast, efficiency high, Jin Erti The efficiency of the processing request of high server process client.
Fig. 5 is referred to, Fig. 5 is another request processing method schematic diagram provided in an embodiment of the present invention, and server is asked Processing method can at least include following steps:
S301:The connection with multiple client is established, and obtains the identification information of multiple client.
Specifically, client can initiate connection request, service according to the IP address, port numbers and application interface of server After device has detected client request connection, the identification information of each client can be obtained, wherein, identification information can be visitor Title of the IP address at family end, port numbers and client computer etc., and then a connection is established according to the identification information of each client.
S303:Obtain configured information.
Specifically, with multiple client there is annexation in server, and be the connection point of each client and server A mapping is not established, and the mapping corresponding with the connection of server of each client forms a mapping queue, the mapping queue Including configured information, configured information is used to indicate the processing request that connection corresponding to each mapping is sent with the presence or absence of client.
Preferably, configured information can include multiple indicating bits, and multiple indicating bits correspond with multiple client, i.e., every There are mapping relations in individual indicating bit, all indicating bits constitute mapping queue with each connection respectively.
Alternatively, configured information can include multiple instruction bytes, and multiple instruction bytes correspond with multiple client, I.e. each there are mapping relations in instruction byte with each connection respectively, and all instruction bytes constitute mapping queue.
S305:Destination client is determined according to configured information.
Specifically, destination client is the client that processing request is initiated to server.When user end to server being present When sending processing request, configured information will occur to change accordingly.Server can map the instruction in queue with circular test Information, and according to the change of configured information, it is determined that there is which user end to server to initiate processing request.
Preferably, when configured information includes multiple indicating bits, destination client can be determined according to the value of indicating bit.If When client does not initiate processing request to server, the value of indicating bit is arranged to 0 corresponding to the client, then as the client Hold to during server initiation processing request, the value of indicating bit will be changed into 1 corresponding to the client.Or if client is not to clothes When business device initiates processing request, the value of indicating bit is arranged to 1 corresponding to the client, then when the user end to server is initiated During processing request, the value of indicating bit will be changed into 0 corresponding to the client.
Alternatively, when configured information includes multiple instruction bytes, target customer can be determined according to the value of instruction byte End.Wherein, an instruction byte includes eight positions.If client does not initiate processing request to server, the client pair The value for the instruction byte answered is arranged to zero, i.e. the value of eight positions that the instruction byte includes is zero, then when the client to When server initiates processing request, the value of instruction byte will be changed into non-zero corresponding to the client, i.e. the instruction byte includes The value of at least one is 1 in eight positions.Or if client is not initiated to handle when asking to server, the client is corresponding The value of instruction byte be arranged to non-zero, then when the user end to server initiates processing request, corresponding to the client Indicate the value of byte by vanishing.
When the quantity more than one of destination client, the information connected corresponding to each destination client can be stored to Handle in queue table, wherein, connection is established according to the identification information of each client, and the information of connection is construed as The identification information of client, processing queue table are the information connected corresponding to the client of processing request for storing be present, clothes The processing request that business device only needs the information that each connection is taken out from processing queue table and can initiated each client is handled.
In addition, after determining destination client according to configured information, when the quantity more than one of destination client, service Device can also be ranked up to destination client, and the wherein sequence can embody in queue table is handled, and then cause server Each processing request is handled according to the sequence.
In a kind of possible implementation, server can record the time that each client initiates processing request, according to The sequencing that each client initiates the time of processing request is ranked up, and is initiated processing and is asked more early client in processing team More forward in list, server can initiate the processing that the earliest client of processing request time is initiated with priority treatment asks.
In a kind of possible implementation, when configured information includes multiple instruction bytes, if the value of instruction byte is The client of non-zero is destination client, further, can be according to each specific value of instruction byte come to these instruction bytes Corresponding client is ranked up, and indicates that the bigger corresponding client of the value of byte is handling more forward in queue table, service Device can indicate that the processing that the bigger corresponding client of the value of byte is initiated is asked clearly with priority treatment.For example, corresponding to client 1 It is 00000100 to indicate byte, and instruction byte is 00000001 corresponding to client 2, and instruction byte is corresponding to client 3 00000011, it is recognised that the value of instruction byte is respectively 4,1,3 corresponding to client 1,2,3, then in queue table is handled Sequence be:Client 1, client 3, client 2, the processing that server can be initiated with priority treatment client 1 are asked, then The processing request that client 3 is initiated is handled, finally handles the processing request that client 2 is initiated.
In a kind of possible implementation, the identification information of client can also include the priority letter of the client Breath, the higher client of priority handle it is more forward in queue table, server can with priority treatment initiation priority highest The processing request that client is initiated., can be further according to client when priority identical multiple client initiates processing request The time for initiating processing request carries out two minor sorts to these clients.I.e. server can be with priority treatment priority highest visitor The processing request that family end is initiated, when multiple client priority is identical, then it is more early to initiate processing request time for priority treatment The processing request that client is initiated.
S307:Obtain the parameter information of processing request.
Specifically, it is determined that after destination client, server can obtain the ginseng of the processing request of destination client initiation Number information, parameter information can include the particular content of request.
For example, when the processing request that customer end A is initiated is to send message to customer end B, parameter information can include visitor Message content that family end B IP address, needs are sent etc..
In another example when the processing request that customer end A is initiated is downloads document, parameter information can include text to be downloaded Address information, the type of document to be downloaded etc. of shelves.
S309:Handled according to processing request of the parameter information to destination client, and obtain result.
Specifically, after the parameter information for obtaining processing request, these processing requests can be handled, processing is completed Afterwards, result is obtained.
For example, when the processing request that customer end A is initiated is to send message to customer end B, server is obtaining the processing After the parameter information of request, the message that customer end A is sent is received, and transmit the message to according to the IP address of customer end B Customer end B, the result sent is obtained after being sent completely.
In another example when the processing request that customer end A is initiated is downloads document, server is obtaining the ginseng of processing request After number information, according to the address information of document to be downloaded and the type of document etc., it will be sent after the completion of profile download to client A is held, then obtains the result downloaded and sent.
In addition, when the quantity more than one of destination client, server can also be ranked up to destination client, and According to the sequence, processing request is handled according to parameter information, and obtain result.
S311:According to the identification information of client, result is passed through into linkup transmit to corresponding client respectively.
Specifically, the result that the processing each client initiated is asked is by corresponding linkup transmit to corresponding Client.
Implement the embodiment of the present invention, server can be by the connection established with each client, and obtains each client pair The indicating bit or instruction byte answered, determined to initiate the target customer of processing request to server according to indicating bit or instruction byte End, it is determined that after destination client, the processing request initiated each client is handled, and server is determined to server The speed of initiating the client of processing request is fast, efficiency high, and improves the efficiency of server process client process request.
The embodiment of the present invention further correspondingly provides a kind of server, the structure chart of server shown in Figure 6, service Device 10 can at least include:First acquisition module 110, determining module 120 and processing module 130, wherein:
First acquisition module 110, for obtaining configured information, wherein, the configured information is used to indicate to connect with server The client connect is asked with the presence or absence of processing.
Determining module 120, for determining destination client according to the configured information, wherein, the destination client is The client of processing request is initiated to the server.
Processing module 130, handled for the processing request to the destination client.
In a kind of optional embodiment, as shown in fig. 7, server 10 is except including the first acquisition module 110, determining mould Outside block 120, processing module 130, it can also include:Establish module 140, the second acquisition module 150, sending module 160.Its In:
Module 140 is established, for before the first acquisition module 110 obtains configured information, establishing and multiple client Connection, and obtain the identification information of the multiple client.
Second acquisition module 150, after determining destination client according to the configured information in determining module 120, Before processing request of the processing module 130 to the destination client is handled, the parameter information of the processing request is obtained.
Processing module 130, specifically can be used for according to processing of the parameter information to the destination client ask into Row processing, and obtain result.
Sending module 160, for the identification information according to the client, the result is passed through into the company respectively Corresponding client is delivered in sending and receiving.
In a kind of optional embodiment, as shown in figure 8, server 20 is except including the first acquisition module 110, determining mould Block 120, processing module 130, establish outside module 140, the second acquisition module 150, sending module 160, can also include:
Order module 170, after determining destination client according to the configured information in determining module 120, Before two acquisition modules 150 obtain the parameter information of the processing request, the destination client is ranked up, wherein, place Reason module 130 can be used for according to the sequence, and the processing request is handled according to the parameter information.
In a kind of optional embodiment, the configured information includes multiple instruction bytes, the multiple instruction byte with The multiple client corresponds;It is described to determine that destination client includes according to the configured information:According to the multiple finger Show that byte determines destination client.
In a kind of optional embodiment, the configured information includes multiple indicating bits, and the instruction is positioned at the multiple Client corresponds;It is described to determine that destination client includes according to the configured information:Determined according to the multiple indicating bit Destination client.
Implement the embodiment of the present invention, server can be by the connection established with each client, and obtains each client pair The indicating bit or instruction byte answered, determined to initiate the target customer of processing request to server according to indicating bit or instruction byte End, it is determined that after destination client, the processing request initiated each client is handled, and server is determined to server The speed of initiating the client of processing request is fast, efficiency high, and improves the efficiency of server process client process request.
Fig. 9 is the structural representation of another server disclosed in the embodiment of the present invention, as shown in figure 9, terminal 20 can be with Including:Baseband chip 210, memory 220 (one or more computer-readable recording mediums), radio-frequency module 230 and input are defeated Go out equipment 240.These parts can communicate on one or more communication bus 250.
Input-output equipment 240 is used to realize the interactive function between server 20 and external environment condition, main to include input Equipment and output equipment, wherein, input equipment can include Trackpad, keyboard etc., and output equipment can be including display etc..
Baseband chip 210 can integrate including:One or more processors 211, clock module 212 and power management module 213.The clock module 212 being integrated in baseband chip 210 is mainly used in producing data transfer and SECO for processor 211 Required clock.The power management module 213 being integrated in baseband chip 210 is mainly used in as processor 211, radio-frequency module 230 and input-output equipment 240 stable, pinpoint accuracy voltage is provided.
Radio-frequency module 230 is used to receiving and sending radiofrequency signal, is mainly integrated with the receiver and transmitter of server 20. Radio-frequency module 230 passes through radiofrequency signal and communication network and other communication apparatus communications.In concrete implementation mode, radio frequency mould Block 230 may include but be not limited to:Antenna system, RF transceivers, one or more amplifiers, tuner, one or more vibrations Device, digital signal processor, CODEC chips and storage medium etc..In certain embodiments, it can on a separate chip realize and penetrate Frequency module 230.
Memory 220 and processor 211 couple, for storing various software programs or multigroup instruction.Specifically, memory 220 may include the memory of high random access, and may include nonvolatile memory, such as one or more disk storages Equipment, flash memory device or other non-volatile solid-state memory devices.Memory 220 can store an operating system (following abbreviation systems System), such as the operating system such as Windows Server, Netware, Unix, Linux.Memory 220 can also store network and lead to Believe program, the network communication program can be used for one or more with one or more optional equipments, one or more terminal devices The network equipment is communicated.Memory 220 can also store user interface program, and the user interface program can be by graphical Operation interface show the content image of application program is true to nature.Memory 220 can also include request handler, The request handler can quickly determine to initiate the client of processing request to server by obtaining configured information, and carry out Request is handled.
Specifically, memory 220, for storing executable request handler;
Processor 211, for calling the request handler in memory 220, and perform following operate:Obtain instruction letter Breath, wherein, the client that configured information is used to indicate to be connected with server is asked with the presence or absence of processing.Determined according to configured information Destination client, wherein, destination client is the client for existing processing request.At processing request to destination client Reason.
In a kind of possible embodiment, before obtaining configured information, processor 211 is additionally operable to:Establish and multiple clients The connection at end, and obtain the identification information of multiple client.After determining destination client according to configured information, to target customer Before the processing request at end is handled, processor 211 is additionally operable to:Obtain the parameter information of processing request.
Processing request of the processor 211 to the destination client, which carries out processing, to be included:According to the parameter information to institute The processing request for stating destination client is handled, and obtains result;According to the identification information of the client, respectively will The result passes through the linkup transmit to corresponding client.
In a kind of possible embodiment, after processor 211 determines destination client according to configured information, acquisition processing Before the parameter information of request, processor 211 is additionally operable to:Destination client is ranked up.Processor 211 is according to parameter information Carrying out processing to processing request includes:According to sequence, processing request is handled according to parameter information.
In a kind of possible embodiment, configured information includes multiple instruction bytes, multiple instruction bytes and multiple clients End corresponds.Processor 211 determines that destination client includes according to configured information:Target visitor is determined according to multiple instruction bytes Family end.
In a kind of possible embodiment, configured information includes multiple indicating bits, multiple indicating bits and multiple client one One correspondence.Processor 211 determines that destination client includes according to configured information:Destination client is determined according to multiple indicating bits.
Implement the embodiment of the present invention, server can be by the connection established with each client, and obtains each client pair The indicating bit or instruction byte answered, determined to initiate the target customer of processing request to server according to indicating bit or instruction byte End, it is determined that after destination client, the processing request initiated each client is handled, and server is determined to server The speed of initiating the client of processing request is fast, efficiency high, and improves the efficiency of server process client process request.
It should be noted that the description of each embodiment described above emphasizes particularly on different fields, can mutually be referred between each embodiment. Unspecified part in certain embodiments, it may be referred to the associated description of other embodiment.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
Step in present invention method can be sequentially adjusted, merged and deleted according to actual needs.
Module in device of the embodiment of the present invention can be combined, divided and deleted according to actual needs.
Described above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although with reference to before Embodiment is stated the present invention is described in detail, it will be understood by those within the art that:It still can be to preceding State the technical scheme described in each embodiment to modify, or equivalent substitution is carried out to which part technical characteristic;And these Modification is replaced, and the essence of appropriate technical solution is departed from the scope of various embodiments of the present invention technical scheme.

Claims (10)

1. a kind of request processing method, it is characterised in that methods described includes:
Configured information is obtained, wherein, the client that the configured information is used to indicate to be connected with server please with the presence or absence of processing Ask;
Destination client is determined according to the configured information, wherein, the destination client is the client for existing processing request;
Processing request to the destination client is handled.
2. the method as described in claim 1, it is characterised in that before the acquisition configured information, methods described also includes:Build The vertical connection with multiple client, and obtain the identification information of the multiple client;
It is described destination client is determined according to the configured information after, it is described to the destination client processing request carry out Before processing, methods described also includes:Obtain the parameter information of the processing request;
The processing request to the destination client, which carries out processing, to be included:
Handled according to processing request of the parameter information to the destination client, and obtain result;
According to the identification information of the client, the result is passed through into the linkup transmit to corresponding client respectively End.
3. method as claimed in claim 2, it is characterised in that it is described according to the configured information determine destination client it Afterwards, before the parameter information for obtaining the processing request, methods described also includes:The destination client is arranged Sequence;
The processing request according to the parameter information to the destination client, which carries out processing, to be included:According to the sequence, The processing request is handled according to the parameter information.
4. method as claimed in claim 2 or claim 3, it is characterised in that the configured information includes multiple instruction bytes, described more Individual instruction byte corresponds with the multiple client;
It is described to determine that destination client includes according to the configured information:Target customer is determined according to the multiple instruction byte End.
5. method as claimed in claim 2 or claim 3, it is characterised in that the configured information includes multiple indicating bits, the instruction Corresponded positioned at the multiple client;
It is described to determine that destination client includes according to the configured information:Destination client is determined according to the multiple indicating bit.
A kind of 6. server, it is characterised in that including:
Memory, for storing executable request handler;
Processor, for calling the request handler in the memory, and perform following operate:
Configured information is obtained, wherein, the client that the configured information is used to indicate to be connected with server please with the presence or absence of processing Ask;
Destination client is determined according to the configured information, wherein, the destination client is the client for existing processing request;
Processing request to the destination client is handled.
7. server as claimed in claim 6, it is characterised in that before the acquisition configured information, the processor is also used In:The connection with multiple client is established, and obtains the identification information of the multiple client;
It is described destination client is determined according to the configured information after, it is described to the destination client processing request carry out Before processing, the processor is additionally operable to:Obtain the parameter information of the processing request;
Processing request of the processor to the destination client, which carries out processing, to be included:
Handled according to processing request of the parameter information to the destination client, and obtain result;
According to the identification information of the client, the result is passed through into the linkup transmit to corresponding client respectively End.
8. server as claimed in claim 7, it is characterised in that the processor determines target visitor according to the configured information After the end of family, before the parameter information for obtaining the processing request, the processor is additionally operable to:The destination client is carried out Sequence;
The processor carries out processing according to processing request of the parameter information to the destination client to be included:According to described Sequence, the processing request is handled according to the parameter information.
9. server as claimed in claim 7 or 8, it is characterised in that the configured information includes multiple instruction bytes, described Multiple instruction bytes correspond with the multiple client;
The processor determines that destination client includes according to the configured information:Target is determined according to the multiple instruction byte Client.
10. server as claimed in claim 7 or 8, it is characterised in that the configured information includes multiple indicating bits, described Multiple indicating bits correspond with the multiple client;
The processor determines that destination client includes according to the configured information:Target visitor is determined according to the multiple indicating bit Family end.
CN201710664208.7A 2017-08-04 2017-08-04 Request processing method and server Pending CN107454167A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710664208.7A CN107454167A (en) 2017-08-04 2017-08-04 Request processing method and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710664208.7A CN107454167A (en) 2017-08-04 2017-08-04 Request processing method and server

Publications (1)

Publication Number Publication Date
CN107454167A true CN107454167A (en) 2017-12-08

Family

ID=60490835

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710664208.7A Pending CN107454167A (en) 2017-08-04 2017-08-04 Request processing method and server

Country Status (1)

Country Link
CN (1) CN107454167A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111541555A (en) * 2020-03-24 2020-08-14 中国平安人寿保险股份有限公司 Group chat optimization method and related product

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102202094A (en) * 2011-05-13 2011-09-28 中兴通讯股份有限公司 Method and device for processing service request based on HTTP (hyper text transfer protocol)
CN102810073A (en) * 2012-06-13 2012-12-05 天津大学 Background real-time monitoring processing method for data
CN103218455A (en) * 2013-05-07 2013-07-24 中国人民解放军国防科学技术大学 Method of high-speed concurrent processing of user requests of Key-Value database
CN103888499A (en) * 2012-12-21 2014-06-25 中国科学院深圳先进技术研究院 Distributed object processing method and system
CN106790022A (en) * 2016-12-14 2017-05-31 福建天泉教育科技有限公司 Communication means and its system based on many inquiry threads

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102202094A (en) * 2011-05-13 2011-09-28 中兴通讯股份有限公司 Method and device for processing service request based on HTTP (hyper text transfer protocol)
CN102810073A (en) * 2012-06-13 2012-12-05 天津大学 Background real-time monitoring processing method for data
CN103888499A (en) * 2012-12-21 2014-06-25 中国科学院深圳先进技术研究院 Distributed object processing method and system
CN103218455A (en) * 2013-05-07 2013-07-24 中国人民解放军国防科学技术大学 Method of high-speed concurrent processing of user requests of Key-Value database
CN106790022A (en) * 2016-12-14 2017-05-31 福建天泉教育科技有限公司 Communication means and its system based on many inquiry threads

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111541555A (en) * 2020-03-24 2020-08-14 中国平安人寿保险股份有限公司 Group chat optimization method and related product

Similar Documents

Publication Publication Date Title
CN110611876B (en) Indoor asset management method, device and system
CN106598530A (en) Display panel configuration method and device
CN111786737B (en) Data transmission method, data transmission device, storage medium, and electronic device
US10257679B2 (en) Relative location determination for auto-configuration of computing systems in a network environment
CN104639669A (en) Method and device for configuring electronic mail box
US10938771B2 (en) Determining physical locations of devices in a data center
CN107454167A (en) Request processing method and server
CN112437462A (en) Quality determination method and device for WIFI module, storage medium and electronic device
CN106528199A (en) Method and terminal for updating automobile instrument panel system
CN105653290B (en) Data interactive method and system
CN112866011B (en) Method, device, equipment and medium for determining network topology structure
CN115130911A (en) Method and device for processing delivery tasks failed to execute by robot
CN111092949B (en) Method and device for registering equipment
CN113726885A (en) Method and device for adjusting flow quota
CN110309403B (en) Method and device for capturing data
CN110875856B (en) Method and apparatus for activation data anomaly detection and analysis
CN113821430A (en) Multi-service testing method and device
CN104461460A (en) Method and device for simultaneously configuring multi-kernel registers
CN112311833B (en) Data updating method and device
CN114490202B (en) Password equipment testing method and device, electronic equipment and storage medium
CN110278093A (en) The configuration method and device of the network equipment
CN114862281B (en) Method and device for generating task state diagram corresponding to accessory system
CN111314457B (en) Method and device for setting virtual private cloud
CN113765694A (en) Log information display method and device, electronic equipment and computer readable medium
CN114418142A (en) Equipment inspection 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: 20171208

RJ01 Rejection of invention patent application after publication