CN115589391A - Instant messaging processing method, device and equipment based on block chain and storage medium - Google Patents

Instant messaging processing method, device and equipment based on block chain and storage medium Download PDF

Info

Publication number
CN115589391A
CN115589391A CN202211575782.2A CN202211575782A CN115589391A CN 115589391 A CN115589391 A CN 115589391A CN 202211575782 A CN202211575782 A CN 202211575782A CN 115589391 A CN115589391 A CN 115589391A
Authority
CN
China
Prior art keywords
group
local
load
server
communication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211575782.2A
Other languages
Chinese (zh)
Other versions
CN115589391B (en
Inventor
荆博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202211575782.2A priority Critical patent/CN115589391B/en
Publication of CN115589391A publication Critical patent/CN115589391A/en
Application granted granted Critical
Publication of CN115589391B publication Critical patent/CN115589391B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1008Server selection for load balancing based on parameters of servers, e.g. available memory or workload

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The disclosure provides an instant messaging processing method, an instant messaging processing device, instant messaging processing equipment and a storage medium based on a block chain, relates to the field of computers, particularly relates to a block chain technology, and can be applied to a cloud platform. The method comprises the following steps: determining the internal communication load of the local server according to the communication data of the local group members in the local server; based on the communication intelligent contract, determining the external communication load of the local server according to the communication data of other group members in the other servers in the target group; the target group is an instant communication group in which a local group member and other group members participate together; and determining the total communication load of the local server in the instant communication process according to the internal communication load of the local server and the external communication load of the local server. By the technical scheme, the stability of instant messaging can be improved.

Description

Instant messaging processing method, device and equipment based on block chain and storage medium
Technical Field
The present disclosure relates to the field of computers, and in particular, to a method, an apparatus, a device, and a storage medium for processing instant messaging based on a block chain.
Background
Instant Messaging (IM) refers to a communication method capable of sending and receiving internet messages instantly, allowing real-time delivery of text messages, files, voice and video communications using a network. Various instant messaging software is also developed, and service providers also provide more and more abundant messaging service functions. With the continuous development of network technology, new requirements are put forward on the instant messaging system.
Disclosure of Invention
The disclosure provides an instant messaging processing method, an instant messaging processing device, instant messaging processing equipment and a storage medium based on a block chain.
According to an aspect of the present disclosure, there is provided a block chain-based instant messaging processing method, including:
determining the internal communication load of the local server according to the communication data of the local group members in the local server;
based on the communication intelligent contract, determining the external communication load of the local server according to the communication data of other group members in the other servers in the target group; the target group is an instant communication group in which a local group member and other group members participate together;
and determining the total communication load of the local server in the instant communication process according to the internal communication load of the local server and the external communication load of the local server.
According to an aspect of the present disclosure, there is provided an instant messaging processing apparatus based on a blockchain, the apparatus including:
the internal load module is used for determining the internal communication load of the local server according to the communication data of the local group members in the local server;
the external load module is used for determining the external communication load of the local server according to the communication data of other group members in the other servers in the target group based on the communication intelligent contract; the target group is an instant communication group in which a local group member and other group members participate together;
and the total load module is used for determining the total communication load of the local server in the instant messaging process according to the internal communication load of the local server and the external communication load of the local server.
According to another aspect of the present disclosure, there is provided an electronic device including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a blockchain-based instant messaging processing method according to any embodiment of the present disclosure.
According to another aspect of the present disclosure, there is provided a non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the instant communication processing method based on a blockchain according to any embodiment of the present disclosure.
According to the technology disclosed by the invention, the stability of instant messaging can be improved.
It should be understood that the statements in this section are not intended to identify key or critical features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
fig. 1a is a flowchart of an instant messaging processing method based on a blockchain according to an embodiment of the present disclosure;
fig. 1b is an interaction diagram of an instant messaging processing system based on a blockchain according to an embodiment of the present disclosure;
FIG. 1c is a schematic diagram of a new user registration process provided in accordance with an embodiment of the present disclosure;
fig. 2a is a flowchart of another instant messaging processing method based on a blockchain according to an embodiment of the present disclosure;
fig. 2b is a schematic diagram illustrating a communication load determination of a server according to an embodiment of the present disclosure;
fig. 3a is a flowchart of another instant messaging processing method based on a blockchain according to an embodiment of the present disclosure;
fig. 3b is a schematic diagram illustrating load control of a server according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an instant messaging processing apparatus based on a block chain according to an embodiment of the present disclosure;
fig. 5 is a block diagram of an electronic device for implementing an instant messaging processing method based on a blockchain according to an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1a is a flowchart of an instant messaging processing method based on a blockchain according to an embodiment of the present disclosure. The embodiment of the disclosure is suitable for load balancing of the decentralized instant messaging network. The method can be executed by an instant communication processing device based on a block chain, the device can be realized by adopting a software and/or hardware mode, and the device can be configured in any communication server. As shown in fig. 1a, the instant messaging processing method based on a block chain according to this embodiment may include:
s101, determining the internal communication load of a local server according to the communication data of local group members in the local server;
s102, determining the external communication load of a local server according to the communication data of other group members in other servers in a target group based on a communication intelligent contract; the target group is an instant communication group in which a local group member and other group members participate together;
s103, determining the total communication load of the local server in the instant communication process according to the internal communication load of the local server and the external communication load of the local server.
The embodiment of the disclosure provides a decentralized instant messaging system, which is used for realizing a decentralized instant messaging processing method based on a block chain. The instant communication system comprises at least two participants, each participant has a communication server (which can be called as a server for short) for users in the participant to use, and different servers communicate with each other, namely, the users communicate in a participating instant communication group through the affiliated server. The server and the user have a one-to-many relationship, that is, a plurality of users can be registered on each server, and each user can only be registered and belonged to one server. The users and the instant communication groups are in many-to-many relationship, that is, each user can participate in a plurality of instant communication groups, and each instant communication group can be participated in by a plurality of users.
The users in a single instant communication group can belong to one server or a plurality of servers, namely, the decentralized group which is participated in by at least two participants together can be realized. The server needs to process not only the communication data of its own participant user, but also the communication data of other participant users in the group participating together. Referring to fig. 1b, for example, the decentralized communication system includes a party X, a party Y, and a party Z, where a user X is a user belonging to the party X, a user Y is a user belonging to the party Y, and a user Z is a user belonging to the party Z, and each party has a plurality of users. A single group may have at least one of user x, user y, user z participating. The server X, the server Y and the server Z can be mutually connected in a communication way. The server X needs to process not only the communication data of the user X but also the communication data of the users Y and Z in the group in which the user X participates, and similarly, the server Y and the server Z also need to process the communication data of the users in other participants.
In decentralized instant messaging systems, each server needs to process not only the communication data of the user in its own participant, but also the communication data of the users in other participants. That is, the traffic load of traffic involves multiple servers, and no single central authority has absolute authority, so it is important how to determine the traffic load of the servers.
In the embodiment of the present disclosure, the local group member is a user belonging to the local party, the other group members are users belonging to the other parties, and the target group is an instant messaging group in which the local group member and the other group members participate together, that is, an arbitrary decentralized group. The communication data of the local group members is determined according to the messages sent by the local group members in the group, and the communication data of other group members is determined according to the messages sent by other group members in the group. In addition, the membership relationship among the servers, the group members and the groups can be recorded through the blockchain network, that is, the information of the servers to which the group members belong, the groups in which the group members participate and the like can be recorded in the blockchain network. A communication intelligence contract may be deployed in a blockchain network for computing a communication load of each server.
Specifically, the local server may obtain the local group members and the communication data of the local group members in the group, and determine the internal communication data of the local server according to the communication data of the local group members; the local server can also call a communication intelligent contract, determine a target group in which the local group member and other group members participate together, acquire communication data of the other group members in the target group, and determine the external communication load of the local server according to the communication data of the other group members; and taking the sum of the internal communication load and the external communication load of the local server as the total communication load of the local server. The external communication load of the local server is determined by calling the communication intelligent contract, and the total communication load of the local server can be accurately obtained by combining the internal communication load and the external communication load of the local server, namely under the condition that no single central mechanism has absolute management right, the accuracy calculation of the communication load in the decentralized instant communication system is realized, the decentralized load balancing of the decentralized instant communication system is conveniently carried out on the decentralized instant communication system based on the total communication load of each server, the stability of decentralized instant communication can be improved, and the availability and the usability are high.
According to the technical scheme of the embodiment of the disclosure, decentralized communication load calculation is realized based on the communication intelligent contract in the block chain network, the stability of decentralized instant messaging can be improved, and the availability and the usability are high.
In an alternative embodiment, the method further comprises: in response to a registration request of a new member, a registration server is selected for the new member from the servers according to the total communication load of the servers.
Referring to fig. 1c, in a case where a new member needs to participate in a decentralized communication system, the new member may issue a registration request, and in response to the registration request of the new member, total communication loads of the servers are respectively determined based on a communication intelligent contract, and in a case where other conditions are the same, for example, in a case where regions are the same, a server with the lowest total communication load may be used as a registration server of the new member, so that the new member participates in the communication system through the registration server, and load balancing between the servers is achieved.
Fig. 2a is a flowchart of another instant messaging processing method based on a blockchain according to an embodiment of the present disclosure. The present embodiment is an alternative proposed on the basis of the above-described embodiments. Referring to fig. 2a, the instant messaging processing method based on a block chain according to this embodiment may include:
s201, determining the internal communication load of the local server according to the communication data of the local group members in the local server;
s202, determining at least one target group in which a local group member and other group members participate together based on the communication intelligent contract, and determining the external communication load of the target group according to the communication data of the other group members in the target group;
s203, determining the external communication load of the local server according to the external communication load of the target group;
s204, determining the total communication load of the local server in the instant communication process according to the internal communication load of the local server and the external communication load of the local server.
In the embodiment of the disclosure, the groups in which the local group members participate can be determined, and the group in which other group members participate together is selected from the groups in which the local group members participate as the target group based on the communication intelligent contract. Aiming at each target group, acquiring other group members participating in the target group, and determining external communication load in the target group according to communication data of the other group members in the target group; and accumulating the external communication load of each target group to obtain the external communication load of the local server.
Referring to fig. 2B, still taking the decentralized communication system in which the party X, the party Y, and the party Z participate together as an example, in the case that the server X is a local server, the target groups in which the party X and the other parties participate together may be determined to be the group a, the group B, and the group C based on the communication intelligence contract. Specifically, the external communication loads of the group a, the group B, and the group C may be determined respectively, and the external communication loads of the group a, the group B, and the group C are accumulated to obtain the external communication load of the server X. Similarly, the external communication load of other servers may be determined separately. The method comprises the steps of determining each target group in which a local group member and an external group member participate together based on a communication intelligent contract, determining the external communication load of each target group respectively, and accumulating the external communication loads of the target groups to obtain the external communication load of a local server. By performing the external communication load calculation in units of target groups, the calculation efficiency of the external communication load can be further improved.
In an optional embodiment, the determining the external communication load of the target group according to the communication data of the other group members in the target group includes: for each other server associated with the target group, determining the external communication load of the other server in the target group according to the communication data of other group members in the other server in the target group; and determining the external communication load of the target group according to the external communication load of each other server in the target group.
In an embodiment of the present disclosure, for each target group, other group members participating in the target group, to which the other group members belong, may be determined based on a communication intelligence contract. For each other server, obtaining the external communication load of the other server in the target group according to the communication data of other group members in the other server in the target group; and accumulating the external communication loads of the other servers in the target group to obtain the external communication load of the target group.
Referring to fig. 2B, a participant X, a participant Y and a participant Z participate together in the group a, a participant X and a participant Y participate together in the group B, and a participant X and a participant Z participate together in the group C. Specifically, the external communication load of the server Y in the group a can be obtained according to the communication data of the user Y in the group a, the external communication load of the server Z in the group a can be obtained according to the communication data of the user Z in the group a, and the external communication load of the server Y in the group a and the external communication load of the server Z in the group a are accumulated to obtain the external communication load of the group a. Similarly, the external communication load of group B may be determined from the communication data of users y in group B, the external communication load of group C may be determined from the communication data of users z in group C; and accumulating the external communication loads of the group A, the group B and the group C to obtain the external communication load of the server X. By calculating the external communication load of the target group in units of external servers participating in the target group, the calculation efficiency of the external communication load can be further improved.
In an optional implementation manner, the determining, according to communication data of other group members in the target group, a communication load of the other server outside the target group includes: and determining the external communication load of other servers in the target group according to the number of the other group members in the target group and the actual speaking frequency.
In the disclosed embodiment, the actual speaking frequency is used to indicate the message transmission density of the group members in the group. The external communication load of the target group is positively correlated with the number of members of the other servers in the target group and the actual speaking frequency, that is, the greater the number of members and the higher the actual speaking frequency, the greater the external communication load of the target group. The external communication load of the target group is calculated from two dimensions of the number of the other group members in the target group and the actual speaking frequency, so that the accuracy calculation of the external communication load is realized.
According to the technical scheme of the embodiment of the disclosure, each target group in which the local group member and the external group member participate together is determined based on the communication intelligent contract, and the external communication load calculation is performed by taking the target group and the external server participating in the target group as a unit, so that the calculation efficiency of the external communication load can be improved; by combining the two dimensions of the number of members and the actual speaking frequency, the calculation accuracy of the external communication load can be improved, and the stability of the decentralized group is further improved.
In an optional implementation manner, the determining the internal communication load of the local server according to the communication data of the local group members in the local server includes: and determining the internal communication load of the local server according to the number of the members of the local group in the local server and the actual speaking frequency.
In the embodiment of the disclosure, the internal communication load of the local server can be calculated by combining the two dimensions of the number of members of the local group and the actual speaking frequency, so as to realize the accuracy calculation of the internal communication load. Because the local server can accurately obtain the local group members and the communication data of the local group members, the local group members do not need to be divided according to groups, and the calculation efficiency of the internal communication load can be improved.
Fig. 3a is a flowchart of another instant messaging processing method based on a blockchain according to an embodiment of the present disclosure. The present embodiment is an alternative proposed on the basis of the above-described embodiments. Referring to fig. 3a, the instant messaging processing method based on the block chain in this embodiment may include:
s301, determining the internal communication load of the local server according to the communication data of the local group members in the local server;
s302, based on the communication intelligent contract, determining the external communication load of the local server according to the communication data of other group members in other servers in the target group; the target group is an instant communication group in which a local group member and other group members participate together;
s303, determining the total communication load of the local server in the instant communication process according to the internal communication load of the local server and the external communication load of the local server;
s304, if the actual speaking frequency of any local group member in any group is larger than the speaking frequency threshold of the local server in a single group, shielding the speaking message of the local group member in the group exceeding the limit;
s305, if the actual total speaking frequency of any local group member in all groups is greater than the total speaking frequency threshold in all groups in the local server, shielding the speaking message that the local group member exceeds the limit in each group.
Wherein, S301-S303 are used for carrying out load balancing on the decentralized instant messaging system by calculating the total communication load of the local server; s304 is used for the local server to control the speaking frequency of the local group members in a single group, and S305 is used for the local server to control the total speaking frequency of the local group members in all groups. S304 and S305 can be executed in the instant communication process without the sequence division.
The messages sent by the group members in the group can carry a communication load. Each server may be affiliated with a different participant and the floor frequency control strategy for the user may be different for each participant. The local participants (i.e. each participant) can issue their own talk frequency control strategy to the blockchain network for viewing and use by group members and servers. The floor frequency control policy may include a floor frequency threshold for a single local group member in a single group and a total floor frequency threshold for a single local group member in all groups.
Specifically, the local server determines the actual speaking frequency of the local group members in a single group and the actual speaking frequency of the local group members in all groups respectively; if the actual speaking frequency of any local group member in any group is larger than the speaking frequency threshold value in a single group, shielding the message that the local group member exceeds the limit in the group; and if the actual total speaking frequency of any local group member in each group is greater than the total speaking frequency threshold value, shielding the message that the local group member exceeds the limit in each group.
Referring to fig. 3B, still taking the decentralized communication system in which party X, party Y, and party Z participate together as an example, if user 1 in server Y and user 2 in server Z participate together in group a, user 1 also participates in group B, group C, and user 2 also participates in group D, server Y determines the actual speaking frequencies of user 1 in group a, group B, group C, and user 1 in group a, group B, group C, respectively, and the actual total speaking frequencies of user 1 in group a, group B, and group C; server Z determines the actual speaking frequency of user 2 in groups a, D, and the actual total speaking frequency of user 2 in groups a, D, respectively. If the actual speaking frequency of the user 1 in the group A is larger than the speaking frequency threshold value in a single group, the server Y shields the speaking message that the user 1 exceeds the limit in the group A, and the user 1 can still speak continuously in the groups B and C; if the actual speaking frequency of the user 1 in the group A, the group B and the group C is larger than the total speaking frequency threshold value, the server Y shields the speaking message of the user 1 exceeding the limit in the group A, the group B and the group C, so that the user 1 can not speak continuously in each group. If the actual speaking frequency of the user 2 in the group A is larger than the speaking frequency threshold value in a single group, the server Z shields the speaking message that the user 2 exceeds the limit in the group A, and the user 2 can still speak continuously in the group D; if the actual speaking frequency of the user 2 in the group a and the group D is greater than the total speaking frequency threshold value, the server Z shields the speaking message that the user 2 exceeds the limit in the group a and the group D, so that the user 2 cannot speak continuously in each group.
The local server can further improve the stability of the decentralized instant messaging system by limiting the actual speaking frequency of the local group members in a single group and limiting the actual total speaking frequency of the local group members in all groups.
In an alternative embodiment, the actual speaking frequency is determined according to the size of a single piece of speaking information and the speaking times in unit time.
The speaking frequency threshold of the local server in a single group comprises a size threshold of single piece of speaking information, namely the single piece of speaking information is less than K bytes; the speaking frequency threshold also comprises a speaking frequency threshold in unit time, namely the speaking frequency per second is less than L, and K and L are positive integers. By limiting the size of the single piece of speaking information of the local group members and the speaking times in unit time, overload of a local server is avoided, the stability of the local server can be improved, and the flexibility of speaking control on the group members can be improved.
In an alternative embodiment, the actual speaking frequency is an information size of speaking per unit time.
The speaking frequency threshold of the local server in a single group can be a size threshold of the speaking information per unit time, that is, the size of the speaking information per unit time is less than M bytes, and M is a positive integer. Specifically, the information sent by the local group member in the unit time may be collected to obtain the information size spoken in the unit time, and the information size spoken in the unit time may be limited. The speaking times in unit time and the size of a single piece of speaking information are not limited. By limiting the information size of the speech of the local group members in unit time, the overload of the local server can be avoided, and the flexibility of speech control on the group members can be improved.
According to the technical scheme of the embodiment of the disclosure, all servers in the decentralized communication network adopt the load control strategy to perform speech control on group members, so that server overload is avoided, and the stability of the decentralized communication network can be improved.
Fig. 4 is a schematic structural diagram of an instant messaging processing apparatus based on a block chain according to an embodiment of the present disclosure. The embodiment is suitable for the condition of load balancing of the decentralized instant messaging network. The device can be implemented in software and/or hardware and can be configured to act as any communication server. As shown in fig. 4, the instant communication processing apparatus 400 based on block chain of this embodiment may include:
an internal load module 410, configured to determine an internal communication load of the local server according to communication data of local group members in the local server;
the external load module 420 is used for determining the external communication load of the local server according to the communication data of other group members in the other servers in the target group based on the communication intelligent contract; the target group is an instant communication group in which a local group member and other group members participate together;
the total load module 430 is configured to determine a total communication load of the local server in the instant messaging process according to the internal communication load of the local server and the external communication load of the local server.
In an alternative embodiment, the external load module 420 includes:
the group load unit is used for determining at least one target group in which the local group member and other group members participate together based on the communication intelligent contract and determining the external communication load of the target group according to the communication data of the other group members in the target group;
and the external load unit is used for determining the external communication load of the local server according to the external communication load of the target group.
In an alternative embodiment, the external load unit comprises:
the server load sub-unit is used for determining the external communication load of each other server in the target group according to the communication data of other group members in the other servers in the target group aiming at each other server associated with the target group;
and the group load subunit is used for determining the external communication load of the target group according to the external communication load of each other server in the target group.
In an alternative embodiment, the server load sub-unit is specifically configured to:
and determining the external communication load of other servers in the target group according to the number of the other group members in the target group and the actual speaking frequency.
In an optional implementation, the internal load module 410 is specifically configured to:
and determining the internal communication load of the local server according to the number of the members of the local group in the local server and the actual speaking frequency.
In an optional implementation manner, the above instant communication processing apparatus 400 based on a block chain further includes:
and the registration module is used for responding to the registration request of the new member and selecting a registration server for the new member from the servers according to the total communication load of the servers.
In an optional implementation manner, the above instant communication processing apparatus 400 based on a block chain further includes:
the first shielding module is used for shielding the speaking message of any local group member in the group, which exceeds the limit, if the actual speaking frequency of the local group member in any group is greater than the speaking frequency threshold of the local server in a single group;
and the second shielding module is used for shielding the speaking message of the local group member exceeding the limit in each group if the actual total speaking frequency of any local group member in all the groups is greater than the total speaking frequency threshold value in all the groups in the local server.
In an alternative embodiment, the actual speaking frequency is determined according to the size of a single piece of speaking information and the speaking times per unit time.
In an alternative embodiment, the actual speaking frequency is an information size of speaking in a unit time.
According to the technical scheme of the embodiment of the disclosure, decentralized communication network load balancing is realized based on a block chain network, load balancing is carried out under the condition that no single central mechanism has absolute management right, flow load balancing is distributed to all servers, and a load balancing strategy has decentralized characteristics and has high availability and usability; and the server avoids overload through a load control strategy, and can improve the stability of the decentralized communication network.
The technical scheme of the embodiment of the disclosure provides a way for realizing rights management of decentralized cloud communication services based on a blockchain network, and the communication and management architecture has decentralized characteristics by decentralized configuration of management rights, so that the availability and the usability are high.
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the personal information of the related user all accord with the regulations of related laws and regulations, and do not violate the good customs of the public order.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
Fig. 5 is a block diagram of an electronic device for implementing an instant messaging processing method based on a blockchain according to an embodiment of the present disclosure. FIG. 5 illustrates a schematic block diagram of an example electronic device 500 that can be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not intended to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 5, the electronic device 500 comprises a computing unit 501 which may perform various suitable actions and processes according to a computer program stored in a Read Only Memory (ROM) 502 or a computer program loaded from a storage unit 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic apparatus 500 can also be stored. The calculation unit 501, the ROM 502, and the RAM 503 are connected to each other by a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
A number of components in the electronic device 500 are connected to the I/O interface 505, including: an input unit 506 such as a keyboard, a mouse, or the like; an output unit 507 such as various types of displays, speakers, and the like; a storage unit 508, such as a magnetic disk, optical disk, or the like; and a communication unit 509 such as a network card, modem, wireless communication transceiver, etc. The communication unit 509 allows the electronic device 500 to exchange information/data with other devices through a computer network such as the internet and/or various telecommunication networks.
The computing unit 501 may be a variety of general and/or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The computing unit 501 performs the various methods and processes described above, such as a blockchain-based instant messaging processing method. For example, in some embodiments, the blockchain-based instant messaging processing method may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 508. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 500 via the ROM 502 and/or the communication unit 509. When the computer program is loaded into the RAM 503 and executed by the computing unit 501, one or more steps of the block chain based instant messaging processing method described above may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured to perform the blockchain-based instant messaging processing method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), complex Programmable Logic Devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user may provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server with a combined blockchain.
Artificial intelligence is the subject of research that makes computers simulate some human mental processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.), both at the hardware level and at the software level. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing, and the like; the artificial intelligence software technology mainly comprises a computer vision technology, a voice recognition technology, a natural language processing technology, a machine learning/deep learning technology, a big data processing technology, a knowledge map technology and the like.
Cloud computing (cloud computing) refers to a technology system that accesses a flexibly extensible shared physical or virtual resource pool through a network, where resources may include servers, operating systems, networks, software, applications, storage devices, and the like, and may be deployed and managed in a self-service manner as needed. Through the cloud computing technology, high-efficiency and strong data processing capacity can be provided for technical application and model training of artificial intelligence, block chains and the like.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (20)

1. The instant messaging processing method based on the block chain comprises the following steps:
determining the internal communication load of the local server according to the communication data of the local group members in the local server;
determining the external communication load of the local server according to the communication data of other group members in the other servers in the target group based on the communication intelligent contract; the target group is an instant communication group in which a local group member and other group members participate together;
and determining the total communication load of the local server in the instant communication process according to the internal communication load of the local server and the external communication load of the local server.
2. The method of claim 1, wherein the determining the external communication load of the local server according to the communication data of other group members in the target group in other servers based on the communication intelligent contract comprises:
determining at least one target group in which a local group member and other group members participate together based on the communication intelligent contract, and determining external communication load of the target group according to communication data of the other group members in the target group;
and determining the external communication load of the local server according to the external communication load of the target group.
3. The method of claim 2, wherein the determining an external communication load of a target group from communication data of the other group members in the target group comprises:
for each other server associated with the target group, determining the external communication load of the other server in the target group according to the communication data of other group members in the other server in the target group;
and determining the external communication load of the target group according to the external communication load of each other server in the target group.
4. The method of claim 3, wherein the determining the external communication load of the other server in the target group according to the communication data of the other group members in the other server in the target group comprises:
and determining the external communication load of other servers in the target group according to the number of the other group members in the target group and the actual speaking frequency.
5. The method of claim 1, wherein determining the internal communication load of the local server based on the communication data of the local group members in the local server comprises:
and determining the internal communication load of the local server according to the number of the members of the local group in the local server and the actual speaking frequency.
6. The method of any of claims 1-5, further comprising:
in response to a registration request of a new member, a registration server is selected for the new member from the servers according to the total communication load of the servers.
7. The method of any of claims 1-5, further comprising:
if the actual speaking frequency of any local group member in any group is larger than the speaking frequency threshold value of the local server in a single group, shielding the speaking message of the local group member exceeding the limit in the group;
and if the actual total speaking frequency of any local group member in all the groups is greater than the total speaking frequency threshold value in all the groups in the local server, screening the speaking messages of the local group members exceeding the limit in each group.
8. The method of claim 7, wherein the actual speaking frequency is determined according to a size of a single piece of speaking information and a number of speaking times per unit time.
9. The method of claim 7, wherein the actual speaking frequency is an information size of a speaking per unit time.
10. Instant messaging processing apparatus based on block chain, comprising:
the internal load module is used for determining the internal communication load of the local server according to the communication data of the local group members in the local server;
the external load module is used for determining the external communication load of the local server according to the communication data of other group members in the other servers in the target group based on the communication intelligent contract; the target group is an instant communication group in which a local group member and other group members participate together;
and the total load module is used for determining the total communication load of the local server in the instant communication process according to the internal communication load of the local server and the external communication load of the local server.
11. The apparatus of claim 10, wherein the external load module comprises:
the group load unit is used for determining at least one target group in which the local group member and other group members participate together based on the communication intelligent contract and determining the external communication load of the target group according to the communication data of the other group members in the target group;
and the external load unit is used for determining the external communication load of the local server according to the external communication load of the target group.
12. The apparatus of claim 11, wherein the external load unit comprises:
the server load subunit is used for determining the external communication load of each other server in the target group according to the communication data of other group members in the other servers in the target group aiming at each other server associated with the target group;
and the group load subunit is used for determining the external communication load of the target group according to the external communication load of each other server in the target group.
13. The apparatus of claim 12, wherein the server load subunit is specifically configured to:
and determining the external communication load of other servers in the target group according to the number of the other group members in the target group and the actual speaking frequency.
14. The apparatus of claim 10, wherein the internal load module is specifically configured to:
and determining the internal communication load of the local server according to the number of the members of the local group in the local server and the actual speaking frequency.
15. The apparatus of any one of claims 10-14, the apparatus further comprising:
and the registration module is used for responding to the registration request of the new member and selecting a registration server for the new member from the servers according to the total communication load of the servers.
16. The apparatus of any one of claims 10-14, the apparatus further comprising:
the first shielding module is used for shielding the speaking message of any local group member in the group, which exceeds the limit, if the actual speaking frequency of the local group member in any group is greater than the speaking frequency threshold of the local server in a single group;
and the second shielding module is used for shielding the speaking message of the local group member exceeding the limit in each group if the actual total speaking frequency of any local group member in all the groups is greater than the total speaking frequency threshold value in all the groups in the local server.
17. The apparatus of claim 16, wherein the actual speaking frequency is determined according to a size of a single piece of speaking information and a number of speaking times per unit time.
18. The apparatus of claim 16, wherein the actual speaking frequency is an information size of speaking per unit time.
19. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the blockchain-based instant messaging processing method of any one of claims 1-9.
20. A non-transitory computer readable storage medium storing computer instructions for causing a computer to execute the blockchain-based instant messaging processing method according to any one of claims 1 to 9.
CN202211575782.2A 2022-12-09 2022-12-09 Instant messaging processing method, device and equipment based on block chain and storage medium Active CN115589391B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211575782.2A CN115589391B (en) 2022-12-09 2022-12-09 Instant messaging processing method, device and equipment based on block chain and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211575782.2A CN115589391B (en) 2022-12-09 2022-12-09 Instant messaging processing method, device and equipment based on block chain and storage medium

Publications (2)

Publication Number Publication Date
CN115589391A true CN115589391A (en) 2023-01-10
CN115589391B CN115589391B (en) 2023-03-21

Family

ID=84783057

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211575782.2A Active CN115589391B (en) 2022-12-09 2022-12-09 Instant messaging processing method, device and equipment based on block chain and storage medium

Country Status (1)

Country Link
CN (1) CN115589391B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120051228A1 (en) * 2010-08-27 2012-03-01 Qualcomm Incorporated Adaptive automatic detail diagnostic log collection in a wireless communication system
CN105188139A (en) * 2006-12-13 2015-12-23 高通股份有限公司 Method And Apparatus For Allocating Network Resources In A Group Communication System
CN106411984A (en) * 2015-08-03 2017-02-15 天脉聚源(北京)科技有限公司 Network load balancing method based on WeChat platform and system thereof
CN107241418A (en) * 2017-06-13 2017-10-10 腾讯科技(深圳)有限公司 A kind of load-balancing method, device, equipment and computer-readable recording medium
CN108846745A (en) * 2018-04-19 2018-11-20 深圳市网心科技有限公司 Block chain trading processing auxiliary system, block chain data processing system and method
CN111343235A (en) * 2020-02-06 2020-06-26 北京百度网讯科技有限公司 Data processing method and device, access system, electronic equipment and storage medium
CN112087365A (en) * 2019-06-14 2020-12-15 腾讯科技(深圳)有限公司 Instant messaging method and device applied to group, electronic equipment and storage medium
CN113055460A (en) * 2021-03-09 2021-06-29 百果园技术(新加坡)有限公司 Server selection method, device, equipment and medium
CN113407579A (en) * 2021-07-15 2021-09-17 北京百度网讯科技有限公司 Group query method and device, electronic equipment and readable storage medium
CN114500633A (en) * 2022-01-27 2022-05-13 北京百度网讯科技有限公司 Data forwarding method, related device, program product and data transmission system
CN114513465A (en) * 2022-02-15 2022-05-17 京东科技信息技术有限公司 Load balancing method, load balancing device, electronic device and storage medium
CN115334026A (en) * 2022-10-12 2022-11-11 北京百度网讯科技有限公司 Instant messaging processing method, device and equipment based on block chain and storage medium
CN115334025A (en) * 2022-10-12 2022-11-11 北京百度网讯科技有限公司 Decentralized instant messaging method, decentralized instant messaging device, decentralized instant messaging equipment and storage medium

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105188139A (en) * 2006-12-13 2015-12-23 高通股份有限公司 Method And Apparatus For Allocating Network Resources In A Group Communication System
CN103155628A (en) * 2010-08-27 2013-06-12 高通股份有限公司 Adaptive automatic detail diagnostic log collection in a wireless communication system
US20120051228A1 (en) * 2010-08-27 2012-03-01 Qualcomm Incorporated Adaptive automatic detail diagnostic log collection in a wireless communication system
CN106411984A (en) * 2015-08-03 2017-02-15 天脉聚源(北京)科技有限公司 Network load balancing method based on WeChat platform and system thereof
CN107241418A (en) * 2017-06-13 2017-10-10 腾讯科技(深圳)有限公司 A kind of load-balancing method, device, equipment and computer-readable recording medium
CN108846745A (en) * 2018-04-19 2018-11-20 深圳市网心科技有限公司 Block chain trading processing auxiliary system, block chain data processing system and method
CN112087365A (en) * 2019-06-14 2020-12-15 腾讯科技(深圳)有限公司 Instant messaging method and device applied to group, electronic equipment and storage medium
CN111343235A (en) * 2020-02-06 2020-06-26 北京百度网讯科技有限公司 Data processing method and device, access system, electronic equipment and storage medium
CN113055460A (en) * 2021-03-09 2021-06-29 百果园技术(新加坡)有限公司 Server selection method, device, equipment and medium
CN113407579A (en) * 2021-07-15 2021-09-17 北京百度网讯科技有限公司 Group query method and device, electronic equipment and readable storage medium
CN114500633A (en) * 2022-01-27 2022-05-13 北京百度网讯科技有限公司 Data forwarding method, related device, program product and data transmission system
CN114513465A (en) * 2022-02-15 2022-05-17 京东科技信息技术有限公司 Load balancing method, load balancing device, electronic device and storage medium
CN115334026A (en) * 2022-10-12 2022-11-11 北京百度网讯科技有限公司 Instant messaging processing method, device and equipment based on block chain and storage medium
CN115334025A (en) * 2022-10-12 2022-11-11 北京百度网讯科技有限公司 Decentralized instant messaging method, decentralized instant messaging device, decentralized instant messaging equipment and storage medium

Also Published As

Publication number Publication date
CN115589391B (en) 2023-03-21

Similar Documents

Publication Publication Date Title
CN110808922B (en) Message processing method and device, storage medium and electronic equipment
CN112437018B (en) Flow control method, device, equipment and storage medium of distributed cluster
CN112769897B (en) Synchronization method and device of edge calculation message, electronic equipment and storage medium
US9280795B2 (en) Dynamically creating a social networking check-in location
US9900837B2 (en) Multi-channel communications for sending push notifications to mobile devices
CN113794909A (en) Video streaming system, method, server, device, and storage medium
CN114911598A (en) Task scheduling method, device, equipment and storage medium
CN113037489B (en) Data processing method, device, equipment and storage medium
CN114547069A (en) Data query method and device, electronic equipment and storage medium
CN113961289A (en) Data processing method, device, equipment and storage medium
CN115589391B (en) Instant messaging processing method, device and equipment based on block chain and storage medium
CN110830306B (en) Method, device, storage medium and electronic equipment for determining influence of network user
CN113556394B (en) Cloud product network usage processing method, device, equipment, storage medium and product
CN113824689B (en) Edge computing network, data transmission method, device, equipment and storage medium
CN113691937B (en) Method for determining position information, cloud mobile phone and terminal equipment
CN114090247A (en) Method, device, equipment and storage medium for processing data
CN113935069A (en) Data verification method, device and equipment based on block chain and storage medium
CN114036250A (en) High-precision map task processing method and device, electronic equipment and medium
CN113778645A (en) Task scheduling method, device and equipment based on edge calculation and storage medium
CN107707383B (en) Put-through processing method and device, first network element and second network element
CN113347208B (en) Method and apparatus for determining network node
CN114286343B (en) Multi-way outbound system, risk identification method, equipment, medium and product
CN113691442B (en) Friend recommendation method, device, equipment, storage medium and program product
CN116827703A (en) Virtual interaction control method, device, equipment and storage medium
CN115801718A (en) Message processing method and device, electronic equipment and message processing system

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
GR01 Patent grant
GR01 Patent grant