CN104702647B - Information requesting method and system - Google Patents

Information requesting method and system Download PDF

Info

Publication number
CN104702647B
CN104702647B CN201310662372.6A CN201310662372A CN104702647B CN 104702647 B CN104702647 B CN 104702647B CN 201310662372 A CN201310662372 A CN 201310662372A CN 104702647 B CN104702647 B CN 104702647B
Authority
CN
China
Prior art keywords
server
information
request
described information
user
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.)
Active
Application number
CN201310662372.6A
Other languages
Chinese (zh)
Other versions
CN104702647A (en
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201310662372.6A priority Critical patent/CN104702647B/en
Priority to PCT/CN2014/079648 priority patent/WO2015085735A1/en
Priority to TW103139536A priority patent/TW201521844A/en
Publication of CN104702647A publication Critical patent/CN104702647A/en
Application granted granted Critical
Publication of CN104702647B publication Critical patent/CN104702647B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/01Protocols
    • H04L67/131Protocols for games, networked simulations or virtual reality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/40Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass for recovering from a failure of a protocol instance or entity, e.g. service redundancy protocols, protocol state redundancy or protocol service redirection

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of information requesting method and systems.This method includes:First server receives the request message for being used to obtain information that user sends;First server judges whether user has the permission for obtaining information in response to request message;If user has the permission for obtaining information, then first server is to second server acquisition request information;If first server fails to second server acquisition request information, first server reissues information to the request of third server;If first server reissues information success to the request of third server, the information received from third server is transmitted to user by first server.The present invention is solved gets the technical issues of failing the server load caused by being handled only with simple rollback and larger data base read-write pressure in method to stage property granting due to existing game item.

Description

Information requesting method and system
Technical field
The present invention relates to the communications field, in particular to a kind of information requesting method and system.
Background technology
In existing game on line, game item is abundant game content, improves the important element of user experience, wherein, The process got to game item is usually directed to the communication between the access to multiple databases and multiple servers.Its In, it is however generally that, for convenience of the centralized management that game item is distributed to user, the page of getting of game item is generally arranged at official On network server, and the distribution method of specific game item is associated with game content, therefore this method would generally be set It puts in game server.Specifically, flow as shown in Figure 1 usually may be used in the method for getting of existing game item, Wherein, which can be summarized as follows:
S102:User gets the request of stage property to the transmission of official website server;
S104:Official website server inspection sends the permission of the user of request message;
S106:If the user for sending request message has and gets permission, official website server is to game server road Tool provides request, and jumps to step S110;
S108:If the user for sending request message, which does not have, gets permission, the instruction for not having permission is returned to user;
S110:If game server be connected to the stage property granting request after, successfully transmit corresponding game item, then to User returns to stage property and gets successful instruction;
S112:If game server sends corresponding game item, then returns not successfully after stage property granting request is connected to Rolling user's gets permission;S114:If not successfully, and to user's return stage property get the instruction of failure.
It follows that in said program, no matter game item provides success or not, entirely getting method will all terminate. And in the case of stage property granting fails, user is received after stage property gets the feedback of failure, it will usually which request gets this again Game item so as to which official website server needs again to respond this request message, and performs check the user's again The inquiry of permission and processing operation.There is the situation of more huge user base number, said program in view of a game on line By the access pressure of the apparent load for increasing official website server and the database for being stored with user right, on the other hand, road Tool gets the read-write pressure that the rolling back action performed after failure equally increases database, and then to the operation of the game on line State adversely affects, so that influencing user experience.For it is above-mentioned the problem of, not yet propose effective solution party at present Case.
Invention content
An embodiment of the present invention provides a kind of information requesting method and system, at least to solve due to existing game item Get in method to stage property granting failure only with simple rollback processing caused by server load and data base read-write The technical issues of pressure is larger.
One side according to embodiments of the present invention provides a kind of information requesting method, including:First server receives The request message for being used to obtain information that user sends;Above-mentioned first server judges above-mentioned user in response to above-mentioned request message Whether there is the permission for obtaining above- mentioned information;If above-mentioned user has the permission for obtaining above- mentioned information, then above-mentioned first service Device is to second server acquisition request above- mentioned information;If above-mentioned first server is to the above-mentioned above-mentioned letter of second server acquisition request Breath fails, then above-mentioned first server reissues above- mentioned information to the request of third server;If above-mentioned first server is to above-mentioned Above- mentioned information success is reissued in the request of three servers, then above-mentioned first server will receive above-mentioned from above-mentioned third server Information is transmitted to above-mentioned user.
Another aspect according to embodiments of the present invention additionally provides a kind of information request system, including:Receiving unit is used In the request message for being used to obtain information for receiving user's transmission;First judging unit, for sentencing in response to above-mentioned request message Whether above-mentioned user of breaking has the permission for obtaining above- mentioned information;First request unit, for above-mentioned with obtaining in above-mentioned user During the permission of information, to above-mentioned second server acquisition request above- mentioned information;Second request unit, in above-mentioned first service Device to above-mentioned second server acquisition request above- mentioned information fail when, then above-mentioned first server is asked to above-mentioned third server Reissue above- mentioned information;Retransmission unit, for above-mentioned first server to above-mentioned third server request reissue above- mentioned information into During work(, the above- mentioned information received from above-mentioned third server is transmitted to above-mentioned user.
It in embodiments of the present invention, can be with using the design reissued the information that second server is provided not successfully Reach user is asked in the same primary response of the request message sent in first server for user to a certain extent Information returns to the effect of user, so avoid information granting failure after rolling back action and due to information granting fail Again transmission of the caused user to the request message, and the authentication again of first server is eliminated, it is achieved thereby that drop The technique effect of the access pressure of database corresponding to the load of low first server and rollback and authentication operations, solves Due to the service got caused by being handled only with simple rollback stage property granting failure in method of existing game item The technical issues of device load and larger data base read-write pressure.
Description of the drawings
Attached drawing described herein is used to provide further understanding of the present invention, and forms the part of the application, this hair Bright illustrative embodiments and their description do not constitute improper limitations of the present invention for explaining the present invention.In the accompanying drawings:
Fig. 1 is a kind of schematic diagram of information request system according to prior art;
Fig. 2 is a kind of schematic diagram of optional information requesting method according to embodiments of the present invention;
Fig. 3 is the schematic diagram of the optional information requesting method of another kind according to embodiments of the present invention;
Fig. 4 is the schematic diagram of another optional information requesting method according to embodiments of the present invention;
Fig. 5 is the schematic diagram of another optional information requesting method according to embodiments of the present invention;
Fig. 6 is a kind of interaction figure of information request system according to embodiments of the present invention;
Fig. 7 is the schematic diagram of another information request system according to embodiments of the present invention;
Fig. 8 is the schematic diagram of another information request system according to embodiments of the present invention;
Fig. 9 is the schematic diagram of another information request system according to embodiments of the present invention;
Figure 10 is the schematic diagram of another information request system according to embodiments of the present invention.
Specific embodiment
In order to which those skilled in the art is made to more fully understand the present invention program, below in conjunction in the embodiment of the present invention The technical solution in the embodiment of the present invention is clearly and completely described in attached drawing, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people Member's all other embodiments obtained without making creative work should all belong to the model that the present invention protects It encloses.
It should be noted that term " first " in description and claims of this specification and above-mentioned attached drawing, " Two " etc. be the object for distinguishing similar, and specific sequence or precedence are described without being used for.It should be appreciated that it uses in this way Data can be interchanged in the appropriate case, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, be not necessarily limited to for example, containing the process of series of steps or unit, method, system, product or equipment Those steps or unit clearly listed, but may include not listing clearly or for these processes, method, product Or the intrinsic other steps of equipment or unit.
Embodiment 1
According to embodiments of the present invention, a kind of information requesting method is provided, as shown in Fig. 2, this method includes:
S202:First server receives the request message for being used to obtain information that user sends;
S204:First server judges whether user has the permission for obtaining information in response to request message;
S206:If user has the permission for obtaining information, then first server is to second server acquisition request information;
S208:If first server fails to second server acquisition request information, first server is to third service Information is reissued in device request;
S210:If first server reissues information success to the request of third server, first server will take from third The information received in business device is transmitted to user.
It will be clear that one of technical solution of the present invention problem to be solved is to provide a kind of method, to user The request of a certain information of acquisition sent out is responded, after judging that the user has the permission for obtaining the information, to the greatest extent may be used Can ground promote server that the information is successfully returned to the user during this response to request, reduced so as to reach Server reduces the processing of server and database and accesses pressure to the effect of the number of operations of database.Wherein, exist In some embodiments of the present invention, above- mentioned information can be the relevant information of game item, such as stage property ID, however the present invention is right This is not construed as limiting.
The information requesting method provided according to embodiments of the present invention, in step S202, can using first server come Receive the request for being used to obtain information that user sends.Wherein, the request of the acquisition information can be hypertext transfer protocol Http (Hypertext Transfer Protocol) is asked, or File Transfer Protocol ftp (File Transfer Protocol it) asks or to meet other feasible requests of File Transfer form etc., this is not limited by the present invention.More Specifically, which can be presented as a message, for example, for http request, corresponding to message can be by please Ask row, message header and message body composition.Optionally, in embodiments of the present invention, the request message described in step S202 can be with Carry can be identified by first server with the message needed for the corresponding identification item of the information that obtains, such as conduct For the game item of the information, which can carry the stage property ID of the game item.
In general, in embodiments of the present invention, first server can be exclusively used in handling such request Server, such as official website server, it being understood, however, that this does not mean that the official website server, and first server cannot in other words For performing other business.Further, the present invention does not make first, second, third server occurred in embodiment It limits.
The information requesting method provided according to embodiments of the present invention, in step S204, first server can be in response to User send request message, judge the user whether have obtain information permission namely first server to user whether There are the authentication operations of enough this information of authority acquiring.In general, in embodiments of the present invention, the realization side of step S204 Formula can be authentication mode similarly to the prior art, wherein, most typically, first server, which can access, is stored with the information The database of corresponding authentication information, and whether carry the authentication information in the request message sent to user and judge, If so, judge that there is the permission for obtaining information by authentication namely the user, if it is not, then judge not by authenticating, I.e. the user does not have the permission for obtaining information.
Further, in embodiments of the present invention, if judging that user has the permission for obtaining information by step S204, It then can be further in step S206, by first server to the second server acquisition request information.In this scene Under, the request that first server is sent out to second server both can be for different from the aforementioned request message sent out by user The new request or the request identical with the request message that user sends out that can be identified by second server, So as to which the request forwarded from first server to second server can also be considered as.
Wherein, for the application scenarios of game on line, which can be with for game server, and then the game Second server can allot the information, for example provide the request pair to server according to the request received for user in other words The game item answered.In embodiments of the present invention, second server can be with to the specific implementation of the granting of the information of request There are many, wherein, for game on line, the game server as second server can be directly to game user granting The stage property ID of game item correspondences are added to the corresponding data record of the user by the required game item got in other words, Such as in property attribute, however in other embodiments of the present invention, the information that second server is returned can also User is not directly sent to, but is forwarded via first server, this is not limited by the present invention, to the technology of the present invention The implementation of scheme and its fulfilling for effect will not have any impact.
Further, in embodiments of the present invention, the request that first server is sent out can be carried out in second server After response, judge whether second server successfully to the required information provide.Specifically, for swimming online The scene of play, the game server as second server in response to request Concurrency after corresponding game item is put, the game Server itself can detect the third party's service for being stored on the game server or being connected with the game server In database on device, ask whether the user of the game item successfully obtains the stage property.Certainly, this is a kind of example, In embodiments of the present invention, there can also be other modes whether successfully to provide the information to second server to judge, example Such as, information is returned to the situation of user for aforementioned second server via first server, it can also be in first service Whether to receiving and/or sending out the information and judge on device, and the result of this judgement as being to second server The no judging result for successfully providing the information.In other words, it is contemplated that the operation that second server provides the information shows as The response that two servers carry out the request that first server is sent out, therefore above-mentioned judging result can also be expressed as the first clothes Business device is success or failure to second server acquisition request information.
Based on above-mentioned judging result, the information requesting method provided according to embodiments of the present invention, in step S208, if the One server wants second server acquisition request information fails, then first server can transfer to reissue to the request of third server The information.
The prior art is different from, in embodiments of the present invention, third clothes can be arranged in other words using third server System is reissued to reissue the information provided not successfully rather than simply server and database are returned on business device Rolling, and the instruction for obtaining information failure is returned to user.Wherein, most typically, the system of reissuing can with positioned at second service The delivery system of information on device corresponds to, however this is not limited by the present invention, such as the institute in the embodiment after the present invention That shows increasingly complex reissues mechanism.
It is worth noting that, the third server is only used for representing to carry out the above-mentioned server reissued where system, wherein, In some embodiments of the invention, which can also be set up directly on game server, so that third takes Business device is formed as one with second server.
And then in step S210, if first server reissues information success, first service to the request of third server The information received from third server can be transmitted to user by device, wherein, specific pass-through mode can there are many, example As shown in Figure 3, step S210 can include:
S302:First server first reissues third server is obtained on the time and is sent letter what third server was set Breath;
S304:The information received from third server is transmitted to user by first server.
In above-mentioned scene, first server can as the transfer for asking corresponding information, first pass through step S302 from Third server obtains the information, and the information got then is sent to user again.The advantage of this embodiment is: 1) interaction of the interaction of user and first server, first server and second server and first server and third clothes The interaction logic of business device can be decoupling, so as to simplify the maintenance of information request system;It 2) can opposite second server Whether whether solicited message is successful successfully carries out similar judgement with to third server solicited message, and the decision logic can be with It is uniformly arranged in first server, so as to further simplify the maintenance of information request system.
Certainly, it is one of feasible embodiment of the present invention more than, is not meant to constitute the present invention any limit It is fixed, such as similar to granting of the second server described in aforementioned embodiments to the information, in some implementations of the present invention In example, directly the information can also be sent, and then judged by third server either user from third server to user It reissues and whether succeeds, etc..
Further, in step s 302, can third server set first reissue the time obtain reissue should Information, by this setting, can again be carried out in a period of time after there is information granting failure it is above-mentioned reissue operation, thus The appearance again of failure is avoided to a certain extent.Certainly, it is however generally that, the first lag for reissuing the time can be relatively short, In order to avoid since the longer stand-by period influences user experience.
Further, as shown in figure 4, as a kind of optional mode, in embodiments of the present invention, step S208 can be with Including:
S402:Third server setting first is reissued the time, and is reissued to send to first server on the time first and be believed Breath;
S404:If third server is reissued first and sends information failure, third service to first server on the time Whether the number that device judges currently to reissue information reaches predetermined threshold;
S406:If third server judges that the number for currently reissuing information is not up to predetermined threshold, third server Setting second is reissued the time, and is reissued second and sent information to first server on the time.
Under above-mentioned scene, third server can reissue the time in the first of lag certain time and be sent out to first server Send above- mentioned information, and can be in the case of reissuing unsuccessfully, in step S406, what is set at one second reissues the time On reissued again, wherein, it is overall to reissue number and be limited in a predetermined threshold as described in step S404, with Exempt from unlimitedly to extend user to obtaining the stand-by period of the information, and avoid reissuing mechanism caused by system vulnerability Abuse.Wherein, as shown in figure 5, optionally, in embodiments of the present invention, if third server is judged currently to reissue information Number reach predetermined threshold, then step S208 can also include:
S502:Third server stops reissuing information, and send out to for the management equipment of management information to first server Send warning information.
More specifically, in embodiments of the present invention, third server according at least one of come set first reissue when Between and second reissue the time:Whether the corresponding type of service of information, second server are stopped, the operation of third server is born Lotus, so as to which third server can reasonably set first to reissue time and second according to the operating status of information request system The time is reissued, to avoid excessive additional operating load is caused.
By above example it is found that in embodiments of the present invention, using the information provided not successfully second server The design reissued can reach the same primary of the first server of request message sent in to(for) user to a certain extent The information that user asks is returned into the effect of user in response, and then avoids the rolling back action after information granting failure, with And due to again transmission of the user to the request message caused by information granting failure, and eliminate first server again Authentication, it is achieved thereby that reducing the load of first server and the access pressure of rollback and the database corresponding to authentication operations Technique effect, solve due to existing game item getting in method to stage property granting failure only with simple rollback The technical issues of caused server load of processing and larger data base read-write pressure.
Technical solution of the present invention is described below in conjunction with a specific embodiment.In this embodiment, on The scene that information requesting method can be applied to game on line is stated, wherein, the information of user's request can include being used to indicate trip The information of stage property in program of playing, more specifically, at least one of can be included:Game service name, role ID, stage property ID, Stage property quantity.
As shown in fig. 6, in this embodiment, information request system can include:User, the official website as first server Server, as second server game server and be arranged on reissuing on the second server or third server and be System.Wherein, the flow of the information requesting method in the embodiment can be described as follows:
S602:User gets the request of stage property to the transmission of official website server;
S604:Official website server inspection sends the permission of the user of request message;
S606:If the user for sending request message has and gets permission, official website server is to game server road Tool provides request, and jumps to step S610;
S608:If the user for sending request message, which does not have, gets permission, the instruction for not having permission is returned to user;
S610:If game server be connected to the stage property granting request after, successfully transmit corresponding game item, then to User returns to stage property and gets successful instruction;
S612:If game server be connected to the stage property granting request after, send corresponding game item not successfully, then to It reissues system initiation and reissues request;
S614:If successfully reissuing game item, return to stage property to user and get successful instruction;
S616:Game item is still reissued not successfully if reissuing number and meeting or exceeding predetermined threshold, and road is returned to user Tool gets the instruction of failure.
It should be noted that for aforementioned each method embodiment, in order to be briefly described, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement because According to the present invention, certain steps may be used other sequences or be carried out at the same time.Secondly, those skilled in the art should also know It knows, embodiment described in this description belongs to preferred embodiment, and involved action and module are not necessarily of the invention It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation The method of example can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but it is very much In the case of the former be more preferably embodiment.Based on such understanding, technical scheme of the present invention is substantially in other words to existing The part that technology contributes can be embodied in the form of software product, which is stored in a storage In medium (such as ROM/RAM, magnetic disc, CD), used including some instructions so that a station terminal equipment (can be mobile phone, calculate Machine, server or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiment 2
According to embodiments of the present invention, a kind of information request system for being used to implement above- mentioned information requesting method is additionally provided, The system includes first server, second server and third server, wherein, as shown in fig. 7, the first server includes:
1) receiving unit 702, for receiving the request message for being used to obtain information of user's transmission;
2) the first judging unit 704, for judging whether user has the permission for obtaining information in response to request message;
3) the first request unit 706, for user have obtain information permission when, to second server acquisition request Information;
4) the second request unit 708, for when first server fails to second server acquisition request information, then One server reissues information to the request of third server;
5) retransmission unit 710, for first server to third server request reissue information success when, will be from third The information received in server is transmitted to user.
It will be clear that one of technical solution of the present invention problem to be solved is to provide a kind of system, to user The request of a certain information of acquisition sent out is responded, after judging that the user has the permission for obtaining the information, to the greatest extent may be used Can ground promote server that the information is successfully returned to the user during this response to request, reduced so as to reach Server reduces the processing of server and database and accesses pressure to the effect of the number of operations of database.Wherein, exist In some embodiments of the present invention, above- mentioned information can be the relevant information of game item, such as stage property ID, however the present invention is right This is not construed as limiting.
The information request system provided according to embodiments of the present invention in receiving unit 702, can utilize first server To receive the request for being used to obtain information of user's transmission.Wherein, the request of the acquisition information can be hypertext transfer protocol Http (Hypertext Transfer Protocol) is asked, or File Transfer Protocol ftp (File Transfer Protocol it) asks or to meet other feasible requests of File Transfer form etc., this is not limited by the present invention.More Specifically, which can be presented as a message, for example, for http request, corresponding to message can be by please Ask row, message header and message body composition.Optionally, in embodiments of the present invention, the request message described in receiving unit 702 can With carry can be identified by first server with the message needed for the corresponding identification item of the information that obtains, such as making For the game item of the information, which can carry the stage property ID of the game item.
In general, in embodiments of the present invention, first server can be exclusively used in handling such request Server, such as official website server, it being understood, however, that this does not mean that the official website server, and first server cannot in other words For performing other business.Further, the present invention does not make first, second, third server occurred in embodiment It limits.
The information request system provided according to embodiments of the present invention, in the first judging unit 704, first server can be with In response to user send request message, judge the user whether have obtain information permission namely first server to Whether family has the authentication operations of enough this information of authority acquiring.In general, in embodiments of the present invention, first judges list The realization method of member 704 can be authentication mode similarly to the prior art, wherein, most typically, first server can visit It asks the database for being stored with the corresponding authentication information of the information, and the authentication whether is carried in the request message sent to user Information is judged, if so, judging there is the permission for obtaining information by authentication namely the user, if it is not, then judging Do not have the permission for obtaining information by authentication namely the user.
Further, in embodiments of the present invention, if judging that user has by the first judging unit 704 obtains information Permission, then can be further in the first request unit 706, by first server to the second server acquisition request letter Breath.Under this scene, the request that first server is sent out to second server both can be to have been sent out different from aforementioned by user The new request that can be identified by second server of the request message gone out the or request sent out with user disappears The same request of manner of breathing, so as to which the request forwarded from first server to second server can also be considered as.
Wherein, for the application scenarios of game on line, which can be with for game server, and then the game Second server can allot the information, for example provide the request pair to server according to the request received for user in other words The game item answered.In embodiments of the present invention, second server can be with to the specific implementation of the granting of the information of request There are many, wherein, for game on line, the game server as second server can be directly to game user granting The stage property ID of game item correspondences are added to the corresponding data record of the user by the required game item got in other words, Such as in property attribute, however in other embodiments of the present invention, the information that second server is returned can also User is not directly sent to, but is forwarded via first server, this is not limited by the present invention, to the technology of the present invention The implementation of scheme and its fulfilling for effect will not have any impact.
Further, in embodiments of the present invention, the request that first server is sent out can be carried out in second server After response, judge whether second server successfully to the required information provide.Specifically, for swimming online The scene of play, the game server as second server in response to request Concurrency after corresponding game item is put, the game Server itself can detect the third party's service for being stored on the game server or being connected with the game server In database on device, ask whether the user of the game item successfully obtains the stage property.Certainly, this is a kind of example, In embodiments of the present invention, there can also be other modes whether successfully to provide the information to second server to judge, example Such as, information is returned to the situation of user for aforementioned second server via first server, it can also be in first service Whether to receiving and/or sending out the information and judge on device, and the result of this judgement as being to second server The no judging result for successfully providing the information.In other words, it is contemplated that the operation that second server provides the information shows as The response that two servers carry out the request that first server is sent out, therefore above-mentioned judging result can also be expressed as the first clothes Business device is success or failure to second server acquisition request information.
Based on above-mentioned judging result, the information request system provided according to embodiments of the present invention, in the second request unit 708 In, if first server thinks that second server acquisition request information fails, first server can transfer to third server The information is reissued in request.
The prior art is different from, in embodiments of the present invention, third clothes can be arranged in other words using third server System is reissued to reissue the information provided not successfully rather than simply server and database are returned on business device Rolling, and the instruction for obtaining information failure is returned to user.Wherein, most typically, the system of reissuing can with positioned at second service The delivery system of information on device corresponds to, however this is not limited by the present invention, such as the institute in the embodiment after the present invention That shows increasingly complex reissues mechanism.
It is worth noting that, the third server is only used for representing to carry out the above-mentioned server reissued where system, wherein, In some embodiments of the invention, which can also be set up directly on game server, so that third takes Business device is formed as one with second server.
And then in retransmission unit 710, if first server reissues information success, the first clothes to the request of third server Business device the information received from third server can be transmitted to user, wherein, specific pass-through mode can there are many, Such as it is shown in Fig. 8, retransmission unit 710 can include:
1) acquisition module 802, for, to during the success of third server acquisition request information, being taken in first server in third The first of business device setting, which is reissued, obtains the information that third server is sent on the time;
2) forwarding module 804, for the information received from third server to be transmitted to user.
In above-mentioned scene, first server can first pass through acquisition module 802 as the transfer for asking corresponding information The information is obtained from third server, the information got is then sent to user again.The advantage of this embodiment exists In:1) interaction of the interaction of user and first server, first server and second server and first server and third The interaction logic of server can be decoupling, so as to simplify the maintenance of information request system;It 2) can opposite second service Whether whether device solicited message is successful successfully carries out similar judgement with to third server solicited message, and the decision logic can To be uniformly arranged in first server, so as to further simplify the maintenance of information request system.
Certainly, it is one of feasible embodiment of the present invention more than, is not meant to constitute the present invention any limit It is fixed, such as similar to granting of the second server described in aforementioned embodiments to the information, in some implementations of the present invention In example, directly the information can also be sent, and then judged by third server either user from third server to user It reissues and whether succeeds, etc..
Further, in acquisition module 802, it can reissue what time acquisition was reissued in the first of third server setting The information, by this setting, can again be carried out in a period of time after there is information granting failure it is above-mentioned reissue operation, from And the appearance again of failure is avoided to a certain extent.Certainly, it is however generally that, the first lag for reissuing the time can be relatively It is short, in order to avoid since the longer stand-by period influences user experience.
Further, as shown in figure 9, as a kind of optional mode, in embodiments of the present invention, third server can To include:
1) transmitting element 902 for setting first to reissue the time, and are reissued first and are sent on the time to first server Information;
2) second judgment unit 904 reissue first in transmitting element and send information failure to first server on the time When, whether the number for judging currently to reissue information reaches predetermined threshold;Wherein,
Transmitting element 902 is additionally operable to be not up to predetermined threshold in the number that third server is judged currently to reissue information When, setting second is reissued the time, and is reissued second and sent information to first server on the time.
Under above-mentioned scene, third server can reissue the time in the first of lag certain time and be sent out to first server Send above- mentioned information, and can be in the case of reissuing unsuccessfully, in transmitting element 902, what is set at one second reissues It is reissued again on time, wherein, it is overall to reissue number and be limited to one as described in second judgment unit 904 In predetermined threshold, in order to avoid unlimitedly extending user to obtaining the stand-by period of the information, and avoid by system vulnerability institute Caused by reissue the abuse of mechanism.Wherein, as shown in Figure 10, optionally, in embodiments of the present invention, if third server judges Go out the current number for reissuing information and reach predetermined threshold, then third server can also include:
1) Alarm Unit 1002, for judging that the number for currently reissuing information reaches predetermined in second judgment unit 904 During threshold value, stop reissuing information, and send a warning message to for the management equipment of management information to first server.
More specifically, in embodiments of the present invention, transmitting element 902 can set the first benefit according at least one of The hair time and second reissues the time:Whether the corresponding type of service of information, second server are stopped, the fortune of third server Row load, so as to third server can according to the operating status of information request system come reasonably set first reissue the time and Second reissues the time, to avoid excessive additional operating load is caused.
By above example it is found that in embodiments of the present invention, using the information provided not successfully second server The design reissued can reach the same primary of the first server of request message sent in to(for) user to a certain extent The information that user asks is returned into the effect of user in response, and then avoids the rolling back action after information granting failure, with And due to again transmission of the user to the request message caused by information granting failure, and eliminate first server again Authentication, it is achieved thereby that reducing the load of first server and the access pressure of rollback and the database corresponding to authentication operations Technique effect, solve due to existing game item getting in method to stage property granting failure only with simple rollback The problem of caused server load of processing and larger data base read-write pressure.
Technical solution of the present invention is described below in conjunction with a specific embodiment.In this embodiment, on The scene that information request system can be applied to game on line is stated, wherein, the information of user's request can include being used to indicate trip The information of stage property in program of playing, more specifically, at least one of can be included:Game service name, role ID, stage property ID, Stage property quantity.
As shown in fig. 6, in this embodiment, information request system can include:User, the official website as first server Server, as second server game server and be arranged on reissuing on the second server or third server and be System.Wherein, the flow of the information request system in the embodiment can be described as follows:
S602:User gets the request of stage property to the transmission of official website server;
S604:Official website server inspection sends the permission of the user of request message;
S606:If the user for sending request message has and gets permission, official website server is to game server road Tool provides request, and jumps to step S610;
S608:If the user for sending request message, which does not have, gets permission, the instruction for not having permission is returned to user;
S610:If game server be connected to the stage property granting request after, successfully transmit corresponding game item, then to User returns to stage property and gets successful instruction;
S612:If game server be connected to the stage property granting request after, send corresponding game item not successfully, then to It reissues system initiation and reissues request;
S614:If successfully reissuing game item, return to stage property to user and get successful instruction;
S616:Game item is still reissued not successfully if reissuing number and meeting or exceeding predetermined threshold, and road is returned to user Tool gets the instruction of failure.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
In the above embodiment of the present invention, all emphasize particularly on different fields to the description of each embodiment, do not have in some embodiment The part of detailed description may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed system, it can be by another way It realizes.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, only a kind of Division of logic function, can there is an other dividing mode in actual implementation, such as multiple units or component can combine or can To be integrated into another system or some features can be ignored or does not perform.Another point, shown or discussed is mutual Coupling, direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING or communication connection of unit or module, Can be electrical or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit The component shown may or may not be physical unit, you can be located at a place or can also be distributed to multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also That each unit is individually physically present, can also two or more units integrate in a unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is independent product sale or uses When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme of the present invention is substantially The part to contribute in other words to the prior art or all or part of the technical solution can be in the form of software products It embodies, which is stored in a storage medium, is used including some instructions so that a computer Equipment (can be personal computer, server or network equipment etc.) perform each embodiment the method for the present invention whole or Part steps.And aforementioned storage medium includes:USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can to store program code Medium.
The above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications also should It is considered as protection scope of the present invention.

