CN115473935A - Information pushing method and device and instruction server - Google Patents

Information pushing method and device and instruction server Download PDF

Info

Publication number
CN115473935A
CN115473935A CN202210989216.XA CN202210989216A CN115473935A CN 115473935 A CN115473935 A CN 115473935A CN 202210989216 A CN202210989216 A CN 202210989216A CN 115473935 A CN115473935 A CN 115473935A
Authority
CN
China
Prior art keywords
target
instruction
target user
server
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210989216.XA
Other languages
Chinese (zh)
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.)
China Construction Bank Corp
CCB Finetech Co Ltd
Original Assignee
China Construction Bank Corp
CCB Finetech 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 China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202210989216.XA priority Critical patent/CN115473935A/en
Publication of CN115473935A publication Critical patent/CN115473935A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The disclosure relates to an information pushing method, an information pushing device and an instruction server, and belongs to the technical field of computer application. The information pushing method comprises the following steps: receiving an identification of a target user sent by a service server; and generating a target instruction based on the identification of the target user, wherein the target instruction is used for indicating a target client to acquire the information to be pushed of the target user from a service server, and the target user and the target client have a corresponding relationship. Therefore, the instruction server side can realize information push between the business server side and the target client side, can realize isolation between the information push and the business service, is easy to realize, and contributes to saving of computing resources.

Description

