CN104702647A - Information request method and information request system - Google Patents

Information request method and information request system Download PDF

Info

Publication number
CN104702647A
CN104702647A CN201310662372.6A CN201310662372A CN104702647A CN 104702647 A CN104702647 A CN 104702647A CN 201310662372 A CN201310662372 A CN 201310662372A CN 104702647 A CN104702647 A CN 104702647A
Authority
CN
China
Prior art keywords
server
information
request
user
reissues
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.)
Granted
Application number
CN201310662372.6A
Other languages
Chinese (zh)
Other versions
CN104702647B (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)
  • Information Transfer Between Computers (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses an information request method and an information request system. The method includes that a first server receives a request message, used for acquiring information, sent by a user; the first server responds to the request message to judge whether or not the user has authority to acquire the information; if yes, the first server requests information acquisition from a second server; if failing to request information acquisition from the second server, the first server requests information reissuing from a third server; if succeeding in requesting information reissuing from the third server, the first server forwards information received from the third server to the user. By the information request method and the information request system, the technical problems of large server load and high database read-write pressure both caused by simple roll-back, adopted in existing game prop receiving methods, for prop dispensing failures are solved.

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 enriches game content, improves the important element of Consumer's Experience, and wherein, the process got game item is usually directed to the communication between the access of multiple database and multiple server.Wherein, generally speaking, for convenience of the centralized management that game item distributes to user, the page of getting of game item is arranged on the server of official website usually; and the distribution method of concrete game item is associated with game content, therefore the method can be arranged on game server usually.Specifically, the method for getting of existing game item can adopt flow process as shown in Figure 1 usually, and wherein, this flow process can be summarized as follows:
S102: user sends the request of getting stage property to official website server;
S104: the authority of the user that official website server inspection sends a request message;
S106: if the user sent a request message possesses get authority, then official website server is to game server stage property granting request, and jumps to step S110;
S108: if the user sent a request message does not possess get authority, then return the instruction not possessing authority to user;
S110: if game server is after receiving this stage property granting request, successful transmission of corresponding game item, then returns stage property to user and get successful instruction;
S112: if game server is after receiving this stage property granting request, unsuccessfully sends corresponding game item, then rollback user get authority; S114: if unsuccessful, and return to user the instruction that failure got by stage property.
It can thus be appreciated that in such scheme, no matter game item provides success or not, whole method of getting all will terminate.And when stage property granting failure; user receives after stage property gets the feedback of failure; usually can again ask to get this game item, thus official website server needs again to respond this request message, and again perform inquiry and the process operation of the authority checking this user.Consider that a game on line has the situation of comparatively huge user base number, such scheme will obviously increase the load of official website server and store the access pressure of database of user right, on the other hand, the rolling back action that stage property performs after getting failure increases the read-write pressure of database equally, and then negative effect is caused to the operation state of this game on line, so that affect Consumer's Experience.For above-mentioned problem, at present effective solution is not yet proposed.
Summary of the invention
Embodiments provide a kind of information requesting method and system, get due to existing game item the server load and the larger technical problem of data base read-write pressure that only adopt simple rollback process to cause to stage property granting failure in method at least to solve.
According to an aspect of the embodiment of the present invention, provide a kind of information requesting method, comprising: first server receives the request message for obtaining information that user sends; In response to above-mentioned request message, above-mentioned first server judges whether above-mentioned user has the authority obtaining above-mentioned information; If above-mentioned user has the authority obtaining above-mentioned information, then above-mentioned first server is to the above-mentioned information of second server acquisition request; If above-mentioned first server is to the above-mentioned information failure of above-mentioned second server acquisition request, then above-mentioned first server reissues above-mentioned information to the 3rd server request; If above-mentioned first server reissues the success of above-mentioned information to above-mentioned 3rd server request, then the above-mentioned information received from above-mentioned 3rd server is transmitted to above-mentioned user by above-mentioned first server.
According to the another aspect of the embodiment of the present invention, additionally provide a kind of information request system, comprising: receiving element, for receiving the request message for obtaining information that user sends; First judging unit, for judging in response to above-mentioned request message whether above-mentioned user has the authority obtaining above-mentioned information; First request unit, during for having the authority obtaining above-mentioned information above-mentioned user, to the above-mentioned information of above-mentioned second server acquisition request; Second request unit, for when above-mentioned first server is failed to the above-mentioned information of above-mentioned second server acquisition request, then above-mentioned first server reissues above-mentioned information to above-mentioned 3rd server request; Retransmission unit, for when above-mentioned first server reissues the success of above-mentioned information to above-mentioned 3rd server request, is transmitted to above-mentioned user by the above-mentioned information received from above-mentioned 3rd server.
In embodiments of the present invention, adopt the design that the information of the unsuccessful granting of second server is reissued, the effect in the same once response of request message user sent in first server, the information that user asks being returned to user can be reached to a certain extent, and then the rolling back action avoided after information granting failure, and the user unsuccessfully to cause due to information granting is to the transmission again of this request message, and eliminate the authentication again of first server, thus achieve the technique effect reducing the load of first server and the access pressure of rollback and the database corresponding to authentication operations, solve and get due to existing game item the server load and the larger technical problem of data base read-write pressure that only adopt simple rollback process to cause to stage property granting failure in method.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, and form a application's part, schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the schematic diagram of a kind of information request system according to prior art;
Fig. 2 is the schematic diagram of a kind of optional information requesting method according to the embodiment of the present invention;
Fig. 3 is the schematic diagram according to the optional information requesting method of the another kind of the embodiment of the present invention;
Fig. 4 is the schematic diagram of another the optional information requesting method according to the embodiment of the present invention;
Fig. 5 is the schematic diagram of another the optional information requesting method according to the embodiment of the present invention;
Fig. 6 is the interaction figure of a kind of information request system according to the embodiment of the present invention;
Fig. 7 is the schematic diagram of the another kind of information request system according to the embodiment of the present invention;
Fig. 8 is the schematic diagram of another the information request system according to the embodiment of the present invention;
Fig. 9 is the schematic diagram of another the information request system according to the embodiment of the present invention;
Figure 10 is the schematic diagram of another the information request system according to the embodiment of the present invention.
Embodiment
The present invention program is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the embodiment of a part of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, should belong to the scope of protection of the invention.
It should be noted that, term " first ", " second " etc. in specification of the present invention and claims and above-mentioned accompanying drawing are for distinguishing similar object, and need not be used for describing specific order or precedence.Should be appreciated that the data used like this can be exchanged in the appropriate case, so as embodiments of the invention described herein can with except here diagram or describe those except order implement.In addition, term " comprises " and " having " and their any distortion, intention is to cover not exclusive comprising, such as, contain those steps or unit that the process of series of steps or unit, method, system, product or equipment is not necessarily limited to clearly list, but can comprise clearly do not list or for intrinsic other step of these processes, method, product or equipment or unit.
Embodiment 1
According to the embodiment of the present invention, provide a kind of information requesting method, as shown in Figure 2, the method comprises:
S202: first server receives the request message for obtaining information that user sends;
S204: in response to request message, first server judges whether user has the authority of obtaining information;
S206: if user has the authority of obtaining information, then first server is to second server acquisition request information;
S208: if first server is to the failure of second server acquisition request information, then first server reissues information to the 3rd server request;
S210: if first server reissues information success to the 3rd server request, then the information received from the 3rd server is transmitted to user by first server.
Will be clear that, one of technical solution of the present invention problem to be solved is to provide a kind of method, the request of a certain information of acquisition that user sends is responded, with after judging that this user possesses the authority obtaining this information, impel server, in this is to the response process of request, this information is successfully returned to this user as much as possible, thus reach minimizing server to the effect of the number of operations of database, and then reduce process and the access pressure of server and database.Wherein, in some embodiments of the invention, above-mentioned information can be the relevant information of game item, such as stage property ID, but the present invention is not construed as limiting this.
According to the information requesting method that the embodiment of the present invention provides, in step S202, the request for obtaining information that first server sends to receive user can be utilized.Wherein, the request of this obtaining information can be HTML (Hypertext Markup Language) http (Hypertext Transfer Protocol) request, also can be file transfer protocol (FTP) ftp(File TransferProtocol) request, or for meeting the request etc. of other feasible File Transfer forms, the present invention is not construed as limiting this.More specifically, this request can be presented as a message, and such as, for http request, the message corresponding to it can be made up of request line, message header and message body.Alternatively, in embodiments of the present invention, request message described in step S202 can carry the identification item corresponding with the information obtained needed for this message that can identify for first server, such as the game item as this information, this message can carry the stage property ID of this game item.
Generally speaking, in embodiments of the present invention, first server can be exclusively used in the server processed this type of request, such as official website server, but should be appreciated that this not refer to this official website server in other words first server can not be used for performing other business.Further, the present invention is not construed as limiting for first, second, third server occurred in embodiment.
According to the information requesting method that the embodiment of the present invention provides, in step S204, the request message that first server can send in response to user, judge whether this user has the authority of obtaining information, also namely whether first server has the authentication operations of enough this information of authority acquiring to user.Generally speaking, in embodiments of the present invention, the implementation of step S204 can be authentication mode similarly to the prior art, wherein, the most usually, first server can access the database storing authentication information corresponding to this information, and whether carry this authentication information and judge in the request message that user is sent, if, then judge by authentication, also namely this user has the authority of obtaining information, if not, then judge not by authentication, namely this user does not have the authority of obtaining information yet.
Further, in embodiments of the present invention, if judge that user has the authority of obtaining information by step S204, then can further in step S206, by first server to this information of second server acquisition request.Under this scene, the request that first server sends to second server both can for be different from the aforesaid request message sent by user can identify by second server one new request, also can be the request identical with the request message that user sends, thus also can be considered as being the request forwarded to second server by first server.
Wherein, for the application scenarios of game on line, this second server can think game server, so this game server in other words second server according to this request received for user allots this information, can such as provide the game item of this request correspondence.In embodiments of the present invention, the specific implementation of second server to the granting of the information of request can have multiple, wherein, for game on line, game server as second server can directly to the game item got needed for game user granting, add the stage property ID of this game item correspondence data record corresponding to this user in other words, in such as property attribute, but in other embodiments of the present invention, this information that second server returns also directly can not send to user, but forward via first server, the present invention is not construed as limiting this, it can not have any impact to the enforcement of technical solution of the present invention and cashing of effect thereof.
Further, in embodiments of the present invention, after the request that can send first server at second server is responded, whether successfully to this required information, granting is carried out to second server and judges.Particularly, for the scene of game on line, as the game server of second server after the game item of answering of being rivals in a contest in response to request Concurrency, namely this game server self can detect in the database on the third-party server that is stored on this game server or be connected with this game server, asks the user of this game item whether successfully to obtain this stage property.Certainly, this is a kind of example, in embodiments of the present invention, other mode can also be had whether successfully to provide this information to second server judge, such as, information is returned to by aforesaid second server to the situation of user via first server, also can judge whether receiving and/or send out this information in first server, and the result of this judgement is as the judged result whether second server successfully being provided to this information.In other words, consider the response that operation that second server provides this information shows as second server and carries out the request that first server sends, therefore above-mentioned judged result also can be expressed as first server and is success or failure to second server acquisition request information.
Based on above-mentioned judged result, according to the information requesting method that the embodiment of the present invention provides, in step S208, if first server thinks the failure of second server acquisition request information, then first server can transfer to reissue this information to the 3rd server request.
Be different from prior art, in embodiments of the present invention, the information of system of reissuing to unsuccessful granting that the 3rd server can be utilized to be arranged in other words on the 3rd server is reissued, but not simply rollback is carried out to server and database, and return the instruction of obtaining information failure to user.Wherein, the most usually, this system of reissuing can be corresponding with the delivery system of the information be positioned on second server, but the present invention is not construed as limiting this, and such as, shown in the embodiment after the present invention more complicated reissues mechanism.
It should be noted that, 3rd server only carries out the above-mentioned server reissuing system place for representing, wherein, in some embodiments of the invention, this is reissued system and also can be set directly on game server, thus the 3rd server and second server are formed as one.
And then in step S210, if first server reissues information success to the 3rd server request, then the information received from the 3rd server can be transmitted to user by first server, wherein, concrete pass-through mode can have multiple, such as, shown in Fig. 3, step S210 can comprise:
S302: first server reissues the information obtaining the 3rd server transmission the time at first of the 3rd Servers installed;
S304: the information received from the 3rd server is transmitted to user by first server.
In above-mentioned scene, first server as the transfer of the information of request correspondence, first can obtain this information by step S302 from the 3rd server, and then this information got is sent to user.The advantage of this execution mode is: 1) mutual, the first server of user and first server and the mutual and first server of second server and the interaction logic of the 3rd server can be decoupling zeros, thus simplify the maintenance of information request system; 2) can subtend second server solicited message whether success with whether successfully carry out similar judgement to the 3rd server request information, and this decision logic can be unified to be arranged in first server, thus simplifies the maintenance of information request system further.
Certainly, one of execution mode that more than just the present invention is feasible, and do not mean that any restriction is constituted to the present invention, such as be similar to the granting of the second server described in aforementioned embodiments to this information, in some embodiments of the invention, also directly can send this information by the 3rd server to user, and then whether successfully be judged to reissue by the 3rd server or user, etc.
Further, in step s 302, this information of reissuing can be obtained, by this setting in first of the 3rd Servers installed time of reissuing, occurring that a period of time after information granting failure carries out above-mentionedly reissuing operation again, thus the appearance again of fault can be avoided to a certain extent.Certainly, generally speaking, first reissues the delayed of time can be relatively short, in order to avoid have influence on Consumer's Experience due to the longer stand-by period.
Further, as shown in Figure 4, as the optional mode of one, in embodiments of the present invention, step S208 can comprise:
S402: the three Servers installed first reissues the time, and reissues on the time to first server transmission information first;
S404: if the 3rd server is reissued on the time first send information failure to first server, then the 3rd server judges whether the current number of times reissuing information reaches predetermined threshold;
S406: if the 3rd server judges that the current number of times reissuing information does not reach predetermined threshold, then the 3rd Servers installed second reissues the time, and reissue on the time to first server transmission information second.
Under above-mentioned scene, 3rd server can send above-mentioned information in first of the delayed certain hour time of reissuing to first server, and can when reissuing failure, in step S406, one set second reissue on the time and again reissue, wherein, as as described in step S404, overall reissue number of times and can be limited in a predetermined threshold, in order to avoid unrestrictedly extend user to obtaining stand-by period of this information, and avoid the abuse of the mechanism of reissuing caused due to system vulnerability.Wherein, as shown in Figure 5, alternatively, in embodiments of the present invention, if the 3rd server judges that the current number of times reissuing information does not reach predetermined threshold, then step S208 can also comprise:
S502: the three server stops reissuing information to first server, and sends a warning message to the management equipment for management information.
More specifically, in embodiments of the present invention, 3rd server one of at least arranges first and reissues the time and second according to following and reissue the time: whether type of service corresponding to information, second server quit work, the operating load of the 3rd server, thus the 3rd server can reasonably arrange first according to the running status of information request system reissues the time and second and reissue the time, to avoid causing excessive extra operating load.
Known by above embodiment, in embodiments of the present invention, adopt the design that the information of the unsuccessful granting of second server is reissued, the effect in the same once response of request message user sent in first server, the information that user asks being returned to user can be reached to a certain extent, and then the rolling back action avoided after information granting failure, and the user unsuccessfully to cause due to information granting is to the transmission again of this request message, and eliminate the authentication again of first server, thus achieve the technique effect reducing the load of first server and the access pressure of rollback and the database corresponding to authentication operations, solve and get due to existing game item the server load and the larger technical problem of data base read-write pressure that only adopt simple rollback process to cause to stage property granting failure in method.
Below in conjunction with a specific embodiment, technical solution of the present invention is described.In this embodiment, above-mentioned information requesting method can be applied to the scene of game on line, wherein, the information of user's request can comprise the information of the stage property be used to indicate in games, more specifically, can comprise following one of at least: game service name, role ID, stage property ID, stage property quantity.
As shown in Figure 6, in this embodiment, information request system can comprise: user, the official website server as first server, the game server as second server and be arranged on this second server or the 3rd server reissue system.Wherein, the flow process of the information requesting method in this embodiment can be described below:
S602: user sends the request of getting stage property to official website server;
S604: the authority of the user that official website server inspection sends a request message;
S606: if the user sent a request message possesses get authority, then official website server is to game server stage property granting request, and jumps to step S610;
S608: if the user sent a request message does not possess get authority, then return the instruction not possessing authority to user;
S610: if game server is after receiving this stage property granting request, successful transmission of corresponding game item, then returns stage property to user and get successful instruction;
S612: if game server is after receiving this stage property granting request, the unsuccessful game item sending correspondence, then initiate to reissue request to system of reissuing;
S614: if successfully reissue game item, then return stage property to user and get successful instruction;
S616: if reissue number of times to meet or exceed that predetermined threshold is still unsuccessful reissues game item, then return to user the instruction that failure got by stage property.
It should be noted that, for aforesaid each embodiment of the method, in order to simple description, 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 by the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in specification all belongs to preferred embodiment, and involved action and module might not be that the present invention is necessary.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that can add required general hardware platform by software according to the method for above-described embodiment and realize, hardware can certainly be passed through, but in a lot of situation, the former is better execution mode.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium (as ROM/RAM, magnetic disc, CD), comprising some instructions in order to make a station terminal equipment (can be mobile phone, computer, server, or the network equipment etc.) perform method described in each embodiment of the present invention.
Embodiment 2
According to the embodiment of the present invention, additionally provide a kind of information request system for implementing above-mentioned information requesting method, this system comprises first server, second server and the 3rd server, and wherein, as shown in Figure 7, this first server comprises:
1) receiving element 702, for receiving the request message for obtaining information that user sends;
2) the first judging unit 704, for judging in response to request message whether user has the authority of obtaining information;
3) the first request unit 706, during for having the authority of obtaining information user, to second server acquisition request information;
4) the second request unit 708, for when first server is to the failure of second server acquisition request information, then first server reissues information to the 3rd server request;
5) retransmission unit 710, for when first server reissues information success to the 3rd server request, is transmitted to user by the information received from the 3rd server.
Will be clear that, one of technical solution of the present invention problem to be solved is to provide a kind of system, the request of a certain information of acquisition that user sends is responded, with after judging that this user possesses the authority obtaining this information, impel server, in this is to the response process of request, this information is successfully returned to this user as much as possible, thus reach minimizing server to the effect of the number of operations of database, and then reduce process and the access pressure of server and database.Wherein, in some embodiments of the invention, above-mentioned information can be the relevant information of game item, such as stage property ID, but the present invention is not construed as limiting this.
According to the information request system that the embodiment of the present invention provides, in receiving element 702, the request for obtaining information that first server sends to receive user can be utilized.Wherein, the request of this obtaining information can be HTML (Hypertext Markup Language) http (Hypertext Transfer Protocol) request, also can be file transfer protocol (FTP) ftp(File TransferProtocol) request, or for meeting the request etc. of other feasible File Transfer forms, the present invention is not construed as limiting this.More specifically, this request can be presented as a message, and such as, for http request, the message corresponding to it can be made up of request line, message header and message body.Alternatively, in embodiments of the present invention, request message described in receiving element 702 can carry the identification item corresponding with the information obtained needed for this message that can identify for first server, such as the game item as this information, this message can carry the stage property ID of this game item.
Generally speaking, in embodiments of the present invention, first server can be exclusively used in the server processed this type of request, such as official website server, but should be appreciated that this not refer to this official website server in other words first server can not be used for performing other business.Further, the present invention is not construed as limiting for first, second, third server occurred in embodiment.
According to the information request system that the embodiment of the present invention provides, in the first judging unit 704, the request message that first server can send in response to user, judge whether this user has the authority of obtaining information, also namely whether first server has the authentication operations of enough this information of authority acquiring to user.Generally speaking, in embodiments of the present invention, the implementation of the first judging unit 704 can be authentication mode similarly to the prior art, wherein, the most usually, first server can access the database storing authentication information corresponding to this information, and whether carry this authentication information and judge in the request message that user is sent, if, then judge by authentication, also namely this user has the authority of obtaining information, if not, then judge not by authentication, namely this user does not have the authority of obtaining information yet.
Further, in embodiments of the present invention, if judge that user has the authority of obtaining information by the first judging unit 704, then can further in the first request unit 706, by first server to this information of second server acquisition request.Under this scene, the request that first server sends to second server both can for be different from the aforesaid request message sent by user can identify by second server one new request, also can be the request identical with the request message that user sends, thus also can be considered as being the request forwarded to second server by first server.
Wherein, for the application scenarios of game on line, this second server can think game server, so this game server in other words second server according to this request received for user allots this information, can such as provide the game item of this request correspondence.In embodiments of the present invention, the specific implementation of second server to the granting of the information of request can have multiple, wherein, for game on line, game server as second server can directly to the game item got needed for game user granting, add the stage property ID of this game item correspondence data record corresponding to this user in other words, in such as property attribute, but in other embodiments of the present invention, this information that second server returns also directly can not send to user, but forward via first server, the present invention is not construed as limiting this, it can not have any impact to the enforcement of technical solution of the present invention and cashing of effect thereof.
Further, in embodiments of the present invention, after the request that can send first server at second server is responded, whether successfully to this required information, granting is carried out to second server and judges.Particularly, for the scene of game on line, as the game server of second server after the game item of answering of being rivals in a contest in response to request Concurrency, namely this game server self can detect in the database on the third-party server that is stored on this game server or be connected with this game server, asks the user of this game item whether successfully to obtain this stage property.Certainly, this is a kind of example, in embodiments of the present invention, other mode can also be had whether successfully to provide this information to second server judge, such as, information is returned to by aforesaid second server to the situation of user via first server, also can judge whether receiving and/or send out this information in first server, and the result of this judgement is as the judged result whether second server successfully being provided to this information.In other words, consider the response that operation that second server provides this information shows as second server and carries out the request that first server sends, therefore above-mentioned judged result also can be expressed as first server and is success or failure to second server acquisition request information.
Based on above-mentioned judged result, according to the information request system that the embodiment of the present invention provides, in the second request unit 708, if first server thinks the failure of second server acquisition request information, then first server can transfer to reissue this information to the 3rd server request.
Be different from prior art, in embodiments of the present invention, the information of system of reissuing to unsuccessful granting that the 3rd server can be utilized to be arranged in other words on the 3rd server is reissued, but not simply rollback is carried out to server and database, and return the instruction of obtaining information failure to user.Wherein, the most usually, this system of reissuing can be corresponding with the delivery system of the information be positioned on second server, but the present invention is not construed as limiting this, and such as, shown in the embodiment after the present invention more complicated reissues mechanism.
It should be noted that, 3rd server only carries out the above-mentioned server reissuing system place for representing, wherein, in some embodiments of the invention, this is reissued system and also can be set directly on game server, thus the 3rd server and second server are formed as one.
And then in retransmission unit 710, if first server reissues information success to the 3rd server request, then the information received from the 3rd server can be transmitted to user by first server, wherein, concrete pass-through mode can have multiple, such as shown in Fig. 8, retransmission unit 710 can comprise:
1) acquisition module 802, for when first server is to the 3rd server request obtaining information success, reissues the information obtaining the 3rd server transmission the time at first of the 3rd Servers installed;
2) forwarding module 804, for being transmitted to user by the information received from the 3rd server.
In above-mentioned scene, first server as the transfer of the information of request correspondence, first can obtain this information by acquisition module 802 from the 3rd server, and then this information got is sent to user.The advantage of this execution mode is: 1) mutual, the first server of user and first server and the mutual and first server of second server and the interaction logic of the 3rd server can be decoupling zeros, thus simplify the maintenance of information request system; 2) can subtend second server solicited message whether success with whether successfully carry out similar judgement to the 3rd server request information, and this decision logic can be unified to be arranged in first server, thus simplifies the maintenance of information request system further.
Certainly, one of execution mode that more than just the present invention is feasible, and do not mean that any restriction is constituted to the present invention, such as be similar to the granting of the second server described in aforementioned embodiments to this information, in some embodiments of the invention, also directly can send this information by the 3rd server to user, and then whether successfully be judged to reissue by the 3rd server or user, etc.
Further, in acquisition module 802, this information of reissuing can be obtained in first of the 3rd Servers installed time of reissuing, by this setting, occurring that a period of time after information granting failure carries out above-mentionedly reissuing operation again, thus the appearance again of fault can be avoided to a certain extent.Certainly, generally speaking, first reissues the delayed of time can be relatively short, in order to avoid have influence on Consumer's Experience due to the longer stand-by period.
Further, as shown in Figure 9, as the optional mode of one, in embodiments of the present invention, the 3rd server can comprise:
1) transmitting element 902, reissues the time for arranging first, and reissues on the time to first server transmission information first;
2) the second judging unit 904, when transmitting element is reissued failed to first server transmission information on the time first, judges whether the current number of times reissuing information reaches predetermined threshold; Wherein,
Transmitting element 902 also for when the 3rd server judges that the current number of times reissuing information does not reach predetermined threshold, arranges second and reissues the time, and reissues on the time to first server transmission information second.
Under above-mentioned scene, 3rd server can send above-mentioned information in first of the delayed certain hour time of reissuing to first server, and can when reissuing failure, in transmitting element 902, one set second reissue on the time and again reissue, wherein, as described in the second judging unit 904, overall reissue number of times and can be limited in a predetermined threshold, in order to avoid unrestrictedly extend user to obtaining stand-by period of this information, and avoid the abuse of the mechanism of reissuing caused due to system vulnerability.Wherein, as shown in Figure 10, alternatively, in embodiments of the present invention, if the 3rd server judges that the current number of times reissuing information reaches predetermined threshold, then the 3rd server can also comprise:
1) Alarm Unit 1002, for when the second judging unit 904 judges that the current number of times reissuing information reaches predetermined threshold, stops reissuing information to first server, and sends a warning message to the management equipment for management information.
More specifically, in embodiments of the present invention, transmitting element 902 one of at least can arrange first and reissues the time and second and reissue the time according to following: whether type of service corresponding to information, second server quit work, the operating load of the 3rd server, thus the 3rd server can reasonably arrange first according to the running status of information request system reissues the time and second and reissue the time, to avoid causing excessive extra operating load.
Known by above embodiment, in embodiments of the present invention, adopt the design that the information of the unsuccessful granting of second server is reissued, the effect in the same once response of request message user sent in first server, the information that user asks being returned to user can be reached to a certain extent, and then the rolling back action avoided after information granting failure, and the user unsuccessfully to cause due to information granting is to the transmission again of this request message, and eliminate the authentication again of first server, thus achieve the technique effect reducing the load of first server and the access pressure of rollback and the database corresponding to authentication operations, solve and get due to existing game item the server load and the larger problem of data base read-write pressure that only adopt simple rollback process to cause to stage property granting failure in method.
Below in conjunction with a specific embodiment, technical solution of the present invention is described.In this embodiment, above-mentioned information request system can be applied to the scene of game on line, wherein, the information of user's request can comprise the information of the stage property be used to indicate in games, more specifically, can comprise following one of at least: game service name, role ID, stage property ID, stage property quantity.
As shown in Figure 6, in this embodiment, information request system can comprise: user, the official website server as first server, the game server as second server and be arranged on this second server or the 3rd server reissue system.Wherein, the flow process of the information request system in this embodiment can be described below:
S602: user sends the request of getting stage property to official website server;
S604: the authority of the user that official website server inspection sends a request message;
S606: if the user sent a request message possesses get authority, then official website server is to game server stage property granting request, and jumps to step S610;
S608: if the user sent a request message does not possess get authority, then return the instruction not possessing authority to user;
S610: if game server is after receiving this stage property granting request, successful transmission of corresponding game item, then returns stage property to user and get successful instruction;
S612: if game server is after receiving this stage property granting request, the unsuccessful game item sending correspondence, then initiate to reissue request to system of reissuing;
S614: if successfully reissue game item, then return stage property to user and get successful instruction;
S616: if reissue number of times to meet or exceed that predetermined threshold is still unsuccessful reissues game item, then return to user the instruction that failure got by stage property.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
In the above embodiment of the present invention, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part described in detail, can see the associated description of other embodiments.
In several embodiments that the application provides, should be understood that, disclosed system, the mode by other realizes.Wherein, device embodiment described above is only schematic, the such as division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of unit or module or communication connection can be electrical or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If described integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprises all or part of step of some instructions in order to make a computer equipment (can be personal computer, server or the network equipment etc.) perform method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, read-only memory (ROM, Read-OnlyMemory), random access memory (RAM, Random Access Memory), portable hard drive, magnetic disc or CD etc. various can be program code stored medium.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (14)