Claims (12)

1. a kind of information requesting method, which is characterized in that including:
First server receives the request message for being used to obtain information that user sends, wherein, described information includes:It is used to indicate The information of stage property in games;
The first server judges whether the user has the permission for obtaining described information in response to the request message;
If the user has the permission for obtaining described information, then the first server is to second server acquisition request institute State information;
If the first server fails to the second server acquisition request described information, the first server is to Described information is reissued in the request of three servers;
If the first server reissues described information success to third server request, the first server will be from The described information received in the third server is transmitted to the user.
2. if according to the method described in claim 1, it is characterized in that, the first server is asked to the third server Described information success is obtained, then the described information received from the third server is transmitted to institute by the first server User is stated to include:
The first server first reissues what the third server was set and the third server is obtained on the time sends Described information;
The described information received from the third server is transmitted to the user by the first server.
3. according to the method described in claim 1, it is characterized in that, the first server reissues institute to the request of third server Information is stated to include:
The third server setting first is reissued the time, and is reissued described first and sent on the time to the first server Described information;
If the third server is reissued described first and sends described information failure, institute to the first server on the time State whether the number that third server judges currently to reissue described information reaches predetermined threshold;
If the third server judges that the current number for reissuing described information is not up to predetermined threshold, the third Server setting second is reissued the time, and is reissued described second and sent described information to the first server on the time.
4. if according to the method described in claim 3, it is characterized in that, the third server is judged described currently to reissue institute The number for stating information reaches predetermined threshold, and the first server is reissued described information to the request of third server and included:
The third server stops reissuing described information to the first server, and to for managing the management of described information Equipment sends a warning message.
5. according to the method described in claim 3, it is characterized in that, the third server is set according at least one of Described first, which reissues the time and described second, reissues the time:
The corresponding type of service of described information;
Whether the second server is stopped;
The operating load of the third server.
6. the according to the method described in claim 1, it is characterized in that, packet of the stage property being used to indicate in games Include at least one of:Game service name, role ID, stage property ID, stage property quantity.
7. a kind of information request system, which is characterized in that including first server, second server and third server, wherein, The first server includes:
Receiving unit, for receiving the request message for being used to obtain information of user's transmission, described information includes:It is used to indicate trip The information of stage property in program of playing;
First judging unit, for judging whether the user has the power for obtaining described information in response to the request message Limit;
First request unit, for when the user has the permission for obtaining described information, being asked to the second server Obtain described information;
Second request unit, for when the first server fails to the second server acquisition request described information, Then the first server reissues described information to third server request;
Retransmission unit, will be from for when the first server reissues described information success to third server request The described information received in the third server is transmitted to the user.
8. system according to claim 7, which is characterized in that the retransmission unit includes:
Acquisition module, for the first server to the third server acquisition request described information success when, in institute It states the first of the setting of third server and reissues the described information that the third server transmission is obtained on the time;
Forwarding module, for the described information received from the third server to be transmitted to the user.
9. system according to claim 7, which is characterized in that the third server includes:
Transmitting element for setting first to reissue the time, and is reissued described first and is sent on the time to the first server Described information;
Second judgment unit reissues described first in the transmitting element and sends the letter to the first server on the time During breath failure, whether the number for judging currently to reissue described information reaches predetermined threshold;Wherein,
The transmitting element is additionally operable to judge that the current number for reissuing described information is not up in the third server During predetermined threshold, setting second is reissued the time, and is reissued described second and sent the letter to the first server on the time Breath.
10. system according to claim 9, which is characterized in that the third server further includes:
Alarm Unit, for judging that the current number for reissuing described information reaches described pre- in the second judgment unit When determining threshold value, stop reissuing described information, and send to for managing the management equipment of described information to the first server Warning information.
11. system according to claim 9, which is characterized in that the transmitting element is set according at least one of Described first, which reissues the time and described second, reissues the time:
The corresponding type of service of described information;
Whether the second server is stopped;
The operating load of the third server.
12. system according to claim 7, which is characterized in that the information of the stage property being used to indicate in games Including at least one of:Game service name, role ID, stage property ID, stage property quantity.
CN201310662372.6A 2013-12-09 2013-12-09 Information requesting method and system Active CN104702647B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201310662372.6A CN104702647B (en) 2013-12-09 2013-12-09 Information requesting method and system
PCT/CN2014/079648 WO2015085735A1 (en) 2013-12-09 2014-06-11 Information requesting method and system
TW103139536A TW201521844A (en) 2013-12-09 2014-11-14 Method and system for requesting information and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310662372.6A CN104702647B (en) 2013-12-09 2013-12-09 Information requesting method and system