Information pushing method and device and instruction server
Technical Field
The present disclosure relates to the field of computer application technologies, and in particular, to an information pushing method, an information pushing apparatus, an instruction server, a service server, a target client, a computer-readable storage medium, and a computer program product.
Background
At present, in order to ensure that a client can acquire information of a server in time, the server needs to push information to the client. In the related art, most methods for pushing information to a client by a server need to develop a complex pushing function at the server, and have the problems of high difficulty in information pushing, high consumption of computing resources and the like.
Disclosure of Invention
The present disclosure provides an information pushing method, an information pushing device, an instruction server, a service server, a target client, a computer-readable storage medium, and a computer program product, so as to at least solve the problems of a difficulty in information pushing and a large consumption of computing resources in an information pushing method in the related art. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, an information pushing method is provided, which is applied to an instruction server, and the method includes: receiving a target user identification sent by a service server; and generating a target instruction based on the identification of the target user, wherein the target instruction is used for indicating a target client to acquire the information to be pushed of the target user from a service server, and the target user and the target client have a corresponding relationship.
In an embodiment of the present disclosure, the target instruction carries at least one of an identifier of the target user, an instruction action, and a waiting duration for execution of the instruction action.
In an embodiment of the present disclosure, the generating a target instruction based on the identification of the target user includes: receiving the instruction action sent by the service server, and acquiring the execution waiting time; and generating the target instruction based on the identification of the target user, the instruction action and the execution waiting time length.
In an embodiment of the present disclosure, the obtaining the execution waiting duration includes: receiving the execution waiting duration sent by the service server; and/or identifying the service category corresponding to the instruction action; determining the execution waiting duration based on the traffic class.
In one embodiment of the present disclosure, the target user includes an online user of the business server; after generating the target instruction based on the identification of the target user, the method further includes: responding to the offline of the target user of the service server, and deleting the identification of the target user from the target instruction under the condition that the target instruction carries the identifications of other users except the target user so as to update the target instruction; or, in response to the target user of the service server going offline, deleting the target instruction when the target instruction does not carry the identifiers of other users except the target user.
In an embodiment of the present disclosure, after generating the target instruction based on the identifier of the target user, the method further includes: and sending the target instruction to the target client.
In an embodiment of the present disclosure, after sending the target instruction to the target client, the method further includes: and in response to the target client successfully receiving the target instruction, deleting the identification of the target user from the target instruction so as to update the target instruction.
In one embodiment of the present disclosure, further comprising: and in response to that the user identification carried in the target instruction is completely deleted, deleting the target instruction.
According to a second aspect of the embodiments of the present disclosure, another information pushing method is provided, which is applicable to a service server, and the method includes: the method comprises the steps of sending an identification of a target user to an instruction server, wherein the identification of the target user is used for generating a target instruction, the target instruction is used for indicating a target client to obtain information to be pushed of the target user from a service server, and the target user and the target client have a corresponding relation.
In one embodiment of the present disclosure, further comprising: and sending the instruction action and/or the execution waiting time of the instruction action to the instruction server, wherein the instruction action and/or the execution waiting time are used for generating the target instruction.
According to a third aspect of the embodiments of the present disclosure, there is provided another information pushing method, which is applied to a target client, and the method includes: acquiring a target instruction from an instruction server, wherein the target instruction is generated based on an identifier of a target user, and the target user and a target client have a corresponding relation; and acquiring the information to be pushed of the target user from a service server based on the target instruction.
In an embodiment of the present disclosure, the target instruction carries at least one of an identifier of the target user, an instruction action, and a waiting duration for execution of the instruction action.
In an embodiment of the present disclosure, the obtaining a target instruction from an instruction server includes: identifying that the target instruction in the instruction server carries the identifier of the target user, and acquiring the target instruction from the instruction server; and/or receiving the target instruction sent by the instruction server.
According to a fourth aspect of the embodiments of the present disclosure, there is provided an information pushing apparatus, adapted to an instruction server, the apparatus including: the receiving module is configured to receive the identification of the target user sent by the service server; the generation module is configured to generate a target instruction based on the identifier of the target user, wherein the target instruction is used for instructing a target client to acquire information to be pushed of the target user from a service server, and the target user and the target client have a corresponding relationship.
In an embodiment of the present disclosure, the target instruction carries at least one of an identifier of the target user, an instruction action, and a waiting duration for execution of the instruction action.
In one embodiment of the disclosure, the generating module is further configured to: receiving the instruction action sent by the service server and acquiring the execution waiting time; and generating the target instruction based on the identification of the target user, the instruction action and the execution waiting time.
In one embodiment of the disclosure, the generating module is further configured to: receiving the execution waiting time length sent by the service server; and/or identifying the service category corresponding to the instruction action; determining the execution wait duration based on the traffic class.
In one embodiment of the present disclosure, the target user includes an online user of the business server; the generation module further configured to: in response to the target user of the service server going offline, deleting the identifier of the target user from the target instruction to update the target instruction under the condition that the target instruction carries identifiers of other users except the target user; or, in response to the target user of the service server going offline, deleting the target instruction when the target instruction does not carry the identifiers of the other users except the target user.
In one embodiment of the present disclosure, the apparatus further comprises: a sending module configured to send the target instruction to the target client.
In an embodiment of the disclosure, after sending the target instruction to the target client, the generating module is further configured to: and in response to the target client successfully receiving the target instruction, deleting the identification of the target user from the target instruction so as to update the target instruction.
In one embodiment of the disclosure, the generating module is further configured to: and in response to that the user identification carried in the target instruction is completely deleted, deleting the target instruction.
According to a fifth aspect of the embodiments of the present disclosure, there is provided another information pushing apparatus, adapted to a service server, the apparatus including: the sending module is configured to send an identifier of a target user to an instruction server, wherein the identifier of the target user is used for generating a target instruction, the target instruction is used for instructing a target client to acquire information to be pushed of the target user from a service server, and the target user and the target client have a corresponding relationship.
In one embodiment of the disclosure, the sending module is further configured to: and sending the instruction action and/or the execution waiting time of the instruction action to the instruction server, wherein the instruction action and/or the execution waiting time are used for generating the target instruction.
According to a sixth aspect of the embodiments of the present disclosure, there is provided another information pushing apparatus, adapted to a target client, the apparatus including: the system comprises a first acquisition module, a first processing module and a first display module, wherein the first acquisition module is configured to acquire a target instruction from an instruction server, the target instruction is generated based on an identifier of a target user, and the target user and a target client have a corresponding relation; and the second acquisition module is configured to acquire the information to be pushed of the target user from the service server based on the target instruction.
In an embodiment of the present disclosure, the target instruction carries at least one of an identifier of the target user, an instruction action, and a waiting duration for execution of the instruction action.
In an embodiment of the disclosure, the first obtaining module is further configured to: identifying that the target instruction in the instruction server carries the identifier of the target user, and acquiring the target instruction from the instruction server; and/or receiving the target instruction sent by the instruction server.
According to a seventh aspect of the embodiments of the present disclosure, there is provided an instruction server, including: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the information pushing method according to the first aspect.
According to an eighth aspect of the embodiments of the present disclosure, there is provided a service server, including: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the information pushing method according to the second aspect.
According to a ninth aspect of the embodiments of the present disclosure, there is provided a target client, including: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the information pushing method according to the third aspect.
According to a tenth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium, wherein instructions of the computer-readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the information pushing method as described above.
According to an eleventh aspect of embodiments of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the information pushing method as described above.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects: the instruction server can realize information pushing between the business server and the target client, can realize isolation between the information pushing and the business service, is easy to realize, and contributes to saving computing resources.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
Fig. 1 is a schematic flow chart of an information pushing method according to a first embodiment of the present disclosure.
Fig. 2 is a flowchart illustrating an information pushing method according to a second embodiment of the disclosure.
Fig. 3 is a flowchart illustrating an information pushing method according to a third embodiment of the present disclosure.
Fig. 4 is a flowchart illustrating an information pushing method according to a fourth embodiment of the disclosure.
Fig. 5 is a flowchart illustrating an information pushing method according to a fifth embodiment of the disclosure.
Fig. 6 is an interaction flow diagram of an information push method according to a sixth embodiment of the present disclosure.
Fig. 7 is a block diagram of an information pushing apparatus according to a first embodiment of the present disclosure.
Fig. 8 is a block diagram of an information pushing apparatus according to a second embodiment of the present disclosure.
Fig. 9 is a block diagram of an information pushing apparatus according to a third embodiment of the present disclosure.
FIG. 10 is a block diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings 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 disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
In the technical scheme of the disclosure, the acquisition, storage, use, processing and the like of the data all accord with relevant regulations of national laws and regulations.
Fig. 1 is a schematic flow chart of an information pushing method according to a first embodiment of the present disclosure.
As shown in fig. 1, an information pushing method according to a first embodiment of the present disclosure includes the following steps:
in step S101, an identifier of a target user sent by a service server is received.
It should be noted that the main execution body of the information push method disclosed by the present disclosure is an instruction server. The information pushing method of the embodiment of the present disclosure may be executed by the information pushing device of the embodiment of the present disclosure, and the information pushing device of the embodiment of the present disclosure may be configured in any instruction server to execute the information pushing method of the embodiment of the present disclosure.
It should be noted that the service end refers to a service end capable of providing service to the client, and the command service end and the service end may communicate with each other to perform data transmission, and the communication manner is not limited too much. The types of the business service end, the instruction service end, the client end and the business service are not limited too much, for example, the client end includes but is not limited to APP (Application), web page, browser and the like, and the business service includes but is not limited to banking business, insurance business and the like.
In the embodiment of the disclosure, the instruction server may receive the identifier of the target user sent by the service server. The target user is a user of the service server, and has information to be pushed, and the identification of the target user is not limited too much, for example, the identification of the target user may include an account of the target user logging in the service server. It will be appreciated that different target users may correspond to different identities.
In step S102, a target instruction is generated based on the identifier of the target user, where the target instruction is used to instruct the target client to obtain information to be pushed of the target user from the service server, and the target user and the target client have a corresponding relationship.
In the embodiment of the disclosure, the target user has a corresponding relationship with the target client, and the target user logs in the service server through the target client.
It should be noted that, the target instruction is not limited too much, for example, the target instruction may be JSON (JavaScript Object Notation). The JavaScript is a programming language.
It should be noted that the information to be pushed is not limited too much, for example, the information to be pushed of the target user includes, but is not limited to, authority information of the target user at the service server, physiological sign information of the target user, behavior information of the target user at the service server, and the like.
In one embodiment, generating the target instructions based on the identification of the target users may include generating the target instructions based on the identification of at least one target user. The target instruction can correspond to the identification of at least one target user at the moment, and the method is favorable for saving the instruction quantity.
For example, the target users include target users 1, 2, and 3, the target clients include target clients a, B, and C, and the target users 1, 2, and 3 have corresponding relationships with the target clients a, B, and C. The instruction server can receive the identifications of the target users 1, 2 and 3 sent by the service server.
For example, the instruction server may generate the target instruction 1 based on the identifier of the target user 1, where the target instruction 1 is used to instruct the target client a to obtain the information to be pushed of the target user 1 from the service server.
For example, the instruction server may generate the target instruction 2 based on the identifier of the target user 2, where the target instruction 2 is used to instruct the target client B to obtain the information to be pushed of the target user 2 from the service server.
For example, the instruction server may generate the target instruction 3 based on the identifier of the target user 3, where the target instruction 3 is used to instruct the target client C to obtain the information to be pushed of the target user 3 from the service server.
For example, the instruction server may generate a target instruction 4 based on the identifiers of the target users 1, 2, and 3, where the target instruction 4 is used to instruct the target client a to obtain the information to be pushed of the target user 1 from the service server, instruct the target client B to obtain the information to be pushed of the target user 2 from the service server, and instruct the target client C to obtain the information to be pushed of the target user 3 from the service server.
In one embodiment, after the target instruction is generated, the instruction server stores the target instruction in a set storage space to store the target instruction.
In summary, according to the information push method provided by the embodiment of the present disclosure, the instruction server receives the identifier of the target user sent by the service server, and generates the target instruction based on the identifier of the target user, where the target instruction is used to instruct the target client to obtain the information to be pushed of the target user from the service server, and the target user and the target client have a corresponding relationship. Therefore, the instruction server side can realize information push between the business server side and the target client side, can realize isolation between the information push and the business service, is easy to realize, and contributes to saving of computing resources.
On the basis of any of the above embodiments, the target instruction carries at least one of an identifier of the target user, an instruction action, and an execution waiting duration of the instruction action. It should be noted that the instruction action is used to instruct the target client to operate, and the execution waiting time duration refers to a time duration between a time when the target client successfully receives the target instruction and a time when the target client executes the instruction action.
It should be noted that, neither the instruction action nor the execution waiting time is excessively limited, for example, the instruction action includes, but is not limited to, updating, deleting, adding, and the like, for example, the instruction action may be represented by a character string, and the execution waiting time includes, but is not limited to, 0 second, 5 seconds, 1 minute, and the like. It is understood that the execution wait period is 0 seconds, indicating immediate execution.
Fig. 2 is a flowchart illustrating an information pushing method according to a second embodiment of the disclosure.
As shown in fig. 2, an information pushing method according to a second embodiment of the present disclosure includes the following steps:
in step S201, an identifier of a target user sent by a service server is received.
The relevant content of step S201 can be referred to the above embodiments, and is not described herein again.
In step S202, an instruction action sent by the service end is received, and an execution waiting duration is obtained.
In the embodiment of the disclosure, the instruction server may receive an instruction action sent by the service server.
In one embodiment, obtaining the execution waiting duration may include the following two possible embodiments:
mode 1, receiving an execution waiting time length sent by a service server.
In the embodiment of the disclosure, the instruction server may receive the execution waiting duration sent by the service server.
And 2, identifying the service type corresponding to the instruction action, and determining the execution waiting time based on the service type.
It should be noted that the service type is not limited too much, for example, the service type includes, but is not limited to, update authority information, add authority information, delete authority information, and the like. Different command actions may correspond to different traffic classes, and different traffic classes may correspond to different execution wait durations.
In one embodiment, determining the execution waiting duration based on the service class may include obtaining a duration configuration library, and obtaining a matching execution waiting duration from the duration configuration library based on the service class. It should be noted that the duration configuration library is used for storing at least one of a mapping relationship, a mapping table, and a corresponding relationship between the service category and the execution waiting duration, and may be preset in a storage space of the instruction server.
In step S203, a target instruction is generated based on the identification of the target user, the instruction action, and the execution waiting time period.
For example, the target users include target users 1, 2, and 3, the identification of the target users 1, 2, and 3 is "123456", "234567", and "345678", respectively, the instruction action is "update", the execution waiting time is "0 seconds", and the target instruction may be generated based on "123456", "234567", "345678", "update", and "0 seconds".
In one embodiment, the target user comprises an online user of the business server. It should be noted that, the online user refers to a user who logs in the service server at the current time.
In an embodiment, after the target instruction is generated based on the identifier of the target user, the method further includes responding to the offline of the target user at the service server, and deleting the identifier of the target user from the target instruction to update the target instruction under the condition that the target instruction carries the identifiers of other users except the target user.
For example, the target instruction 4 carries the identifiers of the target users 1, 2, and 3, and in response to the target user 1 going offline, the identifier of the target user 1 may be deleted from the target instruction 4 to update the target instruction 4, that is, the updated target instruction 4 carries the identifiers of the target users 2 and 3.
Therefore, in the method, when the target user of the service end is off-line and the target instruction carries the identifiers of other users except the target user, the identifier of the target user is deleted from the target instruction to update the target instruction, so that the target instruction can be ensured to only carry the identifier of the on-line user of the service end.
In an embodiment, after the target instruction is generated based on the identifier of the target user, the method further includes responding to the offline of the target user at the service server, and deleting the target instruction when the target instruction does not carry the identifiers of other users except the target user.
For example, the target instruction 1 only carries the identifier of the target user 1, and the target instruction 1 may be deleted in response to the target user 1 going offline.
Therefore, in the method, when the target user of the service server is off-line and the target instruction does not carry the identification of other users except the target user, the target instruction is deleted, the invalid instruction can be cleared in time, and the computing resource is saved.
In summary, according to the information push method provided by the embodiment of the present disclosure, the instruction server may receive the instruction action sent by the service server, obtain the execution waiting duration, and generate the target instruction based on the identifier of the target user, the instruction action, and the execution waiting duration.
Fig. 3 is a flowchart illustrating an information pushing method according to a third embodiment of the disclosure.
As shown in fig. 3, an information pushing method according to a third embodiment of the present disclosure includes the following steps:
in step S301, an identifier of a target user sent by a service server is received.
In step S302, a target instruction is generated based on the identifier of the target user, where the target instruction is used to instruct the target client to obtain information to be pushed of the target user from the service server, and the target user and the target client have a corresponding relationship.
For the related contents of steps S301-S302, reference may be made to the above embodiments, which are not described herein again.
In step S303, the target instruction is sent to the target client.
It should be noted that the command server and the target client may communicate with each other to perform data transmission, and the communication method is not limited too much.
For example, the target users include target users 1, 2, and 3, the target clients include target clients a, B, and C, and the target users 1, 2, and 3 have corresponding relationships with the target clients a, B, and C.
For example, the instruction server may generate the target instruction 1 based on the identifier of the target user 1, and send the target instruction 1 to the target client a.
For example, the command server may generate the target command 2 based on the identifier of the target user 2, and send the target command 2 to the target client B.
For example, the command server may generate the target command 3 based on the identifier of the target user 3, and send the target command 3 to the target client C.
For example, the instruction server may generate the target instruction 4 based on the identifiers of the target users 1, 2, and 3, and send the target instruction 4 to the target clients a, B, and C, respectively.
In step S304, in response to the target client successfully receiving the target instruction, the identifier of the target user is deleted from the target instruction to update the target instruction.
In one embodiment, in response to that all the user identifiers carried in the target instruction are deleted, the target instruction is deleted, so that invalid instructions can be removed in time, and computing resources are saved.
For example, the target users include target users 1, 2, and 3, the target clients include target clients a, B, and C, and the target users 1, 2, and 3 have corresponding relationships with the target clients a, B, and C.
For example, the target instruction 1 only carries the identifier of the target user 1, the instruction server responds to the target client a to successfully receive the target instruction 1, and deletes the identifier of the target user 1 from the target instruction 1 to update the target instruction 1, where the updated target instruction 1 does not carry the identifier of the user, that is, the identifier of the user carried in the target instruction 1 is completely deleted, and the target instruction 1 may be deleted.
For example, the target instruction 4 carries the identifiers of the target users 1, 2, and 3, the instruction server responds to the target client a that successfully receives the target instruction, deletes the identifier of the target user 1 from the target instruction 4 to update the target instruction 4, and the updated target instruction 4 carries the identifiers of the target users 2 and 3.
Further, the instruction server responds to the target client B that the target instruction is successfully received, and deletes the identifier of the target user 2 from the target instruction 4 to update the target instruction 4, where the updated target instruction 4 carries the identifier of the target user 3.
Further, the instruction server responds to the target client C that the target instruction is successfully received, deletes the identifier of the target user 3 from the target instruction 4 to update the target instruction 4, where the updated target instruction 4 does not carry the identifier of the user, that is, the identifiers of the users carried in the target instruction 4 are all deleted, and the target instruction 4 can be deleted.
In summary, according to the information push method provided by the embodiment of the present disclosure, the instruction server may send the target instruction to the target client, and in response to the target client successfully receiving the target instruction, delete the identifier of the target user from the target instruction to update the target instruction, so as to prevent the target instruction from being repeatedly sent to the target client, thereby preventing the target client from repeatedly obtaining information to be pushed, and improving reliability of information push.
Fig. 4 is a flowchart illustrating an information pushing method according to a fourth embodiment of the disclosure.
As shown in fig. 4, an information pushing method according to a fourth embodiment of the present disclosure includes the following steps:
in step S401, an identifier of a target user is sent to an instruction server, where the identifier of the target user is used to generate a target instruction, the target instruction is used to instruct a target client to obtain information to be pushed of the target user from a service server, and the target user and the target client have a corresponding relationship.
It should be noted that the main execution body of the information push method disclosed in the present disclosure is a service server. The information pushing method of the embodiment of the present disclosure may be executed by the information pushing device of the embodiment of the present disclosure, and the information pushing device of the embodiment of the present disclosure may be configured in any service server to execute the information pushing method of the embodiment of the present disclosure.
It should be noted that, the service server, the instruction server, the target client, the identifier of the target user, the target instruction, and the related content of the information to be pushed can all refer to the foregoing embodiments, and details are not described here.
In one embodiment, the business server may send the instruction action and/or the execution waiting duration of the instruction action to the instruction server, where the instruction action and/or the execution waiting duration are used to generate the target instruction. It should be noted that, for the relevant contents of the instruction action and the execution waiting time, reference may be made to the foregoing embodiments, and details are not described here again.
In summary, according to the information push method provided by the embodiment of the present disclosure, the service server may send an identifier of the target user to the instruction server, where the identifier of the target user is used to generate the target instruction, the target instruction is used to instruct the target client to obtain the information to be pushed of the target user from the service server, and the target user and the target client have a corresponding relationship. Therefore, the business server side can push information to the target client side through the instruction server side, can realize isolation between the information push and the business service, is easy to realize, and contributes to saving of computing resources.
Fig. 5 is a flowchart illustrating an information pushing method according to a fifth embodiment of the disclosure.
As shown in fig. 5, an information pushing method according to a fifth embodiment of the present disclosure includes the following steps:
in step S501, a target instruction is obtained from the instruction server, where the target instruction is generated based on an identifier of a target user, and the target user and the target client have a corresponding relationship.
It should be noted that the execution subject of the information push method of the present disclosure is the target client. The information push method of the embodiment of the present disclosure may be executed by the information push apparatus of the embodiment of the present disclosure, and the information push apparatus of the embodiment of the present disclosure may be configured in any target client to execute the information push method of the embodiment of the present disclosure.
It should be noted that, the instruction server, the target client, the identifier of the target user, and the related content of the target instruction may all refer to the foregoing embodiments, and are not described herein again.
In one embodiment, the target instruction carries at least one of an identifier of a target user, an instruction action, and a waiting time for execution of the instruction action.
In one embodiment, the obtaining of the target instruction from the instruction server may include the following two possible embodiments:
in the mode 1, the target instruction in the instruction server is identified to carry the identification of the target user, and the target instruction is obtained from the instruction server.
For example, the target users include target users 1, 2, and 3, the target clients include target clients a, B, and C, and the target users 1, 2, and 3 have corresponding relationships with the target clients a, B, and C.
For example, the target instruction 1 carries an identifier of the target user 1, and the target client a can obtain the target instruction 1 from the instruction server.
For example, the target instruction 2 carries an identifier of the target user 2, and the target client B may obtain the target instruction 2 from the instruction server.
For example, the target instruction 3 carries an identifier of the target user 3, and the target client C may obtain the target instruction 3 from the instruction server.
For example, the target instruction 4 carries the identifiers of the target users 1, 2, and 3, the target client a may obtain the target instruction 4 from the instruction server, the target client B may obtain the target instruction 4 from the instruction server, and the target client C may obtain the target instruction 4 from the instruction server.
And 2, receiving a target instruction sent by the instruction server.
For example, the target users include target users 1, 2, and 3, the target clients include target clients a, B, and C, and the target users 1, 2, and 3 have corresponding relationships with the target clients a, B, and C.
For example, the command server may generate the target command 1 based on the identifier of the target user 1, and the target client a may receive the target command 1 sent by the command server.
For example, the command server may generate the target command 2 based on the identifier of the target user 2, and the target client B may receive the target command 2 sent by the command server.
For example, the command server may generate the target command 3 based on the identifier of the target user 3, and the target client C may receive the target command 3 sent by the command server.
For example, the command server may generate the target command 4 based on the identifiers of the target users 1, 2, and 3, and the target clients a, B, and C may respectively receive the target command 4 sent by the command server.
In step S502, based on the target instruction, the information to be pushed of the target user is obtained from the service end.
It should be noted that, the relevant contents of the service server and the information to be pushed can be referred to the above embodiments, and are not described herein again.
It should be noted that, the target client and the service server may communicate with each other to perform data transmission, and the communication manner is not limited too much.
In an embodiment, the obtaining, from the service server, information to be pushed of the target user based on the target instruction may include the target client executing the target instruction, and obtaining, from the service server, the information to be pushed of the target user according to the target instruction.
In an embodiment, the obtaining, from the service end, information to be pushed of the target user based on the target instruction may include executing an instruction action according to the execution waiting duration, and obtaining, from the service end, information to be pushed of the target user based on the identifier of the target user.
In summary, according to the information push method provided by the embodiment of the present disclosure, the target client obtains the target instruction from the instruction server, where the target instruction is generated based on the identifier of the target user, the target user and the target client have a corresponding relationship, and based on the target instruction, the information to be pushed of the target user is obtained from the service server. Therefore, the target client can obtain the information to be pushed of the target user from the business server based on the target instruction, can realize the isolation between information pushing and business service, is easy to realize, and is beneficial to saving computing resources.
Fig. 6 is an interaction flow diagram of an information push method according to a sixth embodiment of the present disclosure.
As shown in fig. 6, an information pushing method according to a sixth embodiment of the present disclosure includes the following steps:
in step S601, the service end sends the identifier of the target user to the instruction service end.
In step S602, the instruction server generates a target instruction based on the identification of the target user.
In step S603, the command server sends the target command to the target client.
In step S604, the target client obtains the information to be pushed of the target user from the service server based on the target instruction.
The relevant contents of steps S601-S604 can be referred to the above embodiments, and are not described herein again.
Fig. 7 is a block diagram of an information pushing device according to a first embodiment of the present disclosure.
As shown in fig. 7, an information pushing apparatus 700 according to an embodiment of the present disclosure is adapted to an instruction server, where the information pushing apparatus 700 includes: a receiving module 701 and a generating module 702.
A receiving module 701 configured to receive an identifier of a target user sent by a service server;
a generating module 702 configured to generate a target instruction based on the identifier of the target user, where the target instruction is used to instruct a target client to obtain information to be pushed of the target user from a service server, and the target user and the target client have a corresponding relationship.
In an embodiment of the present disclosure, the target instruction carries at least one of an identifier of the target user, an instruction action, and a waiting duration for execution of the instruction action.
In an embodiment of the present disclosure, the generating module 702 is further configured to: receiving the instruction action sent by the service server, and acquiring the execution waiting time; and generating the target instruction based on the identification of the target user, the instruction action and the execution waiting time length.
In an embodiment of the present disclosure, the generating module 702 is further configured to: receiving the execution waiting time length sent by the service server; and/or identifying the service category corresponding to the instruction action; determining the execution waiting duration based on the traffic class.
In one embodiment of the present disclosure, the target user includes an online user of the business server; the generating module 702 is further configured to: in response to the target user of the service server going offline, deleting the identifier of the target user from the target instruction to update the target instruction under the condition that the target instruction carries identifiers of other users except the target user; or, in response to the target user of the service server going offline, deleting the target instruction when the target instruction does not carry the identifiers of the other users except the target user.
In an embodiment of the present disclosure, the information pushing apparatus 700 further includes: a sending module configured to send the target instruction to the target client.
In an embodiment of the disclosure, after sending the target instruction to the target client, the generating module 702 is further configured to: and in response to the target client successfully receiving the target instruction, deleting the identification of the target user from the target instruction so as to update the target instruction.
In an embodiment of the present disclosure, the generating module 702 is further configured to: and in response to that the user identification carried in the target instruction is completely deleted, deleting the target instruction.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
In summary, the information pushing apparatus provided in the embodiment of the present disclosure receives an identifier of a target user sent by a service server, and generates a target instruction based on the identifier of the target user, where the target instruction is used to instruct a target client to obtain information to be pushed of the target user from the service server, and the target user and the target client have a corresponding relationship. Therefore, information push between the business server and the target client can be achieved, isolation between the information push and the business service can be achieved, implementation is easy, and computing resources are saved.
Fig. 8 is a block diagram of an information push apparatus according to a second embodiment of the present disclosure.
As shown in fig. 8, an information pushing apparatus 800 according to an embodiment of the present disclosure is applicable to a service server, where the information pushing apparatus 800 includes: a sending module 801.
The sending module 801 is configured to send an identifier of a target user to an instruction server, where the identifier of the target user is used to generate a target instruction, the target instruction is used to instruct a target client to obtain information to be pushed of the target user from a service server, and the target user and the target client have a corresponding relationship.
In an embodiment of the present disclosure, the sending module 801 is further configured to: and sending the instruction action and/or the execution waiting time of the instruction action to the instruction server, wherein the instruction action and/or the execution waiting time are used for generating the target instruction.
With regard to the apparatus in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be described in detail here.
In summary, the information pushing apparatus provided in the embodiment of the present disclosure may send the identifier of the target user to the instruction server, where the identifier of the target user is used to generate the target instruction, the target instruction is used to instruct the target client to obtain the information to be pushed of the target user from the service server, and the target user and the target client have a corresponding relationship. Therefore, the information pushing can be carried out on the target client side through the instruction server side, the isolation between the information pushing and the business service can be achieved, the implementation is easy, and the calculation resources are saved.
Fig. 9 is a block diagram of an information pushing apparatus according to a third embodiment of the present disclosure.
As shown in fig. 9, an information pushing apparatus 900 according to an embodiment of the present disclosure is suitable for a target client, where the information pushing apparatus 900 includes: a first obtaining module 901 and a second obtaining module 902.
A first obtaining module 901, configured to obtain a target instruction from an instruction server, where the target instruction is generated based on an identifier of a target user, and the target user and a target client have a corresponding relationship;
a second obtaining module 902, configured to obtain, based on the target instruction, information to be pushed of the target user from a service end.
In an embodiment of the present disclosure, the target instruction carries at least one of an identifier of the target user, an instruction action, and a waiting duration for execution of the instruction action.
In an embodiment of the present disclosure, the first obtaining module 901 is further configured to: identifying that the target instruction in the instruction server carries the identifier of the target user, and acquiring the target instruction from the instruction server; and/or receiving the target instruction sent by the instruction server.
With regard to the apparatus in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be described in detail here.
In summary, the information pushing apparatus provided in the embodiment of the present disclosure obtains the target instruction from the instruction server, where the target instruction is generated based on the identifier of the target user, the target user has a corresponding relationship with the target client, and the information to be pushed of the target user is obtained from the service server based on the target instruction. Therefore, the information to be pushed of the target user can be obtained from the business service terminal based on the target instruction, the isolation between information pushing and business service can be realized, the implementation is easy, and the calculation resource is saved.
FIG. 10 is a block diagram illustrating an electronic device in accordance with an example embodiment. It should be noted that the electronic device may be any one of an instruction server, a business server, and a target client.
As shown in fig. 10, the electronic device 1000 includes:
a memory 1010 and a processor 1020, a bus 1030 connecting different components (including the memory 1010 and the processor 1020), wherein the memory 1010 stores a computer program, and when the processor 1020 executes the computer program, the information pushing method according to the embodiment of the disclosure is implemented.
Bus 1030 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 1000 typically includes a variety of electronic device readable media. Such media may be any available media that is accessible by electronic device 1000 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 1010 may also include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 1040 and/or cache memory 1050. The electronic device 1000 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 1060 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 10 and commonly referred to as a "hard drive"). Although not shown in FIG. 10, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be connected to bus 1030 by one or more data media interfaces. Memory 1010 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the disclosure.
Program/utility 1080 having a set (at least one) of program modules 1070 may be stored, for example, in memory 1010, such program modules 1070 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may include an implementation of a network environment. Program modules 1070 generally perform the functions and/or methods of the embodiments described in this disclosure.
The electronic device 1000 may also communicate with one or more external devices 1090 (e.g., keyboard, pointing device, display 1091, etc.), with one or more devices that enable a user to interact with the electronic device 1000, and/or with any devices (e.g., network card, modem, etc.) that enable the electronic device 1000 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 1092. Also, the electronic device 1000 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the internet) via the network adapter 1093. As shown in FIG. 10, the network adapter 1093 communicates with the other modules of the electronic device 1000 via the bus 1030. It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with the electronic device 1000, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processor 1020 executes various functional applications and data processing by executing programs stored in the memory 1010.
It should be noted that, for the implementation process and the technical principle of the electronic device of this embodiment, reference is made to the foregoing explanation of the information pushing method in the embodiment of the present disclosure, and details are not described here again.
In summary, the electronic device provided in the embodiment of the present disclosure may execute the information pushing method as described above, so that the instruction server may implement information pushing between the service server and the target client, may implement isolation between information pushing and the service, and is easy to implement, and is beneficial to saving computing resources.
In order to implement the above embodiments, the present disclosure also provides a computer-readable storage medium.
Wherein the instructions in the computer readable storage medium, when executed by the processor of the electronic device, enable the electronic device to perform the information push method as described above. Alternatively, the computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In order to implement the foregoing embodiments, the present disclosure further provides a computer program product including a computer program, wherein the computer program is configured to implement the information pushing method as described above when executed by a processor.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (31)