1. an information requesting method, is characterized in that, comprising:
First server receives the request message for obtaining information that user sends;
In response to described request message, described first server judges whether described user has the authority obtaining described information;
If described user has the authority obtaining described information, then described first server is to information described in second server acquisition request;
If described first server is to information failure described in described second server acquisition request, then described first server reissues described information to the 3rd server request;
If described first server reissues the success of described information to described 3rd server request, then the described information received from described 3rd server is transmitted to described user by described first server.
2. method according to claim 1, it is characterized in that, if described first server obtains the success of described information to described 3rd server request, then the described information received from described 3rd server is transmitted to described user and comprises by described first server:
Described first server reissues the described information obtaining described 3rd server transmission the time at first of described 3rd Servers installed;
The described information received from described 3rd server is transmitted to described user by described first server.
3. method according to claim 1, is characterized in that, described first server is reissued described information to the 3rd server request and comprised:
Described 3rd Servers installed first reissues the time, and reissues on the time described first and send described information to described first server;
If described 3rd server is reissued on the time described first and sent the failure of described information to described first server, then described 3rd server judges whether the current number of times reissuing described information reaches predetermined threshold;
If described 3rd server judges that the described current number of times reissuing described information does not reach predetermined threshold, then described 3rd Servers installed second reissues the time, and reissues on the time described second and send described information to described first server.
4. method according to claim 3, is characterized in that, if described 3rd server judges that the described current number of times reissuing described information does not reach predetermined threshold, described first server is reissued described information to the 3rd server request and comprised:
Described 3rd server stops reissuing described information to described first server, and sends a warning message to the management equipment for managing described information.
5. method according to claim 3, is characterized in that, described 3rd server one of at least arranges described first and reissues the time and described second according to following and reissue the time:
The type of service that described information is corresponding;
Whether described second server quits work;
The operating load of described 3rd server.
6. method according to any one of claim 1 to 5, is characterized in that, described information comprises: the information being used to indicate the stage property in games.
7. method according to claim 6, is characterized in that, described in the information of stage property that is used to indicate in games comprise following one of at least: game service name, role ID, stage property ID, stage property quantity.
8. an information request system, is characterized in that, comprise first server, second server and the 3rd server, wherein, described first server comprises:
Receiving element, for receiving the request message for obtaining information that user sends;
First judging unit, for judging in response to described request message whether described user has the authority obtaining described information;
First request unit, during for having the authority obtaining described information described user, to information described in described second server acquisition request;
Second request unit, for when described first server is failed to information described in described second server acquisition request, then described first server reissues described information to described 3rd server request;
Retransmission unit, for when described first server reissues the success of described information to described 3rd server request, is transmitted to described user by the described information received from described 3rd server.
9. system according to claim 8, is characterized in that, described retransmission unit comprises:
Acquisition module, for when described first server obtains the success of described information to described 3rd server request, reissues the described information obtaining described 3rd server transmission the time at first of described 3rd Servers installed;
Forwarding module, for being transmitted to described user by the described information received from described 3rd server.
10. system according to claim 8, is characterized in that, described 3rd server comprises:
Transmitting element, reissues the time for arranging first, and reissues on the time described first and send described information to described first server;
Second judging unit, described transmitting element described first reissue on the time to described first server send described information failure time, judge whether the current number of times reissuing described information reaches predetermined threshold; Wherein,
Described transmitting element also for when described 3rd server judges that the described current number of times reissuing described information does not reach predetermined threshold, arranges second and reissues the time, and reissues on the time described second and send described information to described first server.
11. systems according to claim 10, is characterized in that, described 3rd server also comprises:
Alarm Unit, during for judging that the described current number of times reissuing described information reaches described predetermined threshold at described second judging unit, stopping reissuing described information to described first server, and sending a warning message to the management equipment for managing described information.
12. systems according to claim 10, is characterized in that, described transmitting element one of at least arranges described first and reissues the time and described second according to following and reissue the time:
The type of service that described information is corresponding;
Whether described second server quits work;
The operating load of described 3rd server.
System according to any one of 13. according to Claim 8 to 12, is characterized in that, described information comprises: the information being used to indicate the stage property in games.
14. systems according to claim 13, is characterized in that, described in the information of stage property that is used to indicate in games comprise following one of at least: 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 true CN104702647A (en) 2015-06-10
CN104702647B 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)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105939360A (en) * 2016-06-24 2016-09-14 北京奇虎科技有限公司 Equipping method and device of game equipment
CN106708661A (en) * 2016-12-09 2017-05-24 浙江宇视科技有限公司 Data backup method and device in wide area network environment
CN110507988A (en) * 2019-08-12 2019-11-29 广州小丑鱼信息科技有限公司 A kind of game broken string Auto-reconnect method and system
CN110876852A (en) * 2018-09-06 2020-03-13 深圳市东方博雅科技有限公司 Network game data processing method and system of micro-service

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111082901B (en) * 2019-11-21 2022-05-13 深圳前海环融联易信息科技服务有限公司 Intelligent message sending method and device, computer equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110185175A1 (en) * 2010-01-27 2011-07-28 Gsimedia Corporation Authentication Method and System for Online Gaming
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 (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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 (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110185175A1 (en) * 2010-01-27 2011-07-28 Gsimedia Corporation Authentication Method and System for Online Gaming
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

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105939360A (en) * 2016-06-24 2016-09-14 北京奇虎科技有限公司 Equipping method and device of game equipment
CN105939360B (en) * 2016-06-24 2019-07-09 北京奇虎科技有限公司 The outfit method and device of game article
CN106708661A (en) * 2016-12-09 2017-05-24 浙江宇视科技有限公司 Data backup method and device in wide area network environment
CN106708661B (en) * 2016-12-09 2020-05-19 浙江宇视科技有限公司 Data backup method and device in wide area network environment
CN110876852A (en) * 2018-09-06 2020-03-13 深圳市东方博雅科技有限公司 Network game data processing method and system of micro-service
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

Also Published As

Publication number Publication date
WO2015085735A1 (en) 2015-06-18
CN104702647B (en) 2018-06-12
TW201521844A (en) 2015-06-16

Similar Documents

Publication Publication Date Title
CN104253741B (en) A kind of method for sending information, relevant apparatus and system
CN105991412B (en) Information push method and device
CN108667861A (en) By browser to the method, system and server of device real-time monitoring
CN104702647A (en) Information request method and information request system
US8931065B2 (en) OTA bootstrap method and system
CN105814591A (en) Verification information transmission method and terminal
CN101345948A (en) Monitoring mobile phone, mobile phone monitoring system and method for monitoring mobile phone
CN104980925A (en) Authentication method and authentication device for user request
CN103457802A (en) Information transmission system and method
CN105165035B (en) Have both the multimedia message transmission of text message transmission
CN113794597A (en) Alarm information processing method, system, electronic device and storage medium
CN103716230A (en) Message sending method, device and server
CN104980420A (en) Business processing method, device, terminal and server
CN108096838A (en) Gift bag gets method, apparatus, server, mobile terminal and storage medium
CN113904847A (en) Cloud platform binding method, system, equipment and medium of Internet of things card
CN106330513A (en) Processing method and apparatus for tr069 protocol information
CN108184131A (en) Start broadcasting based reminding method, device and readable storage medium storing program for executing
CN104796451A (en) Data processing method and device for internet application
CN106384159A (en) Judge meeting appointment method and device applied to court system
CN101753561A (en) Business cluster processing method and cluster system
CN113727288B (en) Silence customer service robot based on 5G message
CN102984148A (en) Method, device and system for content access control
CN112231612B (en) Method and device for transmitting configuration information, storage medium and electronic device
CN102448085B (en) Service monitoring method and system of mobile terminal and mobile terminal
CN101925065A (en) Authentication method, device, system and wireless access point

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