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
user
request
reissue
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)
  • Information Transfer Between Computers (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (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 request method and system
Technical Field
The present invention relates to the field of communications, and in particular, to an information request method and system.
Background
In existing online games, game items are important elements for enriching game content and improving user experience, wherein the process of retrieving game items generally involves access to multiple databases and communication between multiple servers. Wherein, generally speaking, in order to facilitate centralized management of the distribution of the game props to users, the pickup page of the game props is usually set on the official website server, and the specific method for distributing the game props is associated with the game content, so the method is usually set on the game server. Specifically, the existing method for retrieving game items may generally adopt a flow as shown in fig. 1, wherein the flow may be summarized as follows:
s102: a user sends a request for getting a prop to an official website server;
s104: the official website server checks the authority of the user sending the request message;
s106: if the user sending the request message has the getting permission, the official website server sends a property issuing request to the game server, and the step S110 is skipped;
s108: if the user sending the request message does not have the receiving authority, returning an instruction without the authority to the user;
s110: if the game server successfully sends the corresponding game prop after receiving the prop sending request, returning an indication that the prop is successfully picked up to the user;
s112: if the game server does not successfully send the corresponding game props after receiving the prop sending request, rolling back the picking permission of the user; s114: if not, returning an indication of failure of item retrieval to the user.
Therefore, in the scheme, the whole picking method is ended regardless of whether the game props are successfully issued or not. And under the condition that the property is unsuccessfully issued, after receiving the feedback of the property getting failure, the user usually requests to get the game property again, so that the official website server needs to respond to the request message again and execute the inquiry and processing operation of checking the permission of the user again. Considering the situation that an online game has a huge user base number, the scheme obviously increases the load of an official website server and the access pressure of a database storing user permissions, and on the other hand, the rollback operation executed after item pickup failure also increases the read-write pressure of the database, so that the operation state of the online game is negatively affected, and the user experience is affected. In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides an information request method and an information request system, which at least solve the technical problems of large server load and database read-write pressure caused by that simple rollback processing is only adopted for item issuing failure in the conventional game item obtaining method.
According to an aspect of an embodiment of the present invention, there is provided an information requesting method, including: a first server receives a request message for acquiring information sent by a user; the first server responds to the request message to judge whether the user has the authority of acquiring the information; if the user has the authority to acquire the information, the first server requests a second server to acquire the information; if the first server fails to request the second server to acquire the information, the first server requests a third server to reissue the information; if the first server requests the third server to re-send the information successfully, the first server forwards the information received from the third server to the user.
According to another aspect of the embodiments of the present invention, there is also provided an information requesting system, including: the receiving unit is used for receiving a request message which is sent by a user and used for acquiring information; a first judging unit, configured to judge whether the user has an authority to acquire the information in response to the request message; a first requesting unit configured to request the second server to acquire the information when the user has a right to acquire the information; a second request unit, configured to, when the first server fails to request the second server to acquire the information, request the third server to reissue the information from the first server; a forwarding unit, configured to forward the information received from the third server to the user when the first server successfully requests the third server to reissue the information.
In the embodiment of the invention, the effect of returning the information requested by the user to the user in the same response of the first server to the request message sent by the user can be achieved to a certain extent by adopting the design of reissuing the information which is not successfully issued by the second server, so that the rollback operation after the information issuing failure is avoided, the request message is sent again by the user due to the information issuing failure, and the re-authentication of the first server is avoided, so that the technical effects of reducing the load of the first server and the access pressure of a database corresponding to the rollback and authentication operations are realized, and the technical problems of large server load and large reading and writing pressure caused by adopting simple rollback processing to the issuing failure in the conventional method for retrieving game props are solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a schematic diagram of an information request system according to the prior art;
FIG. 2 is a schematic diagram of an alternative information request method according to an embodiment of the invention;
FIG. 3 is a schematic diagram of an alternative information request method according to an embodiment of the invention;
FIG. 4 is a schematic diagram of yet another alternative information request method according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of yet another alternative information request method according to an embodiment of the invention;
FIG. 6 is an interaction diagram of an information request system according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of another information request system according to an embodiment of the invention;
FIG. 8 is a schematic diagram of yet another information requesting system, in accordance with an embodiment of the present invention;
FIG. 9 is a schematic diagram of yet another information requesting system, in accordance with an embodiment of the present invention;
fig. 10 is a schematic diagram of yet another information request system according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
According to an embodiment of the present invention, there is provided an information requesting method, as shown in fig. 2, the method including:
s202: a first server receives a request message for acquiring information sent by a user;
s204: the first server responds to the request message to judge whether the user has the authority of acquiring the information;
s206: if the user has the authority of acquiring the information, the first server requests the second server for acquiring the information;
s208: if the first server fails to request the second server for obtaining the information, the first server requests a third server for reissuing the information;
s210: and if the first server requests the third server for the information to be supplemented successfully, the first server forwards the information received from the third server to the user.
It should be clear that one of the problems to be solved by the technical solutions of the present invention is to provide a method for responding to a request sent by a user for obtaining a certain information, so as to prompt the server to successfully return the information to the user in the response process of the request as much as possible after determining that the user has the authority to obtain the information, thereby achieving the effect of reducing the number of operations of the server on the database, and further reducing the processing and access pressures of the server and the database. In some embodiments of the present invention, the information may be related information of the game item, such as an item ID, but the present invention is not limited thereto.
According to the information requesting method provided by the embodiment of the present invention, in step S202, a request for obtaining information sent by a user may be received by using a first server. The request for acquiring information may be a http (hypertext Transfer protocol) request, a ftp (file Transfer protocol) request, or a request conforming to other feasible text Transfer formats, and the present invention is not limited thereto. More specifically, the request may be embodied as a message, for example, for an http request, the corresponding message may be composed of a request line, a message header and a message body. Optionally, in this embodiment of the present invention, the request message in step S202 may carry an identification item that can be identified by the first server and corresponds to the information that needs to be obtained by the message, for example, for the game item serving as the information, the message may carry an item ID of the game item.
In general, in the embodiment of the present invention, the first server may be a server dedicated to processing such a request, such as an official website server, but it should be understood that this does not mean that the official website server or the first server cannot be used to execute other services. Further, the present invention is not limited to the first, second, and third servers appearing in the embodiments.
According to the information request method provided by the embodiment of the present invention, in step S204, the first server may respond to the request message sent by the user, and determine whether the user has the authority to acquire the information, that is, whether the first server has an authentication operation for the user to acquire the information. Generally, in the embodiment of the present invention, the implementation manner of step S204 may be an authentication manner similar to that in the prior art, where most generally, the first server may access a database storing authentication information corresponding to the information, and determine whether a request message sent by a user carries the authentication information, if so, it is determined that the request message passes the authentication, that is, the user has an authority to acquire the information, and if not, it is determined that the request message does not pass the authentication, that is, the user does not have the authority to acquire the information.
Further, in the embodiment of the present invention, if it is determined that the user has the right to acquire the information in step S204, the first server may further request the second server to acquire the information in step S206. In this scenario, the request from the first server to the second server may be a new request that is different from the aforementioned request message from the user and can be recognized by the second server, or may be the same request as the request message from the user, and thus may also be regarded as a request forwarded by the first server to the second server.
For an application scenario of the online game, the second server may be a game server, and the game server or the second server may distribute the information to the user according to the received request, for example, distribute a game item corresponding to the request. In the embodiment of the present invention, there may be a variety of specific implementation manners for issuing the requested information by the second server, where for the online game, the game server serving as the second server may directly issue the game item to be received to the game user, or correspondingly add the item ID of the game item to the data record corresponding to the user, such as the property of the belonging, however, in other embodiments of the present invention, the information returned by the second server may not be directly sent to the user, but may be forwarded via the first server.
Further, in the embodiment of the present invention, after the second server responds to the request sent by the first server, it may be determined whether the second server successfully issues the required information. Specifically, for the scenario of the online game, after the game server serving as the second server responds to the request and issues the corresponding game item, the game server itself may detect whether the user requesting the game item has successfully acquired the item, in the database stored on the game server or on the third-party server connected to the game server. Of course, this is only an example, and in the embodiment of the present invention, there may be other manners to determine whether the second server successfully issues the information, for example, for the case that the second server returns the information to the user via the first server, it may also be determined on the first server whether the information is received and/or sent, and a result of the determination is used as a determination result of whether the second server successfully issues the information. In other words, considering that the operation of the second server for issuing the information is performed by the second server in response to the request sent by the first server, the above-mentioned determination result may also be expressed as whether the first server requests the second server to acquire information successfully or unsuccessfully.
Based on the above determination result, according to the information requesting method provided in the embodiment of the present invention, in step S208, if the first server fails to request the second server to acquire the information, the first server may request the third server to send the information again.
Different from the prior art, in the embodiment of the present invention, the information that is not successfully issued may be reissued by using the third server or a reissue system disposed on the third server, instead of simply rolling back the server and the database, and returning an indication that the information acquisition has failed to the user. Most generally, however, the reissue system may correspond to the information issuing system located on the second server, but the present invention is not limited thereto, such as the more complex reissue mechanism shown in the embodiments following the present invention.
It should be noted that the third server is only used to indicate a server where the above-mentioned reissue system is performed, wherein in some embodiments of the present invention, the reissue system may also be directly disposed on the game server, so that the third server and the second server are integrated into a whole.
Further, in step S210, if the first server successfully requests the third server for reissuing the information, the first server may forward the information received from the third server to the user, where specific forwarding manners may be multiple, for example, as shown in fig. 3, step S210 may include:
s302: the first server acquires information sent by the third server at a first reissue time set by the third server;
s304: the first server forwards the information received from the third server to the user.
In the above scenario, the first server may serve as a relay for requesting the corresponding information, and first obtain the information from the third server through step S302, and then send the obtained information to the user. The advantages of this embodiment are: 1) the interaction between the user and the first server, the interaction between the first server and the second server, and the interaction between the first server and the third server can be decoupled, so that the maintenance of the information request system is simplified; 2) a similar determination may be made as to whether the request for information to the second server was successful as the request for information to the third server, and the determination logic may be uniformly disposed on the first server, thereby further simplifying maintenance of the information request system.
Of course, the above is only one of possible embodiments of the present invention, and is not meant to limit the present invention in any way, for example, similar to the issue of the information by the second server described in the foregoing embodiments, in some embodiments of the present invention, the information may also be directly sent to the user by the third server, and then the third server or the user may determine whether the reissue is successful, and so on.
Further, in step S302, the reissued information may be acquired at the first reissue time set by the third server, and by this setting, the reissue operation may be performed at a time after the failure of information delivery occurs, so as to avoid the occurrence of the failure again to some extent. Of course, in general, the lag in the first complementary hair time may be relatively short, so as not to affect the user experience due to the long latency.
Further, as shown in fig. 4, as an alternative manner, in the embodiment of the present invention, the step S208 may include:
s402: the third server sets first reissue time and sends information to the first server at the first reissue time;
s404: if the third server fails to send the information to the first server in the first reissue time, the third server judges whether the number of times of current reissue information reaches a preset threshold value;
s406: and if the third server judges that the number of times of the current complementary sending information does not reach the preset threshold value, the third server sets second complementary sending time and sends the information to the first server in the second complementary sending time.
In the above scenario, the third server may send the information to the first server at a first reissue time delayed by a certain time, and may, in case of a failure of reissue, perform reissue again at a second reissue time set in step S406, where, as described in step S404, the total number of reissues may be limited within a predetermined threshold, so as to avoid unlimited extension of the waiting time of the user for obtaining the information, and avoid misuse of a reissue mechanism due to a system bug. As shown in fig. 5, optionally, in the embodiment of the present invention, if the third server determines that the number of times of the current reissue of the information reaches the predetermined threshold, step S208 may further include:
s502: the third server stops reissuing the information to the first server and sends the warning information to the management equipment for managing the information.
More specifically, in the embodiment of the present invention, the third server sets the first complementary time and the second complementary time according to at least one of: the service type corresponding to the information, whether the second server stops working or not and the running load of the third server, so that the third server can reasonably set the first reissue time and the second reissue time according to the running state of the information request system to avoid causing overlarge extra running load.
As can be seen from the above embodiments, in the embodiments of the present invention, a design of reissuing information that is not successfully issued by the second server is adopted, the effect of returning the information requested by the user to the user in the same reply of the first server to the request message sent by the user can be achieved to some extent, thereby avoiding the rollback operation after the information release failure and the resending of the request message caused by the information release failure by the user, avoiding the re-authentication of the first server, therefore, the technical effect of reducing the load of the first server and the access pressure of the database corresponding to the rollback and authentication operations is achieved, and the technical problem that the server load and the database read-write pressure are large due to the fact that simple rollback processing is only adopted for item issuing failure in the conventional game item obtaining method is solved.
The technical solution of the present invention will be described with reference to a specific embodiment. In this embodiment, the information requesting method may be applied to a scenario of an online game, where the information requested by the user may include information indicating props in a game program, and more specifically, may include at least one of: game business name, role ID, prop ID and prop quantity.
As shown in fig. 6, in this embodiment, the information request system may include: the system comprises users, an official website server as a first server, a game server as a second server and a reissue system arranged on the second server or a third server. The flow of the information request method in this embodiment may be described as follows:
s602: a user sends a request for getting a prop to an official website server;
s604: the official website server checks the authority of the user sending the request message;
s606: if the user sending the request message has the getting permission, the official website server sends a property issuing request to the game server, and the step S610 is skipped;
s608: if the user sending the request message does not have the receiving authority, returning an instruction without the authority to the user;
s610: if the game server successfully sends the corresponding game prop after receiving the prop sending request, returning an indication that the prop is successfully picked up to the user;
s612: if the game server does not successfully send the corresponding game prop after receiving the prop sending request, initiating a reissue request to a reissue system;
s614: if the game props are successfully reissued, returning an indication that the prop is successfully picked up to the user;
s616: and if the reissue times reach or exceed the preset threshold value and the game prop is not successfully reissued, returning a prop acquisition failure indication to the user.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 2
According to an embodiment of the present invention, there is also provided an information requesting system for implementing the information requesting method, the system including a first server, a second server, and a third server, where, as shown in fig. 7, the first server includes:
1) a receiving unit 702, configured to receive a request message sent by a user for acquiring information;
2) a first judging unit 704 for judging whether the user has a right to acquire information in response to the request message;
3) a first requesting unit 706, configured to request the second server for obtaining information when the user has the right to obtain information;
4) a second requesting unit 708, configured to, when the first server fails to request the second server for obtaining the information, request the third server for reissuing the information from the first server;
5) a forwarding unit 710, configured to forward the information received from the third server to the user when the first server successfully requests the third server to send the supplementary information.
It should be clear that one of the problems to be solved by the technical solutions of the present invention is to provide a system for responding to a request sent by a user for obtaining a certain information, so as to prompt the server to successfully return the information to the user in the response process of the request as much as possible after determining that the user has the authority to obtain the information, thereby achieving the effect of reducing the number of operations of the server on the database, and further reducing the processing and access pressures of the server and the database. In some embodiments of the present invention, the information may be related information of the game item, such as an item ID, but the present invention is not limited thereto.
According to the information request system provided by the embodiment of the invention, in the receiving unit 702, the request for obtaining information sent by the user can be received by using the first server. The request for acquiring information may be a http (hypertext Transfer protocol) request, a ftp (file Transfer protocol) request, or a request conforming to other feasible text Transfer formats, and the present invention is not limited thereto. More specifically, the request may be embodied as a message, for example, for an http request, the corresponding message may be composed of a request line, a message header and a message body. Optionally, in this embodiment of the present invention, the request message described in the receiving unit 702 may carry an identification item that can be identified by the first server and corresponds to information that needs to be obtained by the message, for example, for a game item that is used as the information, the message may carry an item ID of the game item.
In general, in the embodiment of the present invention, the first server may be a server dedicated to processing such a request, such as an official website server, but it should be understood that this does not mean that the official website server or the first server cannot be used to execute other services. Further, the present invention is not limited to the first, second, and third servers appearing in the embodiments.
According to the information request system provided by the embodiment of the present invention, in the first determining unit 704, the first server may determine, in response to the request message sent by the user, whether the user has the right to acquire the information, that is, whether the first server has an authentication operation for the user to acquire the information. Generally, in the embodiment of the present invention, an implementation manner of the first determining unit 704 may be an authentication manner similar to that in the prior art, where most generally, the first server may access a database storing authentication information corresponding to the information, and determine whether a request message sent by a user carries the authentication information, if so, it is determined that the user passes the authentication, that is, the user has an authority to acquire the information, and if not, it is determined that the user does not pass the authentication, that is, the user does not have the authority to acquire the information.
Further, in the embodiment of the present invention, if the first determining unit 704 determines that the user has the right to acquire the information, the first requesting unit 706 may further request the second server to acquire the information through the first server. In this scenario, the request from the first server to the second server may be a new request that is different from the aforementioned request message from the user and can be recognized by the second server, or may be the same request as the request message from the user, and thus may also be regarded as a request forwarded by the first server to the second server.
For an application scenario of the online game, the second server may be a game server, and the game server or the second server may distribute the information to the user according to the received request, for example, distribute a game item corresponding to the request. In the embodiment of the present invention, there may be a variety of specific implementation manners for issuing the requested information by the second server, where for the online game, the game server serving as the second server may directly issue the game item to be received to the game user, or correspondingly add the item ID of the game item to the data record corresponding to the user, such as the property of the belonging, however, in other embodiments of the present invention, the information returned by the second server may not be directly sent to the user, but may be forwarded via the first server.
Further, in the embodiment of the present invention, after the second server responds to the request sent by the first server, it may be determined whether the second server successfully issues the required information. Specifically, for the scenario of the online game, after the game server serving as the second server responds to the request and issues the corresponding game item, the game server itself may detect whether the user requesting the game item has successfully acquired the item, in the database stored on the game server or on the third-party server connected to the game server. Of course, this is only an example, and in the embodiment of the present invention, there may be other manners to determine whether the second server successfully issues the information, for example, for the case that the second server returns the information to the user via the first server, it may also be determined on the first server whether the information is received and/or sent, and a result of the determination is used as a determination result of whether the second server successfully issues the information. In other words, considering that the operation of the second server for issuing the information is performed by the second server in response to the request sent by the first server, the above-mentioned determination result may also be expressed as whether the first server requests the second server to acquire information successfully or unsuccessfully.
Based on the above determination result, according to the information requesting system provided in the embodiment of the present invention, in the second requesting unit 708, if the first server fails to request the second server to acquire the information, the first server may request the third server to send the information again.
Different from the prior art, in the embodiment of the present invention, the information that is not successfully issued may be reissued by using the third server or a reissue system disposed on the third server, instead of simply rolling back the server and the database, and returning an indication that the information acquisition has failed to the user. Most generally, however, the reissue system may correspond to the information issuing system located on the second server, but the present invention is not limited thereto, such as the more complex reissue mechanism shown in the embodiments following the present invention.
It should be noted that the third server is only used to indicate a server where the above-mentioned reissue system is performed, wherein in some embodiments of the present invention, the reissue system may also be directly disposed on the game server, so that the third server and the second server are integrated into a whole.
Further, in the forwarding unit 710, if the first server successfully requests the third server for the reissue information, the first server may forward the information received from the third server to the user, where specific forwarding manners may be multiple, for example, as shown in fig. 8, the forwarding unit 710 may include:
1) an obtaining module 802, configured to obtain, when a first server requests a third server to obtain information successfully, information sent by the third server at a first reissue time set by the third server;
2) a forwarding module 804, configured to forward the information received from the third server to the user.
In the above scenario, the first server may serve as a relay for requesting the corresponding information, and first obtain the information from the third server through the obtaining module 802, and then send the obtained information to the user. The advantages of this embodiment are: 1) the interaction between the user and the first server, the interaction between the first server and the second server, and the interaction between the first server and the third server can be decoupled, so that the maintenance of the information request system is simplified; 2) a similar determination may be made as to whether the request for information to the second server was successful as the request for information to the third server, and the determination logic may be uniformly disposed on the first server, thereby further simplifying maintenance of the information request system.
Of course, the above is only one of possible embodiments of the present invention, and is not meant to limit the present invention in any way, for example, similar to the issue of the information by the second server described in the foregoing embodiments, in some embodiments of the present invention, the information may also be directly sent to the user by the third server, and then the third server or the user may determine whether the reissue is successful, and so on.
Further, in the obtaining module 802, the information to be reissued may be obtained at a first reissue time set by the third server, and through this setting, the reissue operation may be performed at a time after the information issue failure occurs, so that the failure is prevented from occurring again to some extent. Of course, in general, the lag in the first complementary hair time may be relatively short, so as not to affect the user experience due to the long latency.
Further, as shown in fig. 9, as an alternative manner, in an embodiment of the present invention, the third server may include:
1) a sending unit 902, configured to set a first reimbursement time, and send information to a first server at the first reimbursement time;
2) a second judging unit 904, configured to judge whether the number of times of currently transmitting the supplementary information reaches a predetermined threshold value when the transmitting unit fails to transmit the information to the first server at the first supplementary transmission time; wherein,
the sending unit 902 is further configured to set a second complementary sending time when the third server determines that the number of times of the current complementary sending information does not reach the predetermined threshold, and send the information to the first server at the second complementary sending time.
In the above scenario, the third server may send the information to the first server at a first reissue time delayed by a certain time, and may, in case of a failure of reissue, perform reissue again at a second reissue time set in the sending unit 902, where, as described in the second determining unit 904, the total number of reissues may be limited within a predetermined threshold, so as to avoid unlimited extension of the waiting time for obtaining the information by the user, and avoid misuse of a reissue mechanism due to a system bug. As shown in fig. 10, optionally, in the embodiment of the present invention, if the third server determines that the number of times of the current reissue of the information reaches the predetermined threshold, the third server may further include:
1) an alarm unit 1002, configured to stop the information retransmission to the first server and send alarm information to the management device for managing information when the second determining unit 904 determines that the number of times of current information retransmission reaches a predetermined threshold.
More specifically, in this embodiment of the present invention, the sending unit 902 may set the first complementary time and the second complementary time according to at least one of the following: the service type corresponding to the information, whether the second server stops working or not and the running load of the third server, so that the third server can reasonably set the first reissue time and the second reissue time according to the running state of the information request system to avoid causing overlarge extra running load.
It can be seen from the above embodiments that, in the embodiments of the present invention, by adopting the design of reissuing the information that is not successfully issued by the second server, the effect of returning the information requested by the user to the user in the same response of the first server to the request message sent by the user can be achieved to a certain extent, thereby avoiding the rollback operation after the information issuance failure, and the resending of the request message by the user due to the information issuance failure, and avoiding the re-authentication of the first server, thereby achieving the technical effect of reducing the load of the first server and the access pressure of the database corresponding to the rollback and authentication operations, and solving the problem of large server load and database read-write pressure caused by adopting only simple rollback processing for the stage property issuance failure in the existing method for retrieving the game stage property.
The technical solution of the present invention will be described with reference to a specific embodiment. In this embodiment, the information request system may be applied to a scenario of an online game, where the information requested by the user may include information indicating props in a game program, and more specifically, may include at least one of: game business name, role ID, prop ID and prop quantity.
As shown in fig. 6, in this embodiment, the information request system may include: the system comprises users, an official website server as a first server, a game server as a second server and a reissue system arranged on the second server or a third server. The flow of the information request system in this embodiment may be described as follows:
s602: a user sends a request for getting a prop to an official website server;
s604: the official website server checks the authority of the user sending the request message;
s606: if the user sending the request message has the getting permission, the official website server sends a property issuing request to the game server, and the step S610 is skipped;
s608: if the user sending the request message does not have the receiving authority, returning an instruction without the authority to the user;
s610: if the game server successfully sends the corresponding game prop after receiving the prop sending request, returning an indication that the prop is successfully picked up to the user;
s612: if the game server does not successfully send the corresponding game prop after receiving the prop sending request, initiating a reissue request to a reissue system;
s614: if the game props are successfully reissued, returning an indication that the prop is successfully picked up to the user;
s616: and if the reissue times reach or exceed the preset threshold value and the game prop is not successfully reissued, returning a prop acquisition failure indication to the user.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed system may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (12)

1. An information request method, comprising:
the method comprises the steps that a first server receives a request message which is sent by a user and used for obtaining information, wherein the information comprises: information indicative of an item in the game program;
the first server responds to the request message to judge whether the user has the authority of acquiring the information;
if the user has the authority of acquiring the information, the first server requests a second server to acquire the information;
if the first server fails to request the second server to acquire the information, the first server requests a third server to reissue the information;
and if the first server requests the third server for successful reissuing of the information, the first server forwards the information received from the third server to the user.
2. The method of claim 1, wherein if the first server requests the third server that the information is successfully obtained, the first server forwards the information received from the third server to the user, comprising:
the first server acquires the information sent by the third server at a first reissue time set by the third server;
the first server forwards the information received from the third server to the user.
3. The method of claim 1, wherein the first server requesting reissue of the information from a third server comprises:
the third server sets first reissue time and sends the information to the first server at the first reissue time;
if the third server fails to send the information to the first server in the first reissue time, the third server judges whether the number of times of current reissue of the information reaches a preset threshold value;
and if the third server judges that the current times of the information reissuing does not reach a preset threshold value, the third server sets second reissuing time and sends the information to the first server at the second reissuing time.
4. The method of claim 3, wherein if the third server determines that the current number of times of redelivery of the information reaches a predetermined threshold, the first server requesting redelivery of the information from the third server comprises:
and the third server stops reissuing the information to the first server and sends alarm information to the management equipment for managing the information.
5. The method of claim 3, wherein the third server sets the first complementary time and the second complementary time according to at least one of:
the service type corresponding to the information;
whether the second server stops working;
the operational load of the third server.
6. The method of claim 1, wherein the information indicative of items in the game program comprises at least one of: game business name, role ID, prop ID and prop quantity.
7. An information request system comprising a first server, a second server, and a third server, wherein the first server comprises:
a receiving unit, configured to receive a request message sent by a user and used for acquiring information, where the information includes: information indicative of an item in the game program;
a first judgment unit configured to judge whether the user has an authority to acquire the information in response to the request message;
a first request unit, configured to request the second server to acquire the information when the user has the right to acquire the information;
a second request unit, configured to, when the first server fails to request the second server to acquire the information, request the third server to reissue the information from the first server;
a forwarding unit, configured to forward the information received from the third server to the user when the first server successfully requests the third server to re-send the information.
8. The system of claim 7, wherein the forwarding unit comprises:
an obtaining module, configured to obtain, when the first server requests the third server that the information is successfully obtained, the information sent by the third server at a first reissue time set by the third server;
and the forwarding module is used for forwarding the information received from the third server to the user.
9. The system of claim 7, wherein the third server comprises:
a sending unit, configured to set a first reimbursement time, and send the information to the first server at the first reimbursement time;
a second determination unit configured to determine whether the number of times of currently retransmitting the information reaches a predetermined threshold value when the transmission unit fails to transmit the information to the first server at the first retransmission time; wherein,
the sending unit is further configured to set a second reissue time when the third server determines that the number of times of the current reissue of the information does not reach a predetermined threshold, and send the information to the first server at the second reissue time.
10. The system of claim 9, wherein the third server further comprises:
and an alarm unit, configured to stop reissuing the information to the first server and send alarm information to a management device for managing the information when the second determination unit determines that the number of times of reissuing the information currently reaches the predetermined threshold.
11. The system of claim 9, wherein the transmitting unit sets the first complementary time and the second complementary time according to at least one of:
the service type corresponding to the information;
whether the second server stops working;
the operational load of the third server.
12. The system of claim 7, wherein the information indicative of items in the game program comprises at least one of: game business name, role ID, prop ID and prop 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 (6)

* 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
CN117692098A (en) * 2023-07-13 2024-03-12 荣耀终端有限公司 Method for processing frame synchronization packet loss in game and related device

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
TW201521844A (en) 2015-06-16
CN104702647A (en) 2015-06-10

Similar Documents

Publication Publication Date Title
CN104702647B (en) Information requesting method and system
CN105530175B (en) Message processing method, device and system
CN106303099B (en) A kind of method, apparatus and system for verifying user's communicating number validity
KR102167613B1 (en) Message push method and device
CN104954322A (en) Account binding method, device and system
CN103327119B (en) Remote control method, device and system
CN107347049B (en) Account authentication method and server
CN104836879A (en) Address list updating method, server and system
CN105165035B (en) Have both the multimedia message transmission of text message transmission
CN105207881B (en) A kind of message method and equipment
CN103931221A (en) Method and system for replacing SE key of a mobile terminal
CN104796436A (en) User login method and system, first platform server and related platform server
CN105830079A (en) Authentication information management system, authentication information management device, program, recording medium, and authentication information management method
CN104980420A (en) Business processing method, device, terminal and server
CN107872446B (en) Communication account management method and device and server
CN108900525B (en) Processing method and device for verification code request
CN103095825A (en) Information management method and system of internet and server
US20100162409A1 (en) Method for moving rights object and method for managing rights of issuing rights object and system thereof
CN104468635A (en) Upgrading authentication method and system for user permission in network platform
CN108306815A (en) A kind of method, apparatus, equipment and computer readable storage medium obtaining message
CN103491141A (en) Application server and request processing method
CN107730380B (en) Method, system and server for processing joint account
CN102984148A (en) Method, device and system for content access control
KR20090070768A (en) Automatic login system and method that use portable terminal
CN104618326B (en) A kind of information processing method and electronic equipment

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