Publications (2)

Publication Number Publication Date
CN104702647A CN104702647A (en) 2015-06-10
CN104702647B true CN104702647B (en) 2018-06-12

Family

ID=53349412

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310662372.6A Active CN104702647B (en) 2013-12-09 2013-12-09 Information requesting method and system

Country Status (3)

Country Link
CN (1) CN104702647B (en)
TW (1) TW201521844A (en)
WO (1) WO2015085735A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105939360B (en) * 2016-06-24 2019-07-09 北京奇虎科技有限公司 The outfit method and device of game article
CN106708661B (en) * 2016-12-09 2020-05-19 浙江宇视科技有限公司 Data backup method and device in wide area network environment
CN110876852B (en) * 2018-09-06 2023-09-26 深圳市贰陆陆科技有限公司 Network game data processing method and system for micro-service
CN110507988A (en) * 2019-08-12 2019-11-29 广州小丑鱼信息科技有限公司 A kind of game broken string Auto-reconnect method and system
CN111082901B (en) * 2019-11-21 2022-05-13 深圳前海环融联易信息科技服务有限公司 Intelligent message sending method and device, computer equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102594912A (en) * 2012-03-15 2012-07-18 北京昆仑万维科技股份有限公司 Data processing method under server architecture, server and server architecture
CN102710535A (en) * 2011-03-28 2012-10-03 腾讯科技(深圳)有限公司 Data acquisition method and equipment
CN102752324A (en) * 2011-04-18 2012-10-24 阿里巴巴集团控股有限公司 Network communication system and method and terminal
CN102870120A (en) * 2010-05-03 2013-01-09 Gsimedia股份有限公司 Authentication method and system for online game
CN103297462A (en) * 2012-02-28 2013-09-11 阿里巴巴集团控股有限公司 Verification method and device of service object
CN103427953A (en) * 2013-08-15 2013-12-04 中国船舶重工集团公司第七一五研究所 Beidou communication method for efficient transmission of buoy data

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201126371A (en) * 2010-01-27 2011-08-01 Hui Lin Online gaming authentication framework and method
CN102164174A (en) * 2011-03-09 2011-08-24 南京恩瑞特实业有限公司 Internal memory transferring method for high-capacity data
CN103037357A (en) * 2011-10-10 2013-04-10 昆达电脑科技(昆山)有限公司 Navigation information downloading method using microblog

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102870120A (en) * 2010-05-03 2013-01-09 Gsimedia股份有限公司 Authentication method and system for online game
CN102710535A (en) * 2011-03-28 2012-10-03 腾讯科技(深圳)有限公司 Data acquisition method and equipment
CN102752324A (en) * 2011-04-18 2012-10-24 阿里巴巴集团控股有限公司 Network communication system and method and terminal
CN103297462A (en) * 2012-02-28 2013-09-11 阿里巴巴集团控股有限公司 Verification method and device of service object
CN102594912A (en) * 2012-03-15 2012-07-18 北京昆仑万维科技股份有限公司 Data processing method under server architecture, server and server architecture
CN103427953A (en) * 2013-08-15 2013-12-04 中国船舶重工集团公司第七一五研究所 Beidou communication method for efficient transmission of buoy data

Also Published As

Publication number Publication date
WO2015085735A1 (en) 2015-06-18
CN104702647A (en) 2015-06-10
TW201521844A (en) 2015-06-16

Similar Documents

Publication Publication Date Title
CN104702647B (en) Information requesting method and system
CN100395766C (en) Method and system for limiting time of network gaming user
CN1852094B (en) Method and system for protecting account of network business user
EP2441230B1 (en) Method and apparatus for sending authentication request message in a social network
CN102368764B (en) A kind of method, system and client communicated by multi-point login
CN108737327A (en) Intercept method, apparatus, system, processor and the memory of malicious websites
CN106878309B (en) Safety early warning method and device applied to network payment
CN104917749B (en) account registration method and device
CN104618312B (en) A kind of remote login methods, devices and systems of M2M application
CN104519018A (en) Method, device and system for preventing malicious requests for server
CN101627407B (en) Reachability realizing server, management system, management method and realization program
CN104348809A (en) Network security monitoring method and system
CN107347049B (en) Account authentication method and server
CN102638771B (en) A kind of method and system of sharing web page
CN109995929A (en) Processing method, the processing method of account information, device and the storage medium of operation
CN103166920A (en) Method and system for limiting transmission of malicious information
CN110191131A (en) A kind of file sharing method, device, system, server and storage medium
CN108096838A (en) Gift bag gets method, apparatus, server, mobile terminal and storage medium
CN104980420A (en) Business processing method, device, terminal and server
US20160294833A1 (en) Social communication system and method thereof
CN104539637B (en) Sending method, server and the user terminal of information of check code
CN101656685A (en) Method for viewing user related information provided by on-line service
CN104796451A (en) Data processing method and device for internet application
CN105635048B (en) Service request processing method and device
CN114554251B (en) Multimedia data requesting method and device, storage medium and electronic device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant