Specific embodiment
Hereinafter, will be described with reference to the accompanying drawings embodiment of the disclosure.However, it should be understood that these descriptions are only exemplary, and it is not intended to limit the scope of the present disclosure.In the following detailed description, to elaborate many specific thin convenient for explainingSection is to provide the comprehensive understanding to the embodiment of the present disclosure.It may be evident, however, that one or more embodiments are not having these specific thinIt can also be carried out in the case where section.In addition, in the following description, descriptions of well-known structures and technologies are omitted, to avoidUnnecessarily obscure the concept of the disclosure.
Term as used herein is not intended to limit the disclosure just for the sake of description specific embodiment.It uses hereinThe terms "include", "comprise" etc. show the presence of the feature, step, operation and/or component, but it is not excluded that in the presence ofOr add other one or more features, step, operation or component.
There are all terms (including technical and scientific term) as used herein those skilled in the art to be generally understoodMeaning, unless otherwise defined.It should be noted that term used herein should be interpreted that with consistent with the context of this specificationMeaning, without that should be explained with idealization or excessively mechanical mode.
It, in general should be according to this using statement as " at least one in A, B and C etc. " is similar toField technical staff is generally understood the meaning of the statement to make an explanation (for example, " system at least one in A, B and C "Should include but is not limited to individually with A, individually with B, individually with C, with A and B, with A and C, have B and C, and/orSystem etc. with A, B, C).Using statement as " at least one in A, B or C etc. " is similar to, generally comeSaying be generally understood the meaning of the statement according to those skilled in the art to make an explanation (for example, " having in A, B or C at leastOne system " should include but is not limited to individually with A, individually with B, individually with C, with A and B, have A and C, haveB and C, and/or the system with A, B, C etc.).
Embodiment of the disclosure provides a kind of information processing method applied to distributed system, and distributed system includesMultiple servers.This method includes obtaining the service request from client, and service request includes business information, is believed based on businessIt ceases and determines service class belonging to service request.Next, determining the current place for responding service request based on service classReason strategy, and be based on currently processed strategy, determines for handling the particular server of service request in multiple servers, with byParticular server handles service request.
Fig. 1 diagrammatically illustrate according to the embodiment of the present disclosure can showing with the distributed system of application message processing methodExample property system architecture 100.It should be noted that being only the distributed system architecture that can apply the embodiment of the present disclosure shown in Fig. 1Example, to help skilled in the art to understand the technology contents of the disclosure, but be not meant to that the embodiment of the present disclosure can notTo be used for other equipment, system, environment or scene.
As shown in Figure 1, distributed system architecture 100 may include access server 101, business clothes according to this embodimentBusiness device 102,103,104.
Distributed system architecture 100, which for example can be, provides the operation system of transaction class service for user.
Terminal device access distributed system architecture 100 can be used in user, with the service for using the operation system to provide.Receiving server 101 for example can be used for receiving the service request from terminal device, and call corresponding service serverService request is handled, and processing result is returned into terminal device.
In order to enable distributed system 100 can be realized the technical effect to the processing of access request differentiation, the disclosure is mentionedA kind of information processing method is supplied.The information processing method determines belonging to service request according to the business information in service requestService class, and then according to service class determine be directed to service request currently processed strategy.To be taken by specific businessDevice be engaged according to currently processed strategy processing service request.
It should be noted that information processing method provided by the embodiment of the present disclosure generally can be by distributed systemOne or more server executes.Such as in scene shown in Fig. 1, it can be executed by access server 101.
It should be understood that the number of access server, service server in Fig. 1 is only schematical.According to realization needIt wants, can have any number of access server, service server.
Fig. 2 diagrammatically illustrates the stream of the information processing method according to an embodiment of the present disclosure applied to distributed systemCheng Tu.
As shown in Fig. 2, this method includes operation S210~S240.
In operation S210, the service request from client is obtained, service request includes business information.
In accordance with an embodiment of the present disclosure, service request for example can be generates according to the input operation of user on the client's.Service request for example may include transfer request, payment request, charging request etc..
In accordance with an embodiment of the present disclosure, business information for example may include that the user of service request is initiated by clientFirst account information.The first account information of user for example can be user identifier.
Business information for example can also include the second account information for accepting the receiving party of service request.Such as it is asked in serviceIn the case where Seeking Truth charge filling business, receiving party can be connection, movement, telecommunications etc., the second account information for example can be byThe mark of reason side.
Business information for example can also include the geographical location information of client.It such as in service request is transferred account serviceIn the case of, which for example can be generates on POS, and business information may include the geographical location letter of the POS machineBreath.
In operation S220, it is based on business information, determines service class belonging to service request.
Such as the first account can be determined according to the first account information for the user for initiating service request by clientGrade, to for example can determine service class shown in service request according to the grade of the first account.Specifically, if such asThe grade of first account is VIP client, then can determine that service class is first service rank.If the grade of the first account is generalLogical client can then determine that service class is second service rank.Wherein, the processing of first service rank and second service rankIt is tactful different.
In another example can determine the grade of the second account according to the second account information for the receiving party for accepting service request.Specifically, such as when the grade of the second account is emphasis partner, determine that service class can be first service rank.
In another example determining that user executes the behaviour that transfers accounts in POS machine according to the geographical location information of the client gotMake, and then can determine user's delivery operation in the case where executing line, then can determine that service class can be first service rank.
It for example may include scene information in business information, for each field according to the other embodiment of the disclosureScape may include multidimensional information.Such as the business information of the server request from client is payment scene.Paying scene canTo include the first dimension business information and the second dimension business information.First dimension business information for example can be customer information, the second dimensionBusiness information for example can be receiving party's information.Such as being according to the customer grade that customer information determines in payment sceneVIP client, and receiving party be emphasis partner in the case where, determine that service class can be star servings rank.And according toThe customer grade that customer information determines is VIP client, in the case that receiving party is non-emphasis partner, determines that service class can be withIt is first service rank.And in the case where being normal client according to the customer grade that customer information determines, determine that service class canTo be second service rank.
It is to be appreciated that those skilled in the art can need to be arranged according to the time a variety of service class, above-mentioned firstService class, second service rank and star servings rank are only a kind of example.
In accordance with an embodiment of the present disclosure, such as in distributed system architecture shown in Fig. 1, operation S220 for example be can beIt is executed by access server 101.It for example may include identification module in access server 101, for example may be used in the identification moduleTo be stored with the mapping table of business information and service class and the processing strategie of each service class.
In operation S230, it is based on service class, determines the currently processed strategy for responding service request.
In accordance with an embodiment of the present disclosure, currently processed strategy for example may include being asked using updated algorithm process serviceIt asks.Specifically, such as the currently processed strategy of high safety service class can be and ask without using updated algorithm process serviceIt asks.The currently processed strategy of the currently processed request of lower security service class can be is asked using updated algorithm process serviceIt asks.Wherein, the corresponding processing strategie of high safety service class is for handling to the higher service request of security requirement, low serviceThe corresponding processing strategie of rank is for handling to the lower service request of security requirement.With by using to security requirement compared withLow service request tests the correctness of algorithm, in the case where confirming that updated algorithm is errorless, then high safety clothesThe currently processed policy update for rank of being engaged in is to use updated algorithm process service request, to guarantee that safe handling safety is wantedSeek higher service request.
In accordance with an embodiment of the present disclosure, it in the case where service request belongs to first service rank, determines for responding clothesThe currently processed strategy of business request includes asynchronous process, and in the case where service request belongs to second service rank, determination is used forThe currently processed strategy for responding the service request includes synchronization process.Wherein, the service of distributed system processing synchronization processThe priority of request is higher than the priority of the service request of distributed system processing asynchronous process.
Such as the service request for belonging to first service rank can be handled in real time, it is returned after processing is completed to clientProcessing result.And the service request for belonging to second service rank can be using asynchronous process strategy.
Fig. 3 diagrammatically illustrates the method flow diagram of the asynchronous process according to the embodiment of the present disclosure.
As shown in figure 3, the asynchronous processing method may include operation S310 and S320.
In operation S310, is sent to client and be used to indicate the notice for receiving service request.
Such as when receiving the transfer services request that the first account levels are normal client, it can send and connect to clientReceive the notice of the request of transferred account service.
In operation S320, service request is stored in queue to be processed, to be asked according to each service in queue to be processedThat asks puts in order, and each service request in queue to be processed is successively handled by distributed system.
In accordance with an embodiment of the present disclosure, asynchronous processing method can also include sending prompt information to client, to remindUser's query processing result after the first period of time.Such as can be arrangement position according to service request in the queue, estimateMeter service request waits in line the time of processing and handles the time of the service request, and time and place according to waiting processingThe time for managing the service request sends the time of prompt user query processing result.
Specifically, it such as waits time of processing and can be half an hour, the time for handling the service request can be 1 pointClock then can send prompt information to client.The prompt information is for example for prompting user that can inquire after 40 minutesProcessing result.
Next, being based on currently processed strategy in operation S240, determine in multiple servers for handling service requestParticular server, to handle service request by particular server.
Currently processed strategy for example can be the service request execution asynchronous process for current transferred account service, then pressingWhen arriving the service request of current transferred account service according to the processing that puts in order in queue to be processed, such as can be by access server101 call the service server with function of transferring accounts, and handle service request by service server.
In accordance with an embodiment of the present disclosure, which can determine needle according to the business information in service requestTo the processing strategie of service request, service request is pointedly handled so as to realize, realizes the technology of differentiated serviceEffect.
Fig. 4 diagrammatically illustrate according to another embodiment of the disclosure can be with the flow chart of application message processing method.
As shown in figure 4, can also include on the basis of information processing method embodiment shown in Fig. 2 operation S410~S430。
In operation S410, history processing strategie determined by multiple historical service requests is obtained.
Operation S420, when in history processing strategie the first processing strategie occur the frequency be greater than preset threshold the case whereUnder, determine service class corresponding with the first processing strategie.
In operation S430, the processing strategie of service class corresponding with the first processing strategie is adjusted by the first processing strategieFor second processing strategy.
In operation S410 and operation S420, such as distributed system architecture shown in Fig. 1, such as it can be access clothesThe corresponding history processing strategie of historical service request is stored in business device 101.101 statistical history processing strategie of access server,So that it is determined that frequency of occurrence is greater than the first processing strategie of preset threshold out.First processing strategie for example can be by business serviceDevice 102 handles transferred account service.Such as it can be determined and processing plan by the mapping table of query service rank and processing strategieThe slightly corresponding current service level " by the processing of service server 102 transferred account service ".Next, in operation S430, such asThe processing strategie of current service level can be updated to " handle industry of transferring accounts by service server 103 or service server 102Business ".
In accordance with an embodiment of the present disclosure, this method is determined to press by determining higher first processing strategie of frequency of occurrenceThe biggish server of power, so that dynamic updates the processing strategie of service class corresponding with the first processing strategie, to alleviateThe pressure of server.
In accordance with an embodiment of the present disclosure, as shown in Figure 1, multiple servers in distributed system may include access serviceDevice 101 and service server 102,103,104.Wherein, obtaining the service request from client includes by access server 101Obtain the service request from client.Based on currently processed strategy, processing service request is determined from multiple serversParticular server includes being determined based on currently processed strategy for handling the service server of service request in multiple servers,The service request is handled by service server.
It in this embodiment, further include as follows on the basis of information processing method operation S210 to S240 shown in Fig. 2Operation: in the case where access server receives the error message from service server, by what is handled by service serverAt least one processing strategie is adjusted to third processing strategie.Alternatively, not received in predetermined time period in access serverIn the case where response message of the service server for service request, at least one that will be handled by service server is handledDeveloping Tactics are third processing strategie.In accordance with an embodiment of the present disclosure, aforesaid operations can for example execute after operating S240.
In accordance with an embodiment of the present disclosure, it such as is determined in operation S240 and access request is handled by service server 102.BusinessServer 102 handles the access request and sends access server for processing result.In the scene, such as in access serviceDevice 101 receives in the case that the processing result from service server 102 includes error information, can will be by service serverAt least one processing strategie of 102 processing is adjusted to be handled by service server 103.In another example being received in access server 101It, can will be by business to the processing result from service server 102, and in the case where determining the format error of the processing resultAt least one processing strategie of the processing of server 102 is adjusted to be handled by service server 103.In another example in access server101 do not received in predetermined time period from service server 102 be directed to service request application message in the case where, canAt least one processing strategie handled by service server 102 to be adjusted to be handled by service server 103.
Fig. 5 diagrammatically illustrate according to another embodiment of the disclosure can be with the distributed system of application message processing methodExemplary system architecture 500.
As shown in figure 5, can also include on the basis of the distributed system architecture 500 system architecture 100 shown in Fig. 1Identify server 501.
Identification server 501 can for example execute operations described above S220 and operation S230.
In accordance with an embodiment of the present disclosure, access server 101 executes operation S210, receives service request, and access clothesThe business information in service request is sent identification server 401 by business device 101.
It identifies that server 501 executes operation S220 and operation S230, clothes belonging to service request is determined based on business informationBusiness rank, and the currently processed strategy for responding service request is determined according to service class.
Identification server 501 for example can send access server 101 for currently processed strategy, by access server101 execute operation S240.
In accordance with an embodiment of the present disclosure, which independently deploys identification server 501, so as toEnough flexible configurations realized to processing strategie.
Such as those skilled in the art can for example configure the business information and service class stored in identification server 501Mapping relations, and configuration service class and processing strategie mapping relations.
In the distributed system architecture 500, identification module 501 can also be performed operation S410 as shown in Figure 4~S430.In operation S410~S430, history processing strategie determined by multiple historical service requests is obtained, when history processing strategieIn the frequency that occurs of the first processing strategie be greater than preset threshold in the case where, determine corresponding with the first processing strategie seeervice levelNot, and by the processing strategie of service class corresponding with the first processing strategie second processing plan is adjusted to by the first processing strategieSlightly.
In accordance with an embodiment of the present disclosure, the feelings of the error message from service server are received in access server 101Under condition, or is not received in predetermined time period in access server and be directed to the service request from service serverIn the case where response message, access server 101 for example can send the service server to identification server 501 can not be normalThe message of work, so that at least one processing strategie handled by the service server is adjusted to third by identification server 501Processing strategie.
Fig. 6 diagrammatically illustrates the frame of the information processing unit according to an embodiment of the present disclosure applied to distributed systemFigure.
As shown in fig. 6, information processing unit 600 may include obtaining module 610, the determination of the first determining module 620, secondModule 630 and processing module 640.
Module 610 is obtained, such as the operation S210 above with reference to Fig. 2 description can be executed, comes from client for obtainingService request, the service request includes business information.
First determining module 620, such as the operation S220 above with reference to Fig. 2 description can be executed, for being based on the industryBusiness information, determines service class belonging to the service request.
Second determining module 630, such as the operation S230 above with reference to Fig. 2 description can be executed, for being based on the clothesBusiness rank, determines the currently processed strategy for responding the service request.
Processing module 640, such as the operation S240 above with reference to Fig. 2 description can be executed, for being based on the current placeReason strategy, determines the particular server for handling the service request, by the special services from the multiple serverThe device processing service request.
It is module according to an embodiment of the present disclosure, submodule, unit, any number of or in which any more in subelementA at least partly function can be realized in a module.It is single according to the module of the embodiment of the present disclosure, submodule, unit, sonAny one or more in member can be split into multiple modules to realize.According to the module of the embodiment of the present disclosure, submodule,Any one or more in unit, subelement can at least be implemented partly as hardware circuit, such as field programmable gateArray (FPGA), programmable logic array (PLA), system on chip, the system on substrate, the system in encapsulation, dedicated integrated electricityRoad (ASIC), or can be by the hardware or firmware for any other rational method for integrate or encapsulate to circuit come realShow, or with any one in three kinds of software, hardware and firmware implementations or with wherein any several appropriately combined next realityIt is existing.Alternatively, can be at least by part according to one or more of the module of the embodiment of the present disclosure, submodule, unit, subelementGround is embodied as computer program module, when the computer program module is run, can execute corresponding function.
For example, obtaining any in module 610, the first determining module 620, the second determining module 630 and processing module 640Multiple may be incorporated in a module is realized or any one module therein can be split into multiple modules.Alternatively,At least partly function of one or more modules in these modules can be combined at least partly function of other modules, andIt is realized in a module.In accordance with an embodiment of the present disclosure, module 610, the first determining module 620, the second determining module are obtainedAt least one of 630 and processing module 640 can at least be implemented partly as hardware circuit, such as field-programmable gate arrayArrange (FPGA), programmable logic array (PLA), system on chip, the system on substrate, the system in encapsulation, specific integrated circuit(ASIC), it or can be realized by carrying out the hardware such as any other rational method that is integrated or encapsulating or firmware to circuit,Or it several appropriately combined is realized with any one in three kinds of software, hardware and firmware implementations or with wherein any.It can be with alternatively, obtaining at least one of module 610, the first determining module 620, the second determining module 630 and processing module 640It is at least implemented partly as computer program module, when the computer program module is run, corresponding function can be executedEnergy.
Another aspect of the present disclosure additionally provides a kind of distributed system.Distributed system may include access server andIdentify server.Wherein, for access server for obtaining the service request from client, service request includes business information.It identifies that server is used to be based on business information, determines service class belonging to service request, and be based on service class, determine and useIn the currently processed strategy of response service request, and access server is sent by currently processed strategy.Wherein, access serverIt is also used to determine the particular server of processing service request from multiple servers based on currently processed strategy, by specificServer process service request.
Fig. 7 diagrammatically illustrates the electronic equipment box for being adapted for carrying out information processing method according to the embodiment of the present disclosureFigure.Electronic equipment shown in Fig. 7 is only an example, should not function to the embodiment of the present disclosure and use scope bring it is anyLimitation.
As shown in fig. 7, include processor 701 according to the electronic equipment 700 of the embodiment of the present disclosure, it can be according to being stored inProgram in read-only memory (ROM) 702 is loaded into the journey in random access storage device (RAM) 703 from storage section 708Sequence and execute various movements appropriate and processing.Processor 701 for example may include general purpose microprocessor (such as CPU), instructionSet processor and/or related chip group and/or special microprocessor (for example, specific integrated circuit (ASIC)), etc..Processor701 can also include the onboard storage device for caching purposes.Processor 701 may include being implemented for executing according to the disclosureSingle treatment unit either multiple processing units of the different movements of the method flow of example.
In RAM 703, it is stored with electronic equipment 700 and operates required various programs and data.Processor 701, ROM702 and RAM 703 is connected with each other by bus 704.Processor 701 is by executing the journey in ROM 702 and/or RAM 703Sequence executes the various operations of the method flow according to the embodiment of the present disclosure.It is being removed it is noted that described program also can storeIn one or more memories other than ROM702 and RAM 703.Processor 701 can also be stored in one by executionOr the program in multiple memories executes the various operations of the method flow according to the embodiment of the present disclosure.
In accordance with an embodiment of the present disclosure, electronic equipment 700 can also include input/output (I/O) interface 705, input/defeated(I/O) interface 705 is also connected to bus 704 out.Electronic equipment 700 can also include be connected to I/O interface 705 with lower componentIn it is one or more: the importation 706 including keyboard, mouse etc.;Including such as cathode-ray tube (CRT), liquid crystal displayThe output par, c 707 of device (LCD) etc. and loudspeaker etc.;Storage section 708 including hard disk etc.;And including such as LAN card,The communications portion 709 of the network interface card of modem etc..Communications portion 709 executes communication via the network of such as internetProcessing.Driver 710 is also connected to I/O interface 705 as needed.Detachable media 711, such as disk, CD, magneto-optic disk,Semiconductor memory etc. is mounted on as needed on driver 710, in order to from the computer program read thereon according to needIt is mounted into storage section 708.
In accordance with an embodiment of the present disclosure, computer software journey may be implemented as according to the method flow of the embodiment of the present disclosureSequence.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer readable storage mediumComputer program, which includes the program code for method shown in execution flow chart.In such implementationIn example, which can be downloaded and installed from network by communications portion 709, and/or from detachable media 711It is mounted.When the computer program is executed by processor 701, the above-mentioned function limited in the system of the embodiment of the present disclosure is executedEnergy.In accordance with an embodiment of the present disclosure, system as described above, unit, module, unit etc. can pass through computer programModule is realized.
The disclosure additionally provides a kind of computer readable storage medium, which can be above-mentioned realityIt applies included in equipment/device/system described in example;Be also possible to individualism, and without be incorporated the equipment/device/In system.Above-mentioned computer readable storage medium carries one or more program, when said one or multiple program quiltsWhen execution, the method according to the embodiment of the present disclosure is realized.
In accordance with an embodiment of the present disclosure, computer readable storage medium can be non-volatile computer-readable storage mediumMatter, such as can include but is not limited to: portable computer diskette, hard disk, random access storage device (RAM), read-only memory(ROM), erasable programmable read only memory (EPROM or flash memory), portable compact disc read-only memory (CD-ROM), lightMemory device, magnetic memory device or above-mentioned any appropriate combination.In the disclosure, computer readable storage medium canWith to be any include or the tangible medium of storage program, the program can be commanded execution system, device or device use orPerson is in connection.For example, in accordance with an embodiment of the present disclosure, computer readable storage medium may include above-describedOne or more memories other than ROM 702 and/or RAM 703 and/or ROM 702 and RAM 703.
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the disclosure, method and computer journeyThe architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generationA part of one module, program segment or code of table, a part of above-mentioned module, program segment or code include one or moreExecutable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in boxThe function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practicalOn can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wantsIt is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute ruleThe dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instructionIt closes to realize.
It will be understood by those skilled in the art that the feature recorded in each embodiment and/or claim of the disclosure canTo carry out multiple combinations and/or combination, even if such combination or combination are not expressly recited in the disclosure.Particularly, InIn the case where not departing from disclosure spirit or teaching, the feature recorded in each embodiment and/or claim of the disclosure canTo carry out multiple combinations and/or combination.All these combinations and/or combination each fall within the scope of the present disclosure.
Embodiment of the disclosure is described above.But the purpose that these embodiments are merely to illustrate that, andIt is not intended to limit the scope of the present disclosure.Although respectively describing each embodiment above, but it is not intended that each realityUse cannot be advantageously combined by applying the measure in example.The scope of the present disclosure is defined by the appended claims and the equivalents thereof.It does not take offFrom the scope of the present disclosure, those skilled in the art can make a variety of alternatives and modifications, these alternatives and modifications should all fall in thisWithin scope of disclosure.