Information push method and network architecture
By introducing information push methods into the network architecture, the application server directly receives and sends target information carrying the target client identification, solving the problem of the cumbersome process of the application server obtaining client data information in the prior art, realizing timely acquisition Data information to improve user experience.
Patent Information
- Application Number
- CN202111137445.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2016-11-01
- Publication Date
- 2025-02-14
- Estimated Expiration
- 2036-11-01
AI Technical Summary
In the prior art, the process of obtaining client data information by application servers is cumbersome, and it is impossible to obtain client data information in a timely manner, which affects the user experience.
By introducing an information push method into the network architecture, the application server receives the target information with the target client ID sent by the Web server and directly sends the information to the target client, simplifying the data acquisition process.
It realizes that the application server obtains client data information in a timely manner, improves the user's experience of using the client, and reduces the need for the client to actively request data information.
Smart Images

Figure CN113852695B_ABST
Abstract
Description
[0001] This application is a divisional application of the Chinese patent application filed with the China Patent Office on November 1, 2016, with application number 201610935218.5 and invention name “Information Push Method, Device and Network Architecture”. Technical Field
[0002] The present invention relates to the field of computer technology, and in particular to an information push method and a network architecture. Background Art
[0003] An application server can refer to a device that exposes business logic to the client through various protocols. The application server provides services to the client and provides access to business logic for the client to use. That is to say, the client's application needs to work with the application server; for example, the common Kingsoft Security client and Kingsoft Security server, WPS Office (an office software) client and WPS Office server, and game client and its corresponding game server. In addition, in the prior art, in order to improve the user experience, the client is also configured with a Web (Internet) server. The client can obtain the data information corresponding to the client through the Web server, that is, the user uses the application through the client, and can also conduct peripheral activities about the application based on the Web server, such as exchanging experience in using the application.
[0004] The application server can also obtain the data information corresponding to the client, and the only way to obtain it is: the client first obtains the data information corresponding to the client from the Web server, and then obtains the corresponding client data information from the client. When both the client and the application server need the data information corresponding to the client, the user first needs to enter the corresponding instruction on the client, and then let the client send a request to the Web server based on the instruction, and then the Web server directly replies to the client with data information; then the application server actively obtains the data information from the client.
[0005] Since the interaction between the application server and the Web server needs to be implemented through the client corresponding to both the application server and the Web server, the process for the application server to obtain the above data information is cumbersome, and the application server cannot obtain the data information corresponding to the client in a timely manner. Summary of the invention
[0006] The embodiment of the present invention discloses an information push method, device and network architecture, so as to simplify the process of the application server obtaining the data information corresponding to the client when both the client and the application server need the data information corresponding to the client, ensure that the application server obtains the data information corresponding to the client in a timely manner, and improve the user experience of using the client. The technical solution is as follows:
[0007] To achieve the above-mentioned purpose, in a first aspect, an embodiment of the present invention provides an information push method, which is applied to a network architecture, wherein the network architecture includes an application server, a target client corresponding to the application server, and a Web server corresponding to the target client, and the method includes:
[0008] The application server receives the target information carrying the target client identifier sent by the Web server;
[0009] The target information is sent to a target client corresponding to the target client identifier.
[0010] Preferably, the method further comprises:
[0011] The application server updates the target information recorded locally based on the received target information;
[0012] Based on the updated target information recorded locally, a service is provided to the target client.
[0013] Preferably, before the application server receives the target information carrying the target client identifier sent by the Web server, the method further includes:
[0014] The application server sends an information request carrying the target client identifier to the Web server, so that the Web server receives the information request, obtains target information corresponding to the target client identifier, and sends the target information to the application server.
[0015] Preferably, when the number of the Web servers is at least two, the network architecture further comprises a load balancing forwarder connecting the application server and all the Web servers.
[0016] The application server sends an information request carrying the target client identifier to the Web server, including:
[0017] The application server sends an information request carrying the target client identifier to the load balancing forwarder, so that the load balancing forwarder sends the information request to the target Web server; wherein the target Web server is a Web server selected by the load balancing forwarder based on the load conditions of each Web server at the current moment;
[0018] The receiving the target information carrying the target client identifier sent by the Web server includes:
[0019] Receive the target information carrying the target client identifier sent by the target Web server.
[0020] In a second aspect, an embodiment of the present invention provides another information push method, which is applied to a network architecture, wherein the network architecture includes an application server, a target client corresponding to the application server, and a Web server corresponding to the target client, and the method includes:
[0021] The Web server obtains target information carrying a target client identifier;
[0022] The target information is sent to the application server, so that the application server receives the target information and pushes the target information to the target client corresponding to the target client identifier.
[0023] Preferably, the Web server obtains the target information carrying the target client identifier, including:
[0024] The Web server receives the information request carrying the target client identifier sent by the application server;
[0025] Obtain target information corresponding to the target client identifier.
[0026] Preferably, the Web server obtains the target information carrying the target client identifier, including:
[0027] The Web server monitors whether the user data information of the target user corresponding to the target client changes;
[0028] If yes, the target information carrying the target client identifier and the changed user data information is obtained.
[0029] In a third aspect, an embodiment of the present invention provides an information push device, which is applied to an application server in a network architecture, wherein the network architecture further includes a target client corresponding to the application server and a Web server corresponding to the target client, and the device includes:
[0030] A receiving module, used for receiving target information carrying a target client identifier sent by the Web server;
[0031] The first sending module is configured to send the target information to a target client corresponding to the target client identifier.
[0032] Preferably, the device further comprises: an updating module, configured to update the target information recorded locally based on the received target information;
[0033] A providing module is used to provide services to the target client based on the updated target information recorded locally.
[0034] Preferably, the device also includes: a second sending module, used to send an information request carrying the target client identifier to the Web server before the application server receives the target information carrying the target client identifier sent by the Web server; so that the Web server receives the information request, obtains the target information corresponding to the target client identifier, and sends the target information to the application server.
[0035] Preferably, when the number of the Web servers is at least two, the network architecture further comprises a load balancing forwarder connecting the application server and all the Web servers.
[0036] The second sending module is specifically configured to send an information request carrying the target client identifier to the load balancing forwarder before the application server receives the target information carrying the target client identifier sent by the Web server, so that the load balancing forwarder sends the information request to the target Web server, thereby causing the Web server to receive the information request, obtain the target information corresponding to the target client identifier, and send the target information to the application server; wherein the target Web server is a Web server selected by the load balancing forwarder based on the load conditions of each Web server at the current moment;
[0037] The receiving module is specifically used to receive the target information carrying the target client identifier sent by the target Web server.
[0038] In a fourth aspect, an embodiment of the present invention provides another information push device, which is applied to a Web server in a network architecture, wherein the network architecture further includes a target client corresponding to the Web server and an application server corresponding to the target client, and the device includes:
[0039] An acquisition module, used to obtain target information carrying a target client identifier;
[0040] The third sending module is used to send the target information to the application server, so that the application server receives the target information and pushes the target information to the target client corresponding to the target client identifier.
[0041] Preferably, the obtaining module comprises:
[0042] A receiving submodule, configured to receive an information request carrying the target client identifier sent by the application server;
[0043] The first obtaining submodule is used to obtain target information corresponding to the target client identifier.
[0044] Preferably, the obtaining module comprises:
[0045] A monitoring submodule, used to monitor whether the user data information of the target user corresponding to the target client changes;
[0046] The second obtaining submodule is used to obtain the target information carrying the target client identifier and the changed user data information when the user data information of the target user corresponding to the target client changes.
[0047] In a fifth aspect, an embodiment of the present invention provides a network architecture, including an application server, a target client corresponding to the application server, and a Web server corresponding to the target client.
[0048] The Web server is used to obtain target information carrying a target client identifier, and send the target information carrying the target client identifier to the application server;
[0049] The application server is used to receive the target information and send the target information to the target client corresponding to the target client identifier.
[0050] Preferably, the application server is further configured to update the target information recorded locally based on the received target information;
[0051] Based on the updated target information recorded locally, a service is provided to the target client.
[0052] Preferably, the application server is further used to send an information request carrying the target client identifier to the Web server;
[0053] The Web server is specifically configured to receive the information request and obtain target information corresponding to the target client identifier.
[0054] Preferably, the number of the Web servers is at least two, and the network architecture further comprises a load balancing forwarder connecting the application server and all the Web servers.
[0055] The application server is specifically used to send an information request carrying a target client identifier to the load balancing forwarder; and receive the target information forwarded by the load balancing forwarder;
[0056] The load balancing forwarder is used to select a target Web server from each Web server based on the load conditions of each Web server at the current moment, and send the received information request to the target Web server; receive the target information sent by the target Web server; and forward the target information to the application server;
[0057] The target Web server is used to receive the information request forwarded by the load balancing forwarder; obtain the target information corresponding to the target client identifier; and send the target information to the load balancing forwarder.
[0058] Preferably, the Web server is further used to monitor whether the user data information of the target user corresponding to the target client changes; if so, obtain the target information carrying the target client identifier and the changed user data information.
[0059] As can be seen from the above, in the embodiment of the present invention, the application server first receives the target information carrying the target client identifier sent by the Web server; then the application server sends the target information to the target client corresponding to the target client identifier. Compared with the prior art, in the solution provided by the embodiment of the present invention, the communication connection between the application server and the Web server can be realized without passing through the target client. When both the client and the application server need the data information corresponding to the client, the process of the application server obtaining the data information corresponding to the client is simplified, ensuring that the application server obtains the data information corresponding to the client in a timely manner, improving the user experience of using the client, and the client can obtain the data information corresponding to the client without actively sending a request for data information to the Web server, improving the user experience of using the client. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0061] Figure 1 A schematic diagram of a flow chart of an information push method provided by an embodiment of the present invention;
[0062] Figure 2 A schematic diagram of a flow chart of an information push method provided by another embodiment of the present invention;
[0063] Figure 3 A schematic diagram of a flow chart of another information push method provided by an embodiment of the present invention;
[0064] Figure 4 A schematic diagram of a flow chart of another information push method provided by another embodiment of the present invention;
[0065] Figure 5 A flowchart of another information push method provided by yet another embodiment of the present invention;
[0066] Figure 6 A schematic diagram of the structure of an information push device provided by an embodiment of the present invention;
[0067] Figure 7 A schematic diagram of the structure of an information push device provided by another embodiment of the present invention;
[0068] Figure 8 A schematic diagram of the structure of another information push device provided by an embodiment of the present invention;
[0069] Fig. 9 A schematic diagram of the structure of another information push device provided by another embodiment of the present invention;
[0070] Fig.10 A schematic diagram of the structure of another information push device provided by yet another embodiment of the present invention;
[0071] Fig.11 A schematic diagram of a network architecture provided by an embodiment of the present invention;
[0072] Fig.12 A schematic diagram of a network architecture provided in accordance with another embodiment of the present invention. DETAILED DESCRIPTION
[0073] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0074] The following is a brief introduction to the application server, client, and Web server involved in the embodiments of the present invention.
[0075] As mentioned above, an application server can refer to a device that exposes business logic to the client through various protocols. The application server provides services to the client and provides a way to access the business logic for the client to use. In other words, the client's application needs to work with the application server.
[0076] For example, the Kingsoft Security client corresponds to the Kingsoft Security application server. When users use certain functions in the Kingsoft Security client, such as cloud virus detection, without the support of the application server, the client cannot run independently to implement the functions above, that is, the client needs to cooperate with the application server to run.
[0077] In addition, in order to increase the user's stickiness to the application, the client is also configured with a corresponding Web server. The client can obtain the corresponding data information of the client through the Web server. That is, the user conducts peripheral activities about the application through the client and the Web server, such as exchanging experience of using the application in the forum, and enjoying the use of the game client in the community.
[0078] It is well known to those skilled in the art that the advantages of Web servers are short connections and high concurrency. Operators can deploy a corresponding number of Web servers based on the number of users, and perform caching and data storage at all levels. However, the data information in the Web server can only be transmitted in one direction, that is, the Web server will only respond to the client with the data information when the client actively requests the data information from the Web server.
[0079] It should be noted that in the embodiments of the present invention, the application server and the Web server involved are configured for the same client. For example, if the client is a client of Kingsoft Security, then the application server should be a server of Kingsoft Security. Similarly, the Web server is a Web server that provides community, forum and other services to users of Kingsoft Security.
[0080] The present invention is described in detail below through specific embodiments.
[0081] Figure 1A flowchart of an information push method provided by an embodiment of the present invention.
[0082] An information push method provided by an embodiment of the present invention is applied to a network architecture, wherein the network architecture includes an application server, a target client corresponding to the application server, and a Web server corresponding to the target client.
[0083] It should be noted that data communication between the application server and the Web server can be achieved without being based on a target client, for example, the application server and the Web server are directly connected in communication, or are connected in communication through other network devices.
[0084] In addition, it should be noted that in actual applications, one application server corresponds to multiple clients.
[0085] Figure 1 An information push method shown is applied to an application server, the method comprising:
[0086] S101: The application server receives target information carrying a target client identifier sent by a Web server.
[0087] The target client identifier is used to distinguish identity information of different clients, such as a common user account, a domain name of a device where the client is located, etc. When applying the embodiment of the present invention, different target client identifiers can be selected based on actual needs.
[0088] The target information described here should include the data information of the corresponding client, and of course, the target information should also include the target client identifier; for example, if the data information is the user's community level information, then the target information includes the user's community level information and the target client identifier. The target information can be recorded locally on the Web server or in a database corresponding to the Web server.
[0089] S102: Send the target information to the target client corresponding to the target client identifier.
[0090] After receiving the target information, the application server can accurately send the target information to the target client because the target information carries the target client identifier.
[0091] In the prior art, when the target client wants to obtain the data information in the target information, the user can only input the corresponding command on the target client, such as clicking a button on the user interface of the target client, so that the target client sends the corresponding request to the Web server, and then the Web server replies the target information to the client, so that the target client displays the target information. In the prior art, the process of users obtaining the target information through the client is very cumbersome, and the user experience is poor.
[0092] As can be seen from the above, in the embodiment of the present invention, the application server first receives the target information carrying the target client identifier sent by the Web server; then the application server sends the target information to the target client corresponding to the target client identifier. Compared with the prior art, in the solution provided by the embodiment of the present invention, the communication connection between the application server and the Web server can be realized without passing through the target client. When both the client and the application server need the data information corresponding to the client, the process of the application server obtaining the data information corresponding to the client is simplified, ensuring that the application server obtains the data information corresponding to the client in a timely manner, improving the user experience of using the client, and the client can obtain the data information corresponding to the client without actively sending a request for data information to the Web server, improving the user experience of using the client.
[0093] Figure 2 A flowchart of an information push method provided by another embodiment of the present invention, relative to Figure 1 ,exist Figure 1 On the basis of steps S101 and S102 shown in the figure, in the embodiment of the present invention, the information push method may further include:
[0094] S103: The application server updates the locally recorded target information based on the received target information.
[0095] It can be understood that, for the data information obtained by the client through the Web server in the prior art, the application server in the embodiment of the present invention can selectively save the target information obtained from the Web server locally. In order to ensure the timely update of the target information recorded locally by the application server, the target information recorded locally can be updated each time the same target information is received.
[0096] For example, the community level of the user recorded locally in the application server is level 10, and the received target information indicates that the community level of the current user is level 11, then the community level of the user recorded locally in the application server is updated to level 11.
[0097] It should be noted that in the embodiment of the present invention, the above-mentioned updating of the locally recorded target information can be, with respect to the received target information, directly replacing the locally recorded target information with the received target information; or it can be, first determining whether the locally recorded target information is the same as the received target information, and then replacing the local target information that is different from the received target information with the received target information.
[0098] For example, the target information includes the user's community level and community activity. Suppose that in the locally recorded target information, the user's community level is level 9 and the community activity is 1005; in the target information received by the application server, the user's community level is level 9 and the community activity is 1086. At this time, all the locally recorded target information can be replaced with the received target information, or only the locally recorded community activity can be updated to 1086.
[0099] S104: Providing services to the target client based on the updated target information recorded locally.
[0100] It should be noted that currently most application servers and Web servers are independent of each other, and the information corresponding to the same user stored in the application server and the Web server respectively will not affect each other. For example, for a game client, the user's behavior in the game community will not affect the user's game attributes.
[0101] In the embodiment of the present invention, when the application server provides services to the target client, it can refer to the target information corresponding to the target client and provide the target client with services corresponding to the target information, such as the client's usage authority. In the embodiment of the present invention, the application server and the Web server are no longer isolated from each other, which can increase user stickiness and improve user experience.
[0102] For example, the target information is the user's activity in the forum of the corresponding client. The target client provides a variety of available functions, but some functions can only be used when the user's forum activity reaches a certain level. For example, the functions provided by the target client include A, B, C and D. For users with low forum activity, the application server will only provide services about functions A, B and C to the target client, that is, the user can only use functions A, B and C; if the user's forum activity reaches a certain requirement, the application server will provide services about functions A, B, C and D to the target client, that is, the user can use functions A, B, C and D.
[0103] For another example, the target information is the virtual community level of the user in the community of the game client. Different game equipment is provided in the game, but some game equipment can only be used by the user when the virtual community level reaches a certain level. For example, for game equipment E in the game, it can only be used when the user's virtual community level reaches level 10.
[0104] It should be emphasized that the target information recorded in the application server is sent by the Web server. Compared with obtaining it from the client, the accuracy and timely update of the target information can be guaranteed.
[0105] As can be seen from the above, in the embodiment of the present invention, the application server first receives the target information carrying the target client identifier sent by the Web server; then the application server sends the target information to the target client corresponding to the target client identifier. Compared with the prior art, in the solution provided by the embodiment of the present invention, the communication connection between the application server and the Web server can be realized without passing through the target client. When both the client and the application server need the data information corresponding to the client, the process of the application server obtaining the data information corresponding to the client is simplified, ensuring that the application server obtains the data information corresponding to the client in a timely manner, improving the user experience of using the client, and the client can obtain the data information corresponding to the client without actively sending a request for data information to the Web server, improving the user experience of using the client.
[0106] More importantly, when the application server provides services to the target client, it can refer to the corresponding target information and provide corresponding services to the target client. The application server and the Web server are no longer isolated from each other, which can increase user stickiness and further improve the user experience.
[0107] It should be noted that Figure 1 and Figure 2 In the method embodiment shown, there are various specific ways for the Web server to obtain the target information, and the present invention does not specifically limit the specific way for the Web server to obtain the target information.
[0108] In the embodiment of the present invention, a possible implementation manner for the Web server to obtain the target information is: before the application server receives the target information (S101) sent by the Web server and carrying the target client identifier,
[0109] The method may further include:
[0110] The application server sends an information request carrying the target client identifier to the Web server, so that the Web server receives the information request and obtains the target information corresponding to the target client identifier. Of course, after obtaining the target information, the Web server will also send the target information to the application server.
[0111] In the method for the Web server to obtain the target information described herein, the application server first sends an information request to the Web server, i.e., a request for the target information, and then after the Web server receives the information request, it obtains the target information corresponding to the target client identifier and sends the target information to the application server. For example, the application server sends an information request about the forum activity of a user to the Web server, and the information request carries the client identifier corresponding to the user, and then after the Web server receives the request information, it obtains the target information corresponding to the client identifier and sends the target information containing the forum activity information of the user to the application server.
[0112] It should be noted that when the number of Web servers is at least two, the network architecture further includes a load balancing forwarder connecting the application server and all Web servers.
[0113] It is understandable that when the number of users is large, the number of transactions that the Web server needs to process is large. At this time, different numbers of Web servers can be configured based on different numbers of users, and each Web server can provide the same service to different clients. It is well known to those skilled in the art that the load balancing forwarder can select an optimal Web server to provide services based on the current load conditions of each Web server, for example, select a Web server with the lowest load at that moment to provide services.
[0114] In the case that the number of Web servers is at least two, the information request carrying the target client identifier sent by the application server to the Web server may be:
[0115] The application server sends an information request carrying the target client identifier to the load balancing forwarder, so that the load balancing forwarder sends the information request to the target Web server; wherein the target Web server is a Web server selected by the load balancing forwarder based on the load conditions of each Web server at the current moment.
[0116] It can be understood that after the load balancing forwarder receives the information request, it first obtains the load status of each Web server at the current moment, and then selects a target Web server from all Web servers based on the load status of each Web server. For example, the Web server with the smallest current load is selected as the target Web server, and then the information request is sent to the target Web server.
[0117] Of course, in this case, the Web server receives the information request, obtains the target information corresponding to the target client identifier, and sends the target information to the application server, which can be:
[0118] The information request is received, target information corresponding to the target client identifier is obtained, and the target information is sent to the application server.
[0119] The target information (S101) sent by the receiving Web server and carrying the target client identifier may be:
[0120] Receive target information carrying a target client identifier sent by a target Web server.
[0121] In this implementation, the application server first sends an information request carrying the target client identifier to the Web server, so that the Web server receives the information request, obtains the target information corresponding to the target client identifier, and sends the target information to the application server. Finally, the Web server sends the target information to the target client.
[0122] For example, for a game client, assuming that the target information includes the user's activity and virtual level in the corresponding game community, when the user logs in to the game on the game client, since the operation of the game client requires cooperation with the game server, the corresponding game server can detect the operation of the game client. When the game client is detected to be running, the game server actively sends an information request carrying the game client identifier to the Web server. The Web server obtains the target information corresponding to the game client identifier locally and sends the target information to the application server. Finally, the Web server sends the target information to the target client. The game client does not need to actively send a request to the Web server to obtain the activity and virtual level information of the corresponding user game community, thereby reducing unnecessary operation processes for users and increasing user experience.
[0123] In the embodiment of the present invention, another possible implementation manner for the Web server to obtain the target information is:
[0124] The Web server monitors whether the user data information of the target user corresponding to the target client changes;
[0125] If yes, the target information carrying the target client identifier and the changed user data information is obtained.
[0126] In this specific implementation, when the user data information of the target user changes, the Web server can actively send the target information carrying the target client identifier and the changed user data information to the application server. It should be noted that in the actual application process, the actual content of the user data information can be set according to actual needs. For example, the user data information can be the community level, forum activity, etc. of the target user.
[0127] For example, if the virtual level of a user of a game client in the community is improved, indicating that the virtual level of the user in the community has changed, then the Web server can actively send target information carrying the client identifier corresponding to the user and the changed community virtual level to the application server.
[0128] In this implementation, when the user data information of the target user changes, the Web server can actively send the target information carrying the target client identifier and the changed user data information to the application server, and the application server will send the target information to the corresponding client.
[0129] It is understandable that if the prior art is used, when the user data information of the target user changes, if the target user does not actively send a request to the Web server, the change of the user data information cannot be timely known.
[0130] For example, the user data information is the community virtual level of the target user. When the target user logs in to the community multiple times, posts comments, and participates in making game maps, the community virtual level of the target user is upgraded. If the target user does not actively send a request to the Web server, the community virtual level of the target user cannot be obtained in time.
[0131] In an embodiment of the present invention, when the community virtual level of the target user is upgraded, the Web server promptly sends the community virtual level of the target user to the corresponding application server, and then the application server sends the community virtual level of the target user to the corresponding target client. The client can display the received community virtual level information on the game client, and the target user can obtain the community virtual level information promptly and directly through the target client, thereby achieving a good user experience.
[0132] It should be noted that, in the embodiment of the present invention, the specific method for the Web server to obtain the target information is not limited to the above two methods. For example, when the Web server receives a broadcast information, the Web server can also send the broadcast information to the application server. Since the broadcast information is directed to all clients, the broadcast information also includes the target client identifier. Then the application server sends the broadcast information to the target client. Similarly, the user can obtain the broadcast information in time through the target client, and the user experience is good.
[0133] For example, when the Web server corresponding to the Kingsoft Security client receives a community announcement information, the Web server sends the target information containing the community announcement information to the application server. After receiving the target information, the application server sends the target information to the target client, so that the target client obtains the community announcement information.
[0134] For another example, a game user player uses a map editor to build a game map that can be used for normal game play using the scenes and objects provided therein. The game player saves the completed map locally on the corresponding game client and can modify it at any time. In addition, the game player uploads the completed game map to a Web server. At this time, the game map received by the Web server is equivalent to a broadcast message. The Web server sends the target information containing the game map to the application server. After receiving the target information, the application server sends the target information to the clients of other game players. Other user players download the game map and can enter and use the game map to play the game.
[0135] The embodiments of the present invention allow users to quickly and conveniently use the community to communicate, exchange and learn while running the client. Moreover, when the Web server obtains broadcast information or some data information of the user changes, the user can obtain the broadcast information and the changed data information in a timely manner, ensuring the real-time nature of information acquisition. On the other hand, since the Web server and the application server are interoperable, users can communicate anytime, anywhere and at will, reducing the cost of user communication; moreover, the regulatory authorities can more conveniently supervise the user's use of the application, improve security, stop uncivilized phenomena, and thus protect the interests of normal users.
[0136] Of course, if there are at least two Web services in the network architecture, the above method for obtaining the target information should be completed by the aforementioned target Web server.
[0137] In order to further illustrate the specific implementation process of the embodiment of the present invention, the present invention is introduced below through a specific example.
[0138] Assume that the functions provided by a certain client include the F function, and the client is configured with a corresponding Web server. The F function can only be used when the user's community level reaches level 15. When a user's community level is just upgraded to level 15, the Web server immediately sends the target information containing the user's community level information to the application server corresponding to the client. The application server first updates the target information locally, and at the same time, sends the updated target information to the target client corresponding to the user, so that the target client obtains the user's community level information.
[0139] After that, the application server may grant the user permission to use the F function, that is, the user may use the F function through the client.
[0140] Relative to Figure 1 The method embodiment shown, Figure 3 A flow chart of another information push method provided by an embodiment of the present invention, wherein the method is applied to a network architecture, the network architecture includes an application server, a target client corresponding to the application server, and a Web server corresponding to the target client. Specifically, the method is applied to the Web server, and the method includes:
[0141] S201: The Web server obtains target information carrying a target client identifier.
[0142] It should be noted that the specific method for the Web server to obtain the target information can be referred to Figure 1 and Figure 2 The method embodiment shown is a method embodiment, and the present invention will not describe in detail the specific manner in which the Web server obtains the target information.
[0143] S202: Send the target information to the application server, so that the application server receives the target information and pushes the target information to the target client corresponding to the target client identifier.
[0144] It should be noted that, corresponding to Figure 1 In the illustrated method embodiment, after receiving the target information, the application server may also update the target information locally on the application server, and provide services to the target client based on the updated target information recorded locally.
[0145] like Figure 4 The flowchart of another information push method provided by another embodiment of the present invention is shown as follows. The Web server obtains target information carrying a target client identifier (S201), which may include:
[0146] S2011: The Web server receives an information request carrying the target client identifier sent by the application server.
[0147] S2012: Obtain target information corresponding to the target client identifier.
[0148] It should be noted that the specific contents of steps S2011 and S2012 can be specifically referred to Figure 1 and Figure 2 The method embodiment is shown.
[0149] like Figure 5 As shown in the flowchart of another information push method provided by another embodiment of the present invention, the Web server obtains the target information carrying the target client identifier (S201), which may include:
[0150] S2013: The Web server monitors whether the user data information of the target user corresponding to the target client changes;
[0151] S2014: When the target data information of the target user corresponding to the target client changes, the target information carrying the target client identifier and the changed user data information is obtained.
[0152] Of course, if the user data information of the target user corresponding to the target client has not changed, the Web server does not need to obtain the target information carrying the target client identifier and the changed user data information. Figure 1 and Figure 2 The method embodiment is shown.
[0153] As can be seen from the above, in the embodiment of the present invention, the application server first receives the target information carrying the target client identifier sent by the Web server; then the application server sends the target information to the target client corresponding to the target client identifier. Compared with the prior art, in the solution provided by the embodiment of the present invention, the communication connection between the application server and the Web server can be realized without passing through the target client. When both the client and the application server need the data information corresponding to the client, the process of the application server obtaining the data information corresponding to the client is simplified, ensuring that the application server obtains the data information corresponding to the client in a timely manner, improving the user experience of using the client, and the client can obtain the data information corresponding to the client without actively sending a request for data information to the Web server, improving the user experience of using the client.
[0154] Figure 6A schematic diagram of the structure of an information push device provided by an embodiment of the present invention is applied to an application server in a network architecture, wherein the network architecture further includes a target client corresponding to the application server and a Web server corresponding to the target client. Figure 1 and Figure 2 In the method embodiment shown, the device comprises:
[0155] The receiving module 110 is used to receive the target information carrying the target client identifier sent by the Web server;
[0156] The first sending module 120 is configured to send the target information to a target client corresponding to the target client identifier.
[0157] In practical applications, specific Figure 7 As shown, the device may also include:
[0158] An updating module 130, configured to update the target information recorded locally based on the received target information;
[0159] The providing module 140 is used to provide services to the target client based on the updated target information recorded locally.
[0160] In practical applications, specifically, the device may further include:
[0161] The second sending module (not shown in the figure) is used to send an information request carrying the target client identifier to the Web server before the application server receives the target information carrying the target client identifier sent by the Web server; so that the Web server receives the information request, obtains the target information corresponding to the target client identifier, and sends the target information to the application server.
[0162] In practical applications, when the number of the Web servers is at least two, the network architecture may further include a load balancing forwarder connecting the application server and all the Web servers.
[0163] The second sending module is specifically configured to send an information request carrying the target client identifier to the load balancing forwarder before the application server receives the target information carrying the target client identifier sent by the Web server, so that the load balancing forwarder sends the information request to the target Web server, thereby causing the Web server to receive the information request, obtain the target information corresponding to the target client identifier, and send the target information to the application server; wherein the target Web server is a Web server selected by the load balancing forwarder based on the load conditions of each Web server at the current moment;
[0164] The receiving module 110 is specifically configured to receive target information carrying a target client identifier sent by the target Web server.
[0165] As can be seen from the above, in the embodiment of the present invention, the application server first receives the target information carrying the target client identifier sent by the Web server; then the application server sends the target information to the target client corresponding to the target client identifier. Compared with the prior art, in the solution provided by the embodiment of the present invention, the communication connection between the application server and the Web server can be realized without passing through the target client. When both the client and the application server need the data information corresponding to the client, the process of the application server obtaining the data information corresponding to the client is simplified, ensuring that the application server obtains the data information corresponding to the client in a timely manner, improving the user experience of using the client, and the client can obtain the data information corresponding to the client without actively sending a request for data information to the Web server, improving the user experience of using the client.
[0166] More importantly, when the application server provides services to the target client, it can refer to the corresponding target information and provide corresponding services to the target client. The application server and the Web server are no longer isolated from each other, which can increase user stickiness and further improve the user experience.
[0167] Figure 8 A schematic diagram of the structure of another information push device provided by an embodiment of the present invention, wherein the device is applied to a Web server in a network architecture, wherein the network architecture further includes a target client corresponding to the Web server and an application server corresponding to the target client, corresponding to Figure 3 In the method embodiment shown, the device comprises:
[0168] An acquisition module 210 is used to obtain target information carrying the target client identifier;
[0169] The third sending module 220 is used to send the target information to the application server, so that the application server receives the target information and pushes the target information to the target client corresponding to the target client identifier.
[0170] like Fig. 9 As shown, specifically, the obtaining module 210 may include:
[0171] The receiving submodule 2101 is used to receive the information request carrying the target client identifier sent by the application server;
[0172] The first obtaining submodule 2102 is used to obtain target information corresponding to the target client identifier.
[0173] like Fig.10 As shown, specifically, the obtaining module 210 may also include:
[0174] Monitoring submodule 2103, used to monitor whether the user data information of the target user corresponding to the target client changes;
[0175] The second obtaining submodule 2104 is used to obtain the target information carrying the target client identifier and the changed user data information when the user data information of the target user corresponding to the target client changes.
[0176] As can be seen from the above, in the embodiment of the present invention, the application server first receives the target information carrying the target client identifier sent by the Web server; then the application server sends the target information to the target client corresponding to the target client identifier. Compared with the prior art, in the solution provided by the embodiment of the present invention, the communication connection between the application server and the Web server can be realized without passing through the target client. When both the client and the application server need the data information corresponding to the client, the process of the application server obtaining the data information corresponding to the client is simplified, ensuring that the application server obtains the data information corresponding to the client in a timely manner, improving the user experience of using the client, and the client can obtain the data information corresponding to the client without actively sending a request for data information to the Web server, improving the user experience of using the client.
[0177] Fig.11 A schematic diagram of a network architecture provided in an embodiment of the present invention corresponds to the aforementioned method embodiment and device embodiment. The network architecture includes an application server, a target client corresponding to the application server, and a Web server corresponding to the target client.
[0178] The Web server is used to obtain target information carrying a target client identifier, and send the target information carrying the target client identifier to the application server;
[0179] The application server is used to receive the target information and send the target information to the target client corresponding to the target client identifier.
[0180] In practical applications, specifically, the application server may also be used to update the target information recorded locally based on the received target information; and provide services to the target client based on the updated target information recorded locally.
[0181] In practical applications, specifically, the application server may also be used to send an information request carrying the target client identifier to the Web server;
[0182] The Web server may be specifically configured to receive the information request and obtain target information corresponding to the target client identifier.
[0183] In practical applications, specifically, when the number of the Web servers is at least two, the network architecture may further include a load balancing forwarder connecting the application server and all the Web servers.
[0184] The application server may be specifically configured to send an information request carrying a target client identifier to the load balancing forwarder; and receive the target information forwarded by the load balancing forwarder;
[0185] The load balancing forwarder is used to select a target Web server from each Web server based on the load conditions of each Web server at the current moment, and send the received information request to the target Web server; receive the target information sent by the target Web server; and forward the target information to the application server;
[0186] The target Web server is used to receive the information request forwarded by the load balancing forwarder; obtain the target information corresponding to the target client identifier; and send the target information to the load balancing forwarder.
[0187] In practical applications, specifically, the Web server can also be used to monitor whether the user data information of the target user corresponding to the target client changes; if so, obtain the target information carrying the target client identifier and the changed user data information.
[0188] It should be noted that in actual application scenarios, the number of clients, application servers, and Web servers may be no less than two. Fig.12 As shown, application server 1, application server 2 ... application server M constitute an application server cluster, target web server, web server 1, web server 2 ... web server N constitute a web server cluster, and target client, client 1, client 2 ... client X constitute a client cluster.
[0189] Any application server is connected to each Web server through a load balancing forwarder, and any application server is also connected to each client. It should be noted that for some applications, there are many corresponding clients. In order to enable the application server to have enough resources to provide services to the client and ensure the smoothness of the client's use, multiple application servers are generally set up.
[0190] For example, for some games, multiple application servers can be set up, such as Unicom Zone 1 server, Unicom Zone 2 server, etc. It can be understood that multiple application servers can ensure the smoothness of the game. In addition, in combination with the embodiment of the present invention, the application server and the Web server are interconnected through a load balancing forwarder. Assuming that the Web server provides game community services, in the prior art, game users can only comment, chat, and other behaviors within a certain zone, and by applying the embodiment of the present invention, player map sharing, rewards, comments, and other community behavior data are all in a Web server cluster, and all users' community data can be interconnected. For example, players in the Unicom zone can also play the map made by players in the Telecom zone, and can comment on each other and notify each other in time, thereby bringing a better experience to users.
[0191] In combination with the embodiments of the present invention, clients corresponding to different application servers can communicate through the Web server, and the user's communication platform has a wider range. For example, client m of application server x sends a message to a Web server, and the Web server can send the message to client n of application server y.
[0192] In addition, it should be emphasized that although the application server and the client are one-to-one corresponding when the client is running, when the target Web server sends the aforementioned target information through the load balancing forwarder, the target information can be sent to the application server corresponding to the target client, or the target information can be broadcast to all application servers.
[0193] Of course, similar to the prior art, in the embodiment of the present invention, any client can also be connected to each Web server in a one-way manner through a reverse proxy server. For example, the Web server provides corresponding community services to the client, and the user clicks a button in the user interface of the client, so that the client sends an http (HyperText Transfer Protocol) request carrying security verification related parameters to the Web server, and then the reverse proxy server, such as nginx, forwards the http request to a Web server, and the Web service returns relevant data.
[0194] In addition, in the embodiment of the present invention, in addition to the Web server sending the corresponding data information to the application server, the application server may also send the corresponding data information to the Web server. For example, for a game client, the application server sends the user's game level to the Web server. Only when the user's game level reaches a certain level can the user use the specific service provided by the Web server.
[0195] As can be seen from the above, in the embodiment of the present invention, the application server first receives the target information carrying the target client identifier sent by the Web server; then the application server sends the target information to the target client corresponding to the target client identifier. Compared with the prior art, in the solution provided by the embodiment of the present invention, the communication connection between the application server and the Web server can be realized without passing through the target client. When both the client and the application server need the data information corresponding to the client, the process of the application server obtaining the data information corresponding to the client is simplified, ensuring that the application server obtains the data information corresponding to the client in a timely manner, improving the user experience of using the client, and the client can obtain the data information corresponding to the client without actively sending a request for data information to the Web server, improving the user experience of using the client.
[0196] More importantly, when the application server provides services to the target client, it can refer to the corresponding target information and provide corresponding services to the target client. The application server and the Web server are no longer isolated from each other, which can increase user stickiness and further improve the user experience.
[0197] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0198] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0199] A person skilled in the art can understand that all or part of the steps in the above method implementation can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc.
[0200] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. An information push method, characterized in that: Applied to a network architecture, the network architecture includes an application server cluster, a client cluster and a Web server cluster, wherein any application server in the application server cluster is connected to each client in the client cluster, and any application server in the application server cluster is connected to each Web server in the Web server cluster, the method includes: The application server receives target information carrying a target client identifier sent by a target Web server; wherein the target Web server is a Web server in the Web server cluster currently used to obtain the target information; the target information is requested by the application server to the target Web server when the target client is detected to be running; the application server is used to cooperate with the target client, the target client is correspondingly configured with the target Web server, and the target Web server is used to provide data information for the correspondingly configured target client; The target information is sent to a target client corresponding to the target client identifier.
2. The method according to claim 1, characterized in that After the application server receives the target information carrying the target client identifier sent by the target Web server, the method further includes: The application server sends the target information to other clients in the client cluster except the target client.
3. The method according to claim 1, characterized in that The target information also includes: community announcement information of the target client, a game map of the target client edited by a user, a community level and community activity of the user in the community of the target client, and at least one of the user's forum activity in the forum of the target client.
4. The method according to claim 1, characterized in that The method further comprises: The application server updates the target information recorded locally based on the received target information; The application server provides services to the target client based on the updated target information recorded locally.
5. The method according to claim 1, characterized in that Before the application server receives the target information carrying the target client identifier sent by the target Web server, The method further comprises: The application server sends an information request carrying the target client identifier to the target Web server, so that the target Web server receives the information request, obtains target information corresponding to the target client identifier, and sends the target information to the application server.
6. The method according to claim 5, characterized in that When the number of the Web servers in the Web server cluster is at least two, the network architecture further comprises a load balancing forwarder connecting the application server cluster and the Web server cluster. The application server sends an information request carrying the target client identifier to the target Web server, including: The application server sends an information request carrying the target client identifier to the load balancing forwarder, so that the load balancing forwarder sends the information request to the target Web server; wherein the target Web server is a Web server selected by the load balancing forwarder based on the load conditions of each Web server at the current moment.
7. An information push method, characterized in that: Applied to a network architecture, the network architecture includes an application server cluster, a client cluster and a Web server cluster, wherein any application server in the application server cluster is connected to each client in the client cluster, and any application server in the application server cluster is connected to each Web server in the Web server cluster, the method includes: The target Web server obtains the target information carrying the target client identifier; wherein the target Web server is a Web server in the Web server cluster currently used to obtain the target information; The target information is sent to the application server so that the application server receives the target information and pushes the target information to the target client corresponding to the target client identifier; the target information is requested by the application server to the target Web server when the target client is detected to be running; the application server is used to cooperate with the target client, the target client is correspondingly configured with the target Web server, and the target Web server is used to provide data information for the correspondingly configured target client.
8. The method according to claim 7, characterized in that The application server is further configured to send the target information to other clients in the client cluster except the target client.
9. The method according to claim 7, characterized in that: The target information also includes: community announcement information of the target client, a game map of the target client edited by a user, a community level and community activity of the user in the community of the target client, and at least one of the user's forum activity in the forum of the target client.
10. The method according to claim 7, characterized in that The target Web server obtains target information carrying the target client identifier, including: The target Web server receives the information request carrying the target client identifier sent by the application server when detecting that the target client is running; Obtain target information corresponding to the target client identifier.
11. The method according to claim 7, characterized in that The target Web server obtains target information carrying the target client identifier, including: The target Web server monitors whether the user data information of the target user corresponding to the target client changes; If yes, the target Web server obtains the target information carrying the target client identifier and the changed user data information.
12. A network architecture, characterized in that: It includes an application server cluster, a client cluster and a Web server cluster, wherein any application server in the application server cluster is connected to each client in the client cluster, and any application server in the application server cluster is connected to each Web server in the Web server cluster; A target Web server is used to obtain target information carrying a target client identifier and send the target information carrying the target client identifier to an application server; wherein the target Web server is a Web server in the Web server cluster currently used to obtain the target information; The application server is used to receive the target information and send the target information to the target client corresponding to the target client identifier; the target information is requested by the application server to the target Web server when it detects that the target client is running; the application server is used to cooperate with the target client, the target client is correspondingly configured with the target Web server, and the target Web server is used to provide data information for the correspondingly configured target client.
13. The network architecture according to claim 12, characterized in that: The application server is further configured to send the target information to other clients in the client cluster except the target client.
14. The network architecture according to claim 12, characterized in that: The target information also includes: community announcement information of the target client, a game map of the target client edited by a user, a community level and community activity of the user in the community of the target client, and at least one of the user's forum activity in the forum of the target client.
15. The network architecture according to claim 12, characterized in that: The application server is further configured to update the target information recorded locally based on the received target information; Based on the updated target information recorded locally, a service is provided to the target client.
16. The network architecture according to claim 12, characterized in that: The application server is further configured to send an information request carrying the target client identifier to the target Web server when detecting that the target client is running; The target Web server is specifically configured to receive the information request and obtain target information corresponding to the target client identifier.
17. The network architecture according to claim 16, characterized in that: The number of the Web servers in the Web server cluster is at least two, and the network architecture further includes a load balancing forwarder connecting the application server cluster and all the Web server clusters. The application server is specifically used to send an information request carrying a target client identifier to the load balancing forwarder; and receive the target information forwarded by the load balancing forwarder; The load balancing forwarder is used to select a target Web server from each Web server based on the load conditions of each Web server at the current moment, and send the received information request to the target Web server; receive the target information sent by the target Web server; and forward the target information to the application server; The target Web server is used to receive the information request forwarded by the load balancing forwarder; obtain the target information corresponding to the target client identifier; and send the target information to the load balancing forwarder.
18. The network architecture according to claim 12, characterized in that: The target Web server is further used to monitor whether the user data information of the target user corresponding to the target client changes; if so, obtain the target information carrying the target client identifier and the changed user data information.
Citation Information
Patent Citations
System for providing webpage service for terminal equipment and method thereof
CN102523288A
Tourism service system and method based on Windows mobile platform
CN102567805A