1. An information pushing method is applicable to an instruction server, and comprises the following steps:
receiving a target user identification sent by a service server;
and generating a target instruction based on the identification of the target user, wherein the target instruction is used for indicating a target client to acquire the information to be pushed of the target user from a service server, and the target user and the target client have a corresponding relationship.
2. The method of claim 1, wherein the target instruction carries at least one of an identification of the target user, an instruction action, and a wait duration for execution of the instruction action.
3. The method of claim 2, wherein generating the target instruction based on the identification of the target user comprises:
receiving the instruction action sent by the service server and acquiring the execution waiting time;
and generating the target instruction based on the identification of the target user, the instruction action and the execution waiting time.
4. The method of claim 3, wherein the obtaining the execution wait duration comprises:
receiving the execution waiting duration sent by the service server; and/or the presence of a gas in the gas,
identifying the service type corresponding to the instruction action;
determining the execution wait duration based on the traffic class.
5. The method of claim 2, wherein the target user comprises an online user of the business server;
after generating the target instruction based on the identification of the target user, the method further includes:
in response to the target user of the service server going offline, deleting the identifier of the target user from the target instruction to update the target instruction under the condition that the target instruction carries identifiers of other users except the target user; alternatively, the first and second electrodes may be,
and in response to the target user of the service server going offline, deleting the target instruction under the condition that the target instruction does not carry the identifiers of other users except the target user.
6. The method of claim 2, wherein after generating the target instruction based on the identification of the target user, further comprising:
and sending the target instruction to the target client.
7. The method of claim 6, wherein after sending the target instruction to the target client, further comprising:
and in response to the target client successfully receiving the target instruction, deleting the identification of the target user from the target instruction so as to update the target instruction.
8. The method of claim 7, further comprising:
and in response to that the user identification carried in the target instruction is completely deleted, deleting the target instruction.
9. An information pushing method, which is applicable to a service server, includes:
the method comprises the steps of sending an identification of a target user to an instruction server, wherein the identification of the target user is used for generating a target instruction, the target instruction is used for indicating a target client to obtain information to be pushed of the target user from a service server, and the target user and the target client have a corresponding relation.
10. The method of claim 9, further comprising:
and sending the instruction action and/or the execution waiting time of the instruction action to the instruction server, wherein the instruction action and/or the execution waiting time are used for generating the target instruction.
11. An information push method, adapted to a target client, the method includes:
acquiring a target instruction from an instruction server, wherein the target instruction is generated based on an identifier of a target user, and the target user and a target client have a corresponding relation;
and acquiring the information to be pushed of the target user from a service server based on the target instruction.
12. The method of claim 11, wherein the target instruction carries at least one of an identification of the target user, an instruction action, and a wait duration for execution of the instruction action.
13. The method of claim 12, wherein the obtaining the target command from the command server comprises:
identifying that the target instruction in the instruction server carries the identifier of the target user, and acquiring the target instruction from the instruction server; and/or the presence of a gas in the gas,
and receiving the target instruction sent by the instruction server.
14. An information pushing apparatus, adapted to instruct a server, the apparatus comprising:
the receiving module is configured to receive the identification of the target user sent by the service server;
the generation module is configured to generate a target instruction based on the identifier of the target user, wherein the target instruction is used for instructing a target client to acquire information to be pushed of the target user from a service server, and the target user and the target client have a corresponding relationship.
15. The apparatus of claim 14, wherein the target instruction carries at least one of an identification of the target user, an instruction action, and a wait duration for execution of the instruction action.
16. The apparatus of claim 15, wherein the generation module is further configured to:
receiving the instruction action sent by the service server and acquiring the execution waiting time;
and generating the target instruction based on the identification of the target user, the instruction action and the execution waiting time.
17. The apparatus of claim 16, wherein the generation module is further configured to:
receiving the execution waiting duration sent by the service server; and/or the presence of a gas in the atmosphere,
identifying the service type corresponding to the instruction action;
determining the execution waiting duration based on the traffic class.
18. The apparatus of claim 15, wherein the target user comprises an online user of the business server;
the generation module further configured to:
in response to the target user of the service server going offline, deleting the identifier of the target user from the target instruction to update the target instruction under the condition that the target instruction carries identifiers of other users except the target user; alternatively, the first and second liquid crystal display panels may be,
and in response to the target user of the service server going offline, deleting the target instruction under the condition that the target instruction does not carry the identifiers of other users except the target user.
19. The apparatus of claim 15, further comprising: a sending module configured to send the target instruction to the target client.
20. The apparatus of claim 19, wherein after sending the target instruction to the target client, the generation module is further configured to:
and in response to the target client successfully receiving the target instruction, deleting the identification of the target user from the target instruction so as to update the target instruction.
21. The apparatus of claim 20, wherein the generating module is further configured to:
and in response to that the user identification carried in the target instruction is completely deleted, deleting the target instruction.
22. An information pushing apparatus, adapted to a service end, the apparatus comprising:
the sending module is configured to send an identifier of a target user to an instruction server, wherein the identifier of the target user is used for generating a target instruction, the target instruction is used for instructing a target client to acquire information to be pushed of the target user from a service server, and the target user and the target client have a corresponding relationship.
23. The apparatus of claim 22, wherein the transmitting module is further configured to:
and sending the instruction action and/or the execution waiting time of the instruction action to the instruction server, wherein the instruction action and/or the execution waiting time are used for generating the target instruction.
24. An information pushing apparatus, adapted to a target client, the apparatus comprising:
the first acquisition module is configured to acquire a target instruction from an instruction server, wherein the target instruction is generated based on an identifier of a target user, and the target user and a target client have a corresponding relation;
and the second acquisition module is configured to acquire the information to be pushed of the target user from a service server based on the target instruction.
25. The apparatus of claim 25, wherein the target instruction carries at least one of an identification of the target user, an instruction action, and a wait duration for execution of the instruction action.
26. The apparatus of claim 25, wherein the first obtaining module is further configured to:
identifying that the target instruction in the instruction server carries the identifier of the target user, and acquiring the target instruction from the instruction server; and/or the presence of a gas in the atmosphere,
and receiving the target instruction sent by the instruction server.
27. An instruction server, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the information pushing method according to any one of claims 1-8.
28. A service end, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the information pushing method according to any one of claims 9-10.
29. A target client, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the information push method according to any one of claims 11-13.
30. A computer-readable storage medium, wherein instructions, when executed by a processor of an electronic device, enable the electronic device to perform the information pushing method of any one of claims 1-13.
31. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the information push method according to any one of claims 1-13.
CN202210989216.XA 2022-08-17 2022-08-17 Information pushing method and device and instruction server Pending CN115473935A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210989216.XA CN115473935A (en) 2022-08-17 2022-08-17 Information pushing method and device and instruction server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210989216.XA CN115473935A (en) 2022-08-17 2022-08-17 Information pushing method and device and instruction server

Publications (1)

Publication Number Publication Date
CN115473935A true CN115473935A (en) 2022-12-13

Family

ID=84367940

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210989216.XA Pending CN115473935A (en) 2022-08-17 2022-08-17 Information pushing method and device and instruction server

Country Status (1)

Country Link
CN (1) CN115473935A (en)

Similar Documents

Publication Publication Date Title
CN109395400B (en) Cross-game chat information processing method and device, electronic equipment and storage medium
CN108073429B (en) Payment mode configuration method, device, equipment and storage medium
CN102609409B (en) Online translation method, device, system and server
CN103428198A (en) Network device, system and method
CN107817962B (en) Remote control method, device, control server and storage medium
US20220245208A1 (en) Method for switching skin of mini-program page, and electronic device
EP4096224A1 (en) Method and apparatus for displaying live clip
CN113656193A (en) Application communication method, system, electronic equipment and storage medium
CN112395297B (en) Method, device and server for synchronizing work information
CN113313623A (en) Watermark information display method, watermark information display device, electronic equipment and computer readable medium
CN115473935A (en) Information pushing method and device and instruction server
CN114610259A (en) Data transmission system, method, service system, device and storage medium
CN113742104A (en) AI-based RPA (resilient packet Access) body-separating function generation method and device
CN113835816A (en) Virtual machine desktop display method, device, equipment and readable storage medium
CN112416455A (en) Data processing method, device, terminal and storage medium
CN112035773A (en) Data processing method and server side equipment
CN111258479A (en) Method, system, equipment and storage medium for displaying multiple chat windows on chat interface
CN113422969B (en) Information pulling method, device and server
CN115544098A (en) Service processing method and device and electronic equipment
CN110727898B (en) OTA website event assisted processing method, system, equipment and storage medium
CN103701849A (en) Method and equipment for operating mobile equipment through user equipment
CN117592447A (en) Table data processing method and device based on internal network and server
CN113572809B (en) Single request source multi-target source data communication method, computer equipment and storage medium
JP2004362287A (en) Update method of data
CN111046430B (en) Data processing method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination