CN112134783A - Instant messaging system, method, device and medium based on user intimacy - Google Patents
Instant messaging system, method, device and medium based on user intimacy Download PDFInfo
- Publication number
- CN112134783A CN112134783A CN202010801346.7A CN202010801346A CN112134783A CN 112134783 A CN112134783 A CN 112134783A CN 202010801346 A CN202010801346 A CN 202010801346A CN 112134783 A CN112134783 A CN 112134783A
- Authority
- CN
- China
- Prior art keywords
- data
- instant messaging
- layer
- intimacy
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 24
- 230000000694 effects Effects 0.000 claims abstract description 33
- 238000004891 communication Methods 0.000 claims abstract description 32
- 238000012545 processing Methods 0.000 claims abstract description 5
- 230000006870 function Effects 0.000 claims description 18
- 238000004458 analytical method Methods 0.000 claims description 7
- 230000003993 interaction Effects 0.000 claims description 4
- 230000002452 interceptive effect Effects 0.000 abstract description 4
- 230000000875 corresponding effect Effects 0.000 description 6
- 230000006399 behavior Effects 0.000 description 5
- 230000008901 benefit Effects 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 239000000463 material Substances 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000012552 review Methods 0.000 description 2
- 230000003997 social interaction Effects 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/55—Push-based network services
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention provides an instant messaging system, a method, a device and a medium based on user intimacy, wherein the system comprises a service layer, a communication layer, a data layer, a presentation layer and a middleware; the service layer is used for acquiring user activity data and generating affinity values according to the user activity data; determining an intimacy degree according to the first preset value and the intimacy value; carrying out message pushing according to the intimacy level; the communication layer is used for storing a communication protocol and carrying out content distribution of message pushing and service load balancing according to the communication protocol; the system pushes contents according to the intimacy value, active data of a user can cover a plurality of interactive operations, the operations are digitalized and digitalized, and the data is used as a support for pushing, so that the pushed contents are more accurate and comprehensive; the communication layer of the system cooperates with the service layer to distribute content and balance load, and the system is still reliable and stable under the condition of high concurrency of service requests, and can be widely applied to the technical field of data processing.
Description
Technical Field
The invention belongs to the technical field of data processing, and particularly relates to an instant messaging system, method, device and medium based on user intimacy.
Background
Instant Messaging (IM) refers to a service capable of instantly sending and receiving internet messages and the like. Since 1998, particularly with the rapid development in recent years, the functions of instant messaging are becoming more and more abundant, and various functions such as e-mail, blog, music, television, game, and search are gradually integrated. Instant messaging is not a simple chat tool, and has been developed into a comprehensive information platform integrating communication, information, entertainment, search, e-commerce, office collaboration, enterprise customer service and the like.
On one hand, the existing integrated information platform integrates various complex and redundant protocols after integrating various social elements, such as functions of friend dynamics, praise, comment, preference recommendation and the like; when a large amount of flow needs to be consumed, more server resources are occupied due to the large information body; on the other hand, most of the existing integrated information platforms carry out pushing or recommendation of similar messages according to the access frequency analysis of users, and the pushed or recommended content is difficult to meet the requirements of the users in the absence of the support of user behaviors or interactive data.
Disclosure of Invention
In view of the above, to at least partially solve one of the above technical problems, embodiments of the present invention provide an instant messaging system that can better cope with high concurrency and has higher transmission efficiency based on user intimacy; meanwhile, the embodiment of the invention also provides a corresponding method, a device and a storage medium for instant messaging based on user intimacy.
In a first aspect, an embodiment of the present invention provides an instant messaging system based on user intimacy, where the system includes: the system comprises a service layer, a communication layer, a data layer, a presentation layer and a middleware; wherein:
the service layer is used for acquiring user activity data and generating affinity values according to the user activity data; determining an intimacy degree according to the first preset value and the intimacy value; carrying out message pushing according to the intimacy level;
the communication layer is used for storing a communication protocol and carrying out content distribution of message pushing and service load balancing according to the communication protocol;
the data layer is used for receiving and storing user activity data;
the display layer is used for visually displaying the message pushing and performing human-computer interaction;
and the middleware is used for providing extended function support for the service layer, the communication layer, the data layer and the presentation layer.
In some embodiments of the present invention, the service layer includes an affinity analysis subunit, an instant messaging subunit, a push subunit, and a transaction subunit; wherein
The intimacy analyzing subunit generates intimacy values according to the user activity data; determining an intimacy degree according to the first preset value and the intimacy value;
the instant messaging subunit is used for acquiring the user active data according to an instant messaging mode, and the instant messaging mode comprises at least one of the following modes: conversation chatting, message notification and offline message acquisition;
the pushing subunit is configured to perform message pushing according to the intimacy level, where the message pushing content includes: communities, videos, novels, and blogs;
and the transaction subunit is used for providing transaction service, wherein the transaction service carries the content pushed by the message.
In some embodiments of the invention, the data layer includes a distributed document database and a distributed cache; wherein:
the distributed cache is used for receiving and caching user active data;
and the distributed document database is used for constructing and storing the data document according to the user activity data.
In some embodiments of the invention, the service layer is further configured to: and carrying out asynchronous processing on the user active data and pushing the data to a distributed message queue.
In some embodiments of the present invention, the instant messaging subunit is further configured to perform the following steps:
constructing a long connection through a TCP/IP protocol, and acquiring user active data through the long connection;
serializing user active data, and compressing to obtain a data packet; and encrypting and transmitting the data packet to a data layer for storage.
In some embodiments of the present invention, the instant messaging subunit is further configured to perform the following steps:
acquiring an offline message, and storing the offline message into a data layer;
and when the receiving party is on line, the offline message is obtained again through the http request.
In some embodiments of the present invention, the instant messaging subunit is further configured to perform the following steps:
the instant communication subunit acquires the number of long-connection connections and the load condition of the server memory;
and automatically routing the instant communication service request according to the connection number and the load condition, and distributing the instant communication service request to the load in the server.
In a second aspect, the technical solution of the present invention further provides an instant messaging method based on user intimacy, acquiring user activity data, and generating an intimacy value according to the user activity data; determining an intimacy degree according to the first preset value and the intimacy value; carrying out message pushing according to the intimacy level;
carrying out visual display on the message pushing result;
wherein,
the user active data is obtained through an instant messaging mode, and the instant messaging mode comprises at least one of the following modes: conversation chatting, message notification and offline message acquisition;
the content of the message push comprises: communities, videos, novels, and blogs.
In a third aspect, the present invention further provides an instant messaging device based on user intimacy, comprising:
at least one processor;
at least one memory for storing at least one program;
when the at least one program is executed by the at least one processor, the at least one processor may execute the instant messaging method based on user affinity of the first aspect.
In a fourth aspect, the present invention also provides a storage medium, in which a processor-executable program is stored, and the processor-executable program is used for executing the method in the second aspect when being executed by a processor.
Advantages and benefits of the present invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention:
according to the instant messaging system based on the user intimacy degree, the service layer of the system determines the intimacy value according to the user activity data, content pushing is carried out according to the intimacy value, the user activity data can cover a plurality of interactive operations, the operations are subjected to datamation and numeralization, pushing is carried out by taking the data as a support, and the pushing content is more accurate and comprehensive; the communication layer of the system is cooperated with the service layer to distribute content and balance load, and the system is still reliable and stable under the condition of high concurrency of service requests.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of an instant messaging system architecture based on user affinity according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating an instant messaging method based on user affinity according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an instant messaging device based on user intimacy according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention. The step numbers in the following embodiments are provided only for convenience of illustration, the order between the steps is not limited at all, and the execution order of each step in the embodiments can be adapted according to the understanding of those skilled in the art.
In order to partially solve the problems in the technical background, the technical scheme provided by the embodiment of the invention adopts a distributed high-availability microservice architecture. In a first aspect, as shown in fig. 1, an embodiment of an instant messaging system based on user intimacy is provided in the embodiment, and the embodiment system includes a service layer, a communication layer, a data layer, a presentation layer and middleware; wherein:
the service layer in the system is mainly used for acquiring user activity data and generating affinity values according to the user activity data; determining an intimacy degree according to the first preset value and the intimacy value; carrying out message pushing according to the intimacy level; specifically, a service layer in the system is a core part, receives an instant messaging service request provided by a client through a communication protocol stored in the communication layer, calculates intimacy degree according to user active data carried in the request, divides intimacy grade according to a specific numerical value of the intimacy degree, and stores a record of corresponding active data into a distributed database in a data layer. Or when the service request of instant messaging received by the service layer is the stored active data content in the data layer, the data layer can query intimacy according to the active data of the user of the service request, determine the authority of the instant messaging service request according to the query result, and then schedule tasks within the authority range.
And the communication layer in the system is used for storing communication protocols, such as TCP/UDP, HTTP/HTTPS and the like, and performing content distribution and service load balancing of message pushing according to the communication protocols.
And the data layer in the system is used for receiving and storing user active data, including MYSQL, cache Redis and various file services.
The display layer in the system is used for visually displaying the message pushing and performing human-computer interaction; the ports of interaction may include Web pages, APP, PC ports, and Restful interfaces.
The middleware in the system is used for providing extended function support for a service layer, a communication layer, a data layer and a presentation layer; for example: service governance, search engines, message queues, and the like.
In some embodiments, the service layer divides the service into a plurality of micro services according to the function module, so that the system is more flexible, easier to expand and easier to maintain; for example, in one embodiment, the service layer is further divided into an affinity analysis subunit, an instant messaging subunit, a push subunit, and a transaction subunit. Wherein:
the intimacy analyzing subunit generates intimacy values according to the user activity data; determining an intimacy degree according to the first preset value and the intimacy value; the instant messaging subunit is used for acquiring the user active data according to an instant messaging mode, and the instant messaging mode comprises at least one of the following modes: conversation chatting, message notification and offline message acquisition; the pushing subunit is configured to perform message pushing according to the intimacy level, where the message pushing content includes: communities, videos, novels, and blogs; and the transaction subunit is used for providing the transaction service in the content pushed by the message.
Specifically, the instant messaging subunit in the service layer obtains the user activity data in an instant messaging manner, and in this embodiment, the source of the user activity data obtained in the instant messaging manner may be social interaction behaviors of users like a friend circle, a vermicelli circle and the like, such as contents of praise and comment; meanwhile, the user active data source can also be used for extracting user active data according to the chat content of a single person to a single person of the user or the chat content of a community and the like after the corresponding authority is obtained; or, also under permission, according to the content of the message notification received by the client of the user, or an offline message received during the user's offline. And transmitting the received message to an affinity analysis subunit, and calculating to obtain an affinity numerical value according to a built-in affinity algorithm, wherein the affinity algorithm utilizes a mathematical curve function and a function limit, the ratio of the integral to the affinity is 1 when the affinity is low, the ratio of the integral to the affinity is smaller and smaller with the increase of the affinity, and finally the affinity is infinitely close to the set affinity maximum value. When the specific intimacy value is obtained and according to the preset intimacy degree, then generating a record of the user activity data of the intimacy value, and storing the record in a data layer of the system. In addition, according to the intimacy level or numerical value of the user active data, the pushing subunit completes content pushing of the corresponding level authority; in an embodiment, the pushed subscription service includes content such as a vermicelli coil, a novel, a micro video and the like. The subscriber approves, reviews, shares and the like the related content, the publishing and subscribing service pushes messages to the content publisher and the content attendee through the instant messaging service, and meanwhile, the intimacy degree is calculated through the intimacy degree service, feedback is carried out, and updating iteration of the intimacy degree value is carried out. In some embodiments, the pushed subscription service may further include a value added service, that is, the latest activity, preference, and product information of a store are acquired according to user activity data such as the store concerned by the user through a transaction subunit in the system; a user places an order in a shop, and the system pushes order information and logistics information; the user can also feed back to a service layer of the system to perform update iteration of intimacy, for example, providing a message push service includes: the method comprises the steps of pushing preferential activities, pushing order information, pushing logistics information, pushing attention subscription and the like.
As an optional implementation manner, in some embodiments, the service layer may further implement asynchronous processing on the user activity data, and push the user activity data to the distributed message queue. Specifically, in the operation process of clicking, commenting, shopping, chatting, forwarding and the like, the system pushes the operated data to the distributed message queue, the affinity service analysis subunit receives the message of the message queue, converts the integral into affinity through a curve function, and updates the affinity to the database.
In some system embodiments, the data layer includes a distributed document database and a distributed cache; wherein: the distributed cache is used for receiving and caching user active data; in the embodiment, the local cache is expanded to the distributed cache, the center of gravity of the system is expanded from the difference of data transmission speeds among a CPU, a memory and the caches to the difference of data transmission speeds among a service system, a database and the distributed cache, management and control are realized by one server, a plurality of client nodes store data, and the data reading speed can be further improved. And the distributed document database in the data layer is used for constructing and storing the data document according to the user activity data. For example, in the embodiment, a master database and a slave database are adopted, hot backup of data can be used as a backup database, and after a server of the master database fails, the slave database can be switched to work continuously, so that data loss is avoided.
In some system embodiments, the instant messaging subunit of the service layer is further configured to perform the following steps: constructing a long connection through a TCP/IP protocol, and acquiring user active data through the long connection; serializing user active data, and compressing to obtain a data packet; encrypting and transmitting the data packet to a data layer for storage; specifically, in order to ensure that the instant messaging service is still reliable and stable in a large concurrency condition, the instant messaging subunit of the service layer adopts a TCP long connection mode for communication, the TCP long connection consumes less resources, and one instant messaging service can establish over millions of connections; meanwhile, a protobuf serialization data structure processing method is adopted to serialize and compress data, so that the transmitted data is smaller, the serialization speed is higher, and the active data of a user can be encrypted and stored in a database in a data layer more conveniently.
In some system embodiments, the instant messaging subunit is further configured to perform the following steps: acquiring an offline message, and storing the offline message into a data layer; when the receiving party is online, the offline message is obtained again through the http request; specifically, when the receiver is offline, the message is stored in the offline database, and when the receiver is online again, the message which is not received is obtained again through the http request.
In some system embodiments, the instant messaging subunit obtains the number of connections of the long connection and the load condition of the server memory; and automatically routing the instant communication service request according to the connection number and the load condition, and distributing the instant communication service request to the load in the server. Specifically, the instant messaging subunit records the connection number of the current service and the load conditions of the CPU and the memory of the current server, pushes data to the configuration center, and when a user logs in a client or reconnects the instant messaging service, the configuration center returns information of the service with the minimum load in the instant messaging service and returns the information to the client of the system.
In a second aspect, as shown in fig. 2, an embodiment of the method of instant messaging based on user intimacy includes the following steps:
acquiring user activity data, and generating a affinity value according to the user activity data; determining an intimacy degree according to the first preset value and the intimacy value; carrying out message pushing according to the intimacy level; carrying out visual display on the message pushing result;
the user active data is obtained through an instant messaging mode, and the instant messaging mode comprises at least one of the following modes: conversation chatting, message notification and offline message acquisition; the content of the message push comprises: communities, videos, novels, and blogs.
The process of the embodiment of the method is as follows: firstly, a system of a client acquires corresponding user rights, and acquires social interaction data of a user in a permitted right range, for example: the user likes, reviews, purchases, chats and forwards behavior data in the fan circle, and the system adopts a preset communication protocol, such as: the instant messaging subunit is connected to a system service layer through a TCP, affinity analysis of the behavior data is completed by the instant messaging subunit, and meanwhile, the grade of the affinity value is obtained according to grade division completed by a set threshold; according to the grade, a service layer of the system gives certain access authority to the user data, and stores the user data in a data layer so as to facilitate the inquiry of historical records; in addition, according to the level of intimacy, subscription service is published or pushed, for example, in the modes of a vermicelli ring, a novel, a micro video and the like, a shop concerned by a user is pushed, and the latest activity, preference and product information of the shop can be obtained; a user places an order in a shop, and the system pushes order information and logistics information; when the user finishes corresponding actions such as shopping, praise, comment and the like, the behavior data of the actions are fed back to a service layer of the system, and the affinity value is further updated and iterated.
In a third aspect, as shown in fig. 3, an embodiment of the present invention further provides an instant messaging device based on user intimacy, which includes at least one processor; at least one memory for storing at least one program; when the at least one program is executed by the at least one processor, the at least one processor is caused to execute the instant messaging method based on user affinity as in the second aspect.
Embodiments of the present invention further provide a storage medium having a program stored therein, where the program is executed by a processor as the method in the second aspect.
From the above specific implementation process, it can be concluded that the technical solution provided by the present invention has the following advantages or advantages compared to the prior art:
1. the system of the invention determines the affinity value according to the user active data, and pushes the content according to the affinity value, the user active data can cover a plurality of interactive operations, and the operations are digitalized and digitalized, and the pushing is carried out by taking the data as the support, so that the pushing content is more accurate and comprehensive.
2. The communication layer of the system is cooperated with the service layer to distribute content and balance load, and the system is still reliable and stable under the condition of high concurrency of service requests.
In alternative embodiments, the functions/acts noted in the block diagrams may occur out of the order noted in the operational illustrations. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality/acts involved. Furthermore, the embodiments presented and described in the flow charts of the present invention are provided by way of example in order to provide a more thorough understanding of the technology. The disclosed methods are not limited to the operations and logic flows presented herein. Alternative embodiments are contemplated in which the order of various operations is changed and in which sub-operations described as part of larger operations are performed independently.
Furthermore, although the present invention is described in the context of functional modules, it should be understood that, unless otherwise stated to the contrary, one or more of the functions and/or features may be integrated in a single physical device and/or software module, or one or more of the functions and/or features may be implemented in a separate physical device or software module. It will also be appreciated that a detailed discussion of the actual implementation of each module is not necessary for an understanding of the present invention. Rather, the actual implementation of the various functional modules in the apparatus disclosed herein will be understood within the ordinary skill of an engineer, given the nature, function, and internal relationship of the modules. Accordingly, those skilled in the art can, using ordinary skill, practice the invention as set forth in the claims without undue experimentation. It is also to be understood that the specific concepts disclosed are merely illustrative of and not intended to limit the scope of the invention, which is defined by the appended claims and their full scope of equivalents.
Wherein the functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the invention have been shown and described, it will be understood by those of ordinary skill in the art that: various changes, modifications, substitutions and alterations can be made to the embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.
While the preferred embodiments of the present invention have been illustrated and described, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (10)
1. The instant messaging system based on user intimacy is characterized by comprising a service layer, a communication layer, a data layer, a presentation layer and middleware; wherein,
the service layer is used for acquiring user activity data and generating affinity values according to the user activity data; determining an intimacy degree according to a first preset value and the intimacy value; carrying out message pushing according to the intimacy degree;
the communication layer is used for storing a communication protocol and carrying out content distribution of message pushing and service load balancing according to the communication protocol;
the data layer is used for receiving and storing the intimacy value and the intimacy level of the user active data;
the display layer is used for visually displaying the message pushing and performing human-computer interaction;
the middleware is used for providing extended function support for the service layer, the communication layer, the data layer and the display layer.
2. The instant messaging system based on user intimacy degree according to claim 1, wherein: the service layer comprises an affinity analysis subunit, an instant messaging subunit, a pushing subunit and a transaction subunit; wherein,
the affinity analyzing subunit is used for generating affinity values according to the user activity data; determining an intimacy degree according to a first preset value and the intimacy value;
the instant messaging subunit is configured to obtain the user activity data according to an instant messaging manner, where the instant messaging manner includes at least one of: conversation chatting, message notification and offline message acquisition;
the pushing subunit is configured to perform message pushing according to the intimacy degree, where the content of the message pushing includes: communities, videos, novels, and blogs;
and the transaction subunit is used for providing transaction service, and the transaction service carries the content pushed by the message.
3. The system of claim 1, wherein the data layer comprises a distributed document database and a distributed cache; wherein,
the distributed cache is used for receiving and caching the user active data;
and the distributed document database is used for constructing and storing data documents according to the user activity data.
4. The system of claim 1, wherein the service layer is further configured to:
and carrying out asynchronous processing on the user active data and pushing the user active data to a distributed message queue.
5. The system of claim 2, wherein the instant messaging subunit is further configured to perform the following steps:
constructing a long connection through a TCP/IP protocol, and acquiring the user active data through the long connection;
serializing the user active data, and compressing to obtain a data packet; and encrypting and transmitting the data packet to the data layer for storage.
6. The system of claim 5, wherein the instant messaging subunit is further configured to perform the following steps:
acquiring an offline message, and storing the offline message into the data layer;
and when the receiving party is on line, the offline message is obtained again through an http request.
7. The system according to claim 5 or 6, wherein the instant messaging subunit is further configured to perform the following steps:
acquiring the number of the long connections and the load condition of the server memory;
and automatically routing the instant messaging service request according to the connection number and the load condition, and distributing the instant messaging service request to the load in the server.
8. The instant messaging method based on user intimacy is characterized by comprising the following steps:
acquiring user activity data, and generating a affinity value according to the user activity data; determining an intimacy degree according to a first preset value and the intimacy value; carrying out message pushing according to the intimacy degree;
visually displaying the message pushing result;
wherein,
the user active data is obtained through an instant messaging mode, and the instant messaging mode comprises at least one of the following modes: conversation chatting, message notification and offline message acquisition;
the content pushed by the message comprises: communities, videos, novels, and blogs.
9. Instant messaging device based on user intimacy, characterized by, includes:
at least one processor;
at least one memory for storing at least one program;
when executed by the at least one processor, cause the at least one processor to perform the method of instant messaging based on user affinity of claim 8.
10. A storage medium having stored therein a program executable by a processor, characterized in that: the processor executable program when executed by a processor is for executing the method for instant messaging based on user affinity as claimed in claim 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010801346.7A CN112134783A (en) | 2020-08-11 | 2020-08-11 | Instant messaging system, method, device and medium based on user intimacy |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010801346.7A CN112134783A (en) | 2020-08-11 | 2020-08-11 | Instant messaging system, method, device and medium based on user intimacy |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112134783A true CN112134783A (en) | 2020-12-25 |
Family
ID=73850290
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010801346.7A Pending CN112134783A (en) | 2020-08-11 | 2020-08-11 | Instant messaging system, method, device and medium based on user intimacy |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112134783A (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6490611B1 (en) * | 1999-01-28 | 2002-12-03 | Mitsubishi Electric Research Laboratories, Inc. | User level scheduling of inter-communicating real-time tasks |
US20140173002A1 (en) * | 2012-12-14 | 2014-06-19 | Ariel Samuel Frederick | Techniques for a custom short message service center |
CN104811459A (en) * | 2014-01-23 | 2015-07-29 | 阿里巴巴集团控股有限公司 | Processing method, processing device and system for message services and message service system |
CN106411920A (en) * | 2016-10-25 | 2017-02-15 | 广东欧珀移动通信有限公司 | Data sharing method and device |
CN106453528A (en) * | 2016-09-27 | 2017-02-22 | 北京小米移动软件有限公司 | Method and device for pushing message |
CN107395767A (en) * | 2017-08-31 | 2017-11-24 | 北京奇虎科技有限公司 | Message push system and method based on long connection |
CN109067897A (en) * | 2018-08-24 | 2018-12-21 | 优视科技新加坡有限公司 | Information push method and its device, equipment/terminal/server, computer-readable medium |
CN111371892A (en) * | 2020-03-05 | 2020-07-03 | 中国银行股份有限公司 | High-concurrency distributed message pushing system and method |
-
2020
- 2020-08-11 CN CN202010801346.7A patent/CN112134783A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6490611B1 (en) * | 1999-01-28 | 2002-12-03 | Mitsubishi Electric Research Laboratories, Inc. | User level scheduling of inter-communicating real-time tasks |
US20140173002A1 (en) * | 2012-12-14 | 2014-06-19 | Ariel Samuel Frederick | Techniques for a custom short message service center |
CN104811459A (en) * | 2014-01-23 | 2015-07-29 | 阿里巴巴集团控股有限公司 | Processing method, processing device and system for message services and message service system |
CN106453528A (en) * | 2016-09-27 | 2017-02-22 | 北京小米移动软件有限公司 | Method and device for pushing message |
CN106411920A (en) * | 2016-10-25 | 2017-02-15 | 广东欧珀移动通信有限公司 | Data sharing method and device |
CN107395767A (en) * | 2017-08-31 | 2017-11-24 | 北京奇虎科技有限公司 | Message push system and method based on long connection |
CN109067897A (en) * | 2018-08-24 | 2018-12-21 | 优视科技新加坡有限公司 | Information push method and its device, equipment/terminal/server, computer-readable medium |
CN111371892A (en) * | 2020-03-05 | 2020-07-03 | 中国银行股份有限公司 | High-concurrency distributed message pushing system and method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9894049B2 (en) | Network aggregator | |
CN102158423B (en) | Upgrade via chat group keeping track of content item | |
JP5324567B2 (en) | Personalized application content for social networks | |
US8108345B2 (en) | Managing rich presence collections in a single request | |
EP2932666B1 (en) | Attachment collaboration within message environments | |
US20140365503A1 (en) | Estimation of closeness of topics based on graph analytics | |
US20050004995A1 (en) | Peer-to-peer active content sharing | |
US8468205B2 (en) | Method and apparatus for selective presence of messaging services | |
US20110167114A1 (en) | Automatically synchronizing new contacts across multiple social networking sites | |
US9246859B2 (en) | Peer-to-peer collaboration of publishers in a publish-subscription environment | |
US20080027996A1 (en) | Method and system for synchronizing data using a presence service | |
JP2011515735A (en) | Community-based targeted advertising | |
US9565266B2 (en) | Broker facilitated peer-to-peer publisher collaboration in a publish-subscription environment | |
US11245649B2 (en) | Personalized low latency communication | |
CN108924183B (en) | Method and device for processing information | |
CN104094299B (en) | The method and apparatus for retrieving availability information from the calendar of issue | |
CN1996846A (en) | A method and system for providing the differential service based on the attribute of the user group | |
CN114629866A (en) | Method for establishing real-time communication between multiple systems by random online customer service | |
CN111488344A (en) | User operation data uplink method and system based on service data block chain | |
CN112134783A (en) | Instant messaging system, method, device and medium based on user intimacy | |
EP3493486A1 (en) | Publishing message conversations to electronic forums | |
EP1644840A2 (en) | Peer-to-peer content sharing | |
Rajendran et al. | An efficient framework for agent-based quality driven web services discovery | |
US12038963B2 (en) | Determining types of digital components to provide | |
Kawasaki et al. | SOXCollaborator: A Bridge System to Realize Open-Data Commerce by Collaborating with SOXFire and Blockchain Marketplace |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201225 |