CN110138574B - Group management method, device, electronic equipment and readable storage medium - Google Patents

Group management method, device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN110138574B
CN110138574B CN201910234659.6A CN201910234659A CN110138574B CN 110138574 B CN110138574 B CN 110138574B CN 201910234659 A CN201910234659 A CN 201910234659A CN 110138574 B CN110138574 B CN 110138574B
Authority
CN
China
Prior art keywords
message
group
notification
group management
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910234659.6A
Other languages
Chinese (zh)
Other versions
CN110138574A (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 Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information 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 Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN201910234659.6A priority Critical patent/CN110138574B/en
Publication of CN110138574A publication Critical patent/CN110138574A/en
Application granted granted Critical
Publication of CN110138574B publication Critical patent/CN110138574B/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
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/185Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with management of multicast group membership
    • 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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present disclosure relates to a group management apparatus, a group management method, an electronic device, and a readable storage medium, wherein the group management apparatus includes: the group management module is configured to generate a first message and issue the first message to a first message queue after the execution of the group management request is completed; the group message module is configured to generate a second message containing a group notification under the condition of monitoring the first message, and issue the second message to a second message queue, wherein the group notification is a system message generated based on the first message; and the notification sending module is configured to send the group notification contained in the second message to the group member corresponding to the group notification under the condition that the second message is monitored. Therefore, the coupling degree and the structural complexity of the group management device are reduced, and the flexibility of the group management device is improved.

Description

Group management method, device, electronic equipment and readable storage medium
Technical Field
The present disclosure relates to the field of internet technologies, and in particular, to a group management method and apparatus, an electronic device, and a readable storage medium.
Background
With the development of mobile terminals, Instant Messenger (IM) system software has been a necessary application in each mobile terminal, and since each user may have various social attributes, the same user may establish and manage a plurality of chat communication groups during communication. Group management is a basic function in IM and has many functions, such as group establishment, group invitation, kicker, group quit, group resolution, etc.
Since group management involves many functions such as messages, group members, group sessions, etc., and the design of group management in the related art couples many other functions, such as creating sessions of users, sending system prompts, etc., thereby resulting in the coupling of group management functions, complex structure, the need to put these functions together for uniform maintenance, poor system maintenance operability, and poor system scalability.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a group management method, apparatus, electronic device, and readable storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided a group management apparatus, including:
the group management module is configured to generate a first message and issue the first message to a first message queue after the execution of the group management request is completed;
the group message module is configured to generate a second message containing a group notification under the condition of monitoring the first message, and issue the second message to a second message queue, wherein the group notification is a system message generated based on the first message;
and the notification sending module is configured to send the group notification contained in the second message to the group member corresponding to the group notification under the condition that the second message is monitored.
Optionally, the first message and the second message are both card messages, and the first message queue and the second message queue are both card message queues.
Optionally, the group management apparatus further includes:
the first theme module is used for acquiring the first message and recording the first message through a first theme;
and the second theme module is used for acquiring the second message and recording the second message through a second theme.
Optionally, the group management module includes:
the group management operation execution submodule is used for receiving a group management request and executing group management operation corresponding to the group management request;
and the first message sending submodule is used for generating the first message according to the group management operation and sending the first message to the first theme module.
Optionally, the group message module includes:
a group message generation submodule, configured to pull the first message from the first topic, and generate a group notification according to the first message;
and the group message transmission submodule is used for generating a second message according to the group notification and publishing the second message to the second theme module.
Optionally, the notification sending module is further configured to pull the second message from the second topic, and send the group notification in the second message to the group member corresponding to the group notification.
According to a second aspect of the embodiments of the present disclosure, there is provided a group management method, including:
after the group management request is executed, generating a first message and publishing the first message to a first message queue;
under the condition of monitoring the first message, generating a second message containing a group notification and publishing the second message to a second message queue, wherein the group notification is a system message generated based on the first message;
and under the condition of monitoring the second message, sending the group notification contained in the second message to the group member corresponding to the group notification.
Optionally, the first message and the second message are both card messages, and the first message queue and the second message queue are both card message queues.
Optionally, after the step of generating a first message and publishing the first message to a first message queue after the execution of the group management request is completed, the method further includes:
and acquiring the first message, and recording the first message through a first theme.
Optionally, after the step of generating a second message including a group notification and publishing the second message to a second message queue in the case of monitoring the first message, the step of generating a system message based on the first message, the group notification further includes:
and acquiring the second message, and recording the second message through a second theme.
Optionally, the step of generating a first message and publishing the first message to a first message queue after the group management request is executed includes:
receiving a group management request and executing a group management operation corresponding to the group management request;
and generating the first message according to the group management operation, and publishing the first message to the first theme.
Optionally, in a case that the first message is monitored, the step of generating a second message including a group notification and publishing the second message to a second message queue, where the group notification is a system message generated based on the first message, includes:
pulling the first message from the first topic and generating a group notification according to the first message;
and generating a second message according to the group notification, and publishing the second message to the second theme.
Optionally, the step of sending the group notification included in the second message to the group member corresponding to the group notification when the second message is monitored includes:
and pulling the second message from the second theme, and sending the group notification in the second message to the group member corresponding to the group notification.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
after the group management request is executed, generating a first message and publishing the first message to a first message queue;
under the condition of monitoring the first message, generating a second message containing a group notification and publishing the second message to a second message queue, wherein the group notification is a system message generated based on the first message;
and under the condition of monitoring the second message, sending the group notification contained in the second message to the group member corresponding to the group notification.
According to a fourth aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium having instructions which, when executed by a processor of an electronic device, enable the electronic device to perform a group management method, the method comprising:
after the group management request is executed, generating a first message and publishing the first message to a first message queue;
under the condition of monitoring the first message, generating a second message containing a group notification and publishing the second message to a second message queue, wherein the group notification is a system message generated based on the first message;
and under the condition of monitoring the second message, sending the group notification contained in the second message to the group member corresponding to the group notification.
According to a fifth aspect of embodiments of the present disclosure, there is provided an application/computer program product enabling an electronic device to perform a population management method when executed by a processor of the electronic device, the method comprising:
after the group management request is executed, generating a first message and publishing the first message to a first message queue;
under the condition of monitoring the first message, generating a second message containing a group notification and publishing the second message to a second message queue, wherein the group notification is a system message generated based on the first message;
and under the condition of monitoring the second message, sending the group notification contained in the second message to the group member corresponding to the group notification.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: in the embodiment of the present disclosure, functions of managing and sending messages, updating and creating a group session, and the like are separated, and a group management module, a group message module, and a notification sending module are respectively constructed to split the group management function into three modules, and various group management functions are realized through mutual communication among the three modules. Therefore, the coupling degree and the structural complexity of the group management device are reduced, and the flexibility of the group management device is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a block diagram illustrating a group management device according to an example embodiment.
Fig. 2 is a block diagram illustrating a group management device according to an example embodiment.
FIG. 3 is a flow diagram illustrating a method of group management according to an example embodiment.
FIG. 4 is a flow diagram illustrating a method of group management according to an example embodiment.
FIG. 5 is a block diagram illustrating an apparatus in accordance with an example embodiment.
FIG. 6 is a block diagram illustrating an apparatus in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a block diagram illustrating a group management device according to an example embodiment. Referring to fig. 1, the apparatus includes a group management module 110, a group message module 120, and a notification transmission module 130.
The group management module 110 is configured to generate a first message and issue the first message to the first message queue after the group management request is executed.
As mentioned above, the previous group management design couples many other functions, such as creating a session for a user, sending a system prompt, etc., resulting in a high coupling degree and a complex structure for the group management function. In the embodiment of the present disclosure, in order to reduce the coupling degree and the structural complexity of the group management device, the functions of managing and sending messages, updating and creating a group session, and the like are separated, and a group management module, a group message module, and a notification sending module are respectively constructed to split the group management function into three modules, and various group management functions are implemented through mutual communication among the three modules.
The system comprises a group management module, a first message queue and a second message queue, wherein the group management module is configured to generate a first message and issue the first message to the first message queue after the group management request is executed; the group message module is configured to generate a second message containing a group notification under the condition of monitoring the first message, and issue the second message to a second message queue, wherein the group notification is a system message generated based on the first message; and the notification sending module is configured to send the group notification contained in the second message to the group member corresponding to the group notification under the condition that the second message is monitored.
The advantages of this design are as follows:
1. the boundary is clear: the boundaries between the modules are clear, and the other side services cannot be executed mutually, such as the group message module only processes message related services such as storage of messages and is not responsible for content such as update of session (time domain, time interval for communication between a terminal user and an interactive system); 2. easy to expand: the interface definition of the group management module in the embodiment of the disclosure is clear, the hierarchical relationship is clear, and the horizontal and vertical expansion can be more convenient and efficient; 3. the response is quick: in the group management module disclosed in the embodiment of the present disclosure, the external interface may only process the most core logic, and all other logics are executed in an asynchronous manner or handed to each function module to be executed, so that the response speed of the group management function can be increased.
For the group management module, a currently received group management request may be executed, and after the execution of the group management request is completed, in order to be able to timely remind the corresponding group member of the current group management operation, it is necessary to generate a first message after the execution of the group management request is completed to remind the group message module that the corresponding group notification may be generated in a targeted manner.
The group management request may include any service-related operation request for the group, such as a create group request, an invite member to group request, a delete member from group request, an exit group request, a dissolve group request, and so on.
For example, if a request for creating a group is received by the access layer and transmitted to the group management module, the group management module may perform a corresponding operation for creating the group after receiving the request for creating the group, and generate the first message after the group creation is completed. Relevant content that requires the corresponding group message module to perform an operation, such as notification content included in the group notification that needs to be generated, a notification object of the group notification, and the like, may be included in the first message. For example, the first message generated for the create group operation may contain the notification content of the create group to each member in the currently created group.
A group message module 120 configured to generate a second message including a group notification and publish the second message to a second message queue if the first message is monitored, wherein the group notification is a system message generated based on the first message.
For the group message module, in the case of monitoring the first message generated by the group management module, the relevant content of the group notification that needs to be generated currently can be known through the first message, so the group notification can be generated according to the first message.
For example, for the first message corresponding to the request for creating a group, it can be known that a notification for creating a group needs to be generated to each member in the group by analyzing the first message, and then a group notification for creating a group can be generated based on the notification. Furthermore, the first message may further include group management related parameters, such as group ID (identity), ID of each group member corresponding to the corresponding group, type of message to be generated, and so on. Furthermore, when generating the group notification, the group management related parameters currently required by the first message may also be analyzed and acquired accordingly, which is not limited in this embodiment of the present invention.
The notification sending module 130 is configured to, in a case that the second message is monitored, send the group notification included in the second message to the group member corresponding to the group notification.
For the notification sending module, the content such as the message and the notification generated by the group message module may be pushed to the corresponding group member, and then, when the notification sending module monitors the second message, the notification sending module may perform a sending down operation on the data included in the second message. And if the second message contains the group notification, sending the group notification to each group member corresponding to the group notification.
The first message and the second message may be in any available message form, and formats of the first message and the second message may be the same or different, and the first message queue and the second message queue may also be in any available message queue, and formats of the first message queue and the second message queue may be the same or different, and may be preset according to requirements, which is not limited in the embodiment of the present disclosure. For example, a Rabbit MQ (Rabbit message queue), an Active MQ (Active message queue), a socket MQ (socket message queue), a Kafka message queue, or the like may be employed.
In the embodiment of the present disclosure, functions of managing and sending messages, updating and creating a group session, and the like are separated, and a group management module, a group message module, and a notification sending module are respectively constructed to split the group management function into three modules, and various group management functions are realized through mutual communication among the three modules. Therefore, the coupling degree and the structural complexity of the group management device are reduced, and the flexibility of the group management device is improved.
Fig. 2 is a block diagram illustrating a group management device according to an example embodiment. Referring to fig. 2, the apparatus includes a group management module 210, a group message module 220, a topic module 230, and a notification transmission module 240.
The group management module 210 is configured to generate a first message and issue the first message to a first message queue after the group management request is executed.
In an embodiment of the present disclosure, the group management module 210 may further include:
a group management operation execution sub-module 211, configured to receive a group management request and execute a group management operation corresponding to the group management request;
the first message sending sub-module 212 is configured to generate the first message according to the group management operation, and send the first message to the first topic module.
In the embodiment of the present disclosure, in order to record each of the first message and the second message in order, a topic module may be additionally provided, and the first message and the second message may be acquired and recorded by the topic module. Of course, after the first message and/or the second message are monitored and the corresponding operation is completed, the corresponding first message and/or the corresponding second message can be deleted, so that resource waste can be avoided.
Moreover, to avoid confusing the first message and the second message, the first message and the second message may also be recorded by the first topic module 220 and the second topic module 230, respectively. At this point, the first Topic module 220 may retrieve the first message and record the first message via the first Topic (Topic1), and the second Topic module 230 may retrieve the second message and record the second message via the second Topic (Topic 2).
Then, for the group management module, after performing the group management operation corresponding to the group management request, the first message may be generated according to the group management operation, and the first message may be sent to the first topic module 220. Specifically, the first message may be sent to the first topic for recording.
A group message module 240 configured to generate a second message including a group notification and publish the second message to a second message queue in case of monitoring the first message, wherein the group notification is a system message generated based on the first message.
Among them, Kafka (Kafka) is a distributed message queue system developed by Linkedin. The main initial objective of kafka development is to construct a data processing framework for processing massive logs, user behavior, website operation statistics and the like. In combination with the requirements of data mining, behavior analysis, operation monitoring, and the like, it is desirable to be able to meet the requirements of various real-time online and batch offline processing applications for low latency and batch throughput performance.
The Kafka message has the following characteristics: while providing high throughput for distribution and subscription; the method can be used for carrying out persistence operation, persisting the message to a disk and storing the message in a log form, so that the method can be used for batch consumption; the distributed system is easy to expand outwards; the state that the message is processed is maintained at the consumer side, not the server side, and the message can be automatically balanced when the message fails; and scenes of Online and offline are supported.
The Kafka cluster is composed of a plurality of Broker servers, each type of message is defined as topic, messages within the same topic are partitioned (partition) according to certain keys and algorithms and stored on different Brokers, and a producer (producer) and a consumer of the messages can produce/consume the topic on the plurality of Brokers. The consumer of Kafka obtains message data in the form of pull (pull). pruducer push message to kafka cluster, from which the connumer pulls messages. Wherein, the message and data generator issues a message to a topic of Kafka called producer, and the message and data consumer subscribes to the topic and processes the issued message called consumer.
Optionally, therefore, in this disclosed embodiment, the first message and the second message are both kaffa (kafka) messages, and the first message queue and the second message queue are both kaffa message queues.
In this embodiment of the present disclosure, the group message module 240 may further include:
a group message generating submodule 241, configured to pull the first message from the first topic, and generate a group notification according to the first message;
and the group message transmission sub-module 242 is configured to generate a second message according to the group notification, and publish the second message to the second topic module.
Accordingly, for the group message module, the first message may be pulled from the first topic, and by monitoring the consumers of the first topic, i.e., the group message module, if it pulls the first message from the first topic, a group notification may be generated from the first message. For example, for a first message generated based on the request for creating a group, a group notification for creating a group may be generated, and in order to send the group notification to a corresponding group member, a second message may be generated according to the group notification, and then sent to the second topic module, and specifically, the second message may be recorded to the second topic.
A notification sending module 250, configured to, in a case that the second message is monitored, send the group notification included in the second message to the group member corresponding to the group notification.
Optionally, in this embodiment of the present disclosure, the notification sending module 250 is further configured to pull the second message from the second topic, and send a group notification in the second message to a group member corresponding to the group notification.
Accordingly, a consumer of the second message, that is, the notification sending module, may also be monitored, and in a case where the notification sending module 250 pulls the second message from the second topic, the notification sending module 250 may send the group notification included in the second message to the corresponding respective group member.
For example, for the request to create a group as described above, a group notification to create a group may be sent to each group member in the corresponding created group.
Of course, in the embodiment of the present disclosure, the group members corresponding to different group management requests are not completely the same, and the push objects of the second message finally corresponding to specific group management requests are also different, which is not limited in the embodiment of the present disclosure.
In the embodiment of the present disclosure, functions of managing and sending messages, updating and creating a group session, and the like are separated, and a group management module, a group message module, and a notification sending module are respectively constructed to split the group management function into three modules, and various group management functions are realized through mutual communication among the three modules. Therefore, the coupling degree and the structural complexity of the group management device are reduced, and the flexibility of the group management device is improved.
Moreover, in the embodiment of the present disclosure, the first message may be recorded through the first theme, and the second message may be recorded through the second theme, so that the communication between the modules is realized through the card information queue, and the communication efficiency between the modules is further improved, thereby improving the flexibility of the group management device.
Fig. 3 is a flowchart illustrating a group management method according to an exemplary embodiment, where the group management method is used in an electronic device, as shown in fig. 3, and includes the following steps.
In step S310, after the group management request is completed, a first message is generated and issued to a first message queue.
In step S320, when the first message is monitored, a second message including a group notification is generated and issued to a second message queue, where the group notification is a system message generated based on the first message.
In step S330, when the second message is monitored, the group notification included in the second message is sent to the group member corresponding to the group notification.
In the embodiment of the present disclosure, functions of managing and sending messages, updating and creating a group session, and the like are separated, and a group management module, a group message module, and a notification sending module are respectively constructed to split the group management function into three modules, and various group management functions are realized through mutual communication among the three modules. Therefore, the coupling degree and the structural complexity of the group management device are reduced, and the flexibility of the group management device is improved.
Fig. 4 is a flowchart illustrating a group management method according to an exemplary embodiment, where the group management method is used in an electronic device, as shown in fig. 4, and includes the following steps.
Step S410, receiving a group management request, and performing a group management operation corresponding to the group management request.
Step S420, generating the first message according to the group management operation, and publishing the first message to the first topic.
Step S430, acquiring the first message, and recording the first message through a first theme.
Step S440, pulling the first message from the first topic, and generating a group notification according to the first message.
Step S450, generating a second message according to the group notification, and publishing the second message to the second subject.
Step S460, obtaining the second message, and recording the second message through a second theme.
Step S470, pulling the second message from the second topic, and sending the group notification in the second message to the group member corresponding to the group notification.
In the embodiment of the present disclosure, functions of managing and sending messages, updating and creating a group session, and the like are separated, and a group management module, a group message module, and a notification sending module are respectively constructed to split the group management function into three modules, and various group management functions are realized through mutual communication among the three modules. Therefore, the coupling degree and the structural complexity of the group management device are reduced, and the flexibility of the group management device is improved.
Moreover, in the embodiment of the present disclosure, the first message may be recorded through the first theme, and the second message may be recorded through the second theme, so that the communication between the modules is realized through the card information queue, and the communication efficiency between the modules is further improved, thereby improving the flexibility of the group management device.
With respect to the above-described embodiments, the details of the steps therein have been described in detail in the embodiments of the apparatus and will not be elaborated upon here.
FIG. 5 is a block diagram illustrating an electronic device 500 for group management according to an example embodiment. For example, the electronic device 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 5, electronic device 500 may include one or more of the following components: a processing component 502, a memory 504, a power component 506, a multimedia component 508, an audio component 510, an input/output (I/O) interface 512, a sensor component 514, and a communication component 516.
The processing component 502 generally controls overall operation of the electronic device 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 502 may include one or more processors 520 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 502 can include one or more modules that facilitate interaction between the processing component 502 and other components. For example, the processing component 502 can include a multimedia module to facilitate interaction between the multimedia component 508 and the processing component 502.
The memory 504 is configured to store various types of data to support operation at the device 500. Examples of such data include instructions for any application or method operating on the electronic device 500, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 504 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 506 provides power to the various components of the electronic device 500. The power components 506 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the electronic device 500.
The multimedia component 508 includes a screen that provides an output interface between the electronic device 500 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 500 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 510 is configured to output and/or input audio signals. For example, the audio component 510 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 500 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 504 or transmitted via the communication component 516. In some embodiments, audio component 510 further includes a speaker for outputting audio signals.
The I/O interface 512 provides an interface between the processing component 502 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the electronic device 500. For example, the sensor assembly 514 may detect an open/closed state of the device 500, the relative positioning of components, such as a display and keypad of the electronic device 500, the sensor assembly 514 may detect a change in the position of the electronic device 500 or a component of the electronic device 500, the presence or absence of user contact with the electronic device 500, orientation or acceleration/deceleration of the electronic device 500, and a change in the temperature of the electronic device 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 516 is configured to facilitate wired or wireless communication between the electronic device 500 and other devices. The electronic device 500 may access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 500 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 504 comprising instructions, executable by the processor 520 of the electronic device 500 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
FIG. 6 is a block diagram illustrating an electronic device 600 for group management according to an example embodiment. For example, the electronic device 600 may be provided as a server. Referring to fig. 6, electronic device 600 includes a processing component 622 that further includes one or more processors, and memory resources, represented by memory 632, for storing instructions, such as applications, that are executable by processing component 622. The application programs stored in memory 632 may include one or more modules that each correspond to a set of instructions. Further, the processing component 622 is configured to execute instructions to perform the group management methods described above.
The electronic device 600 may also include a power component 626 configured to perform power management for the electronic device 600, a wired or wireless network interface 650 configured to connect the electronic device 600 to a network, and an input/output (I/O) interface 658. The electronic device 600 may operate based on an operating system stored in the memory 632, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
It should be noted that the execution subject of the present application may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.; or may be a server. When the electronic device is a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, etc., as shown in fig. 5. When the electronic device is a server, as shown in fig. 6.
An embodiment of the present application further provides an electronic device, including: a processor; a memory for storing processor-executable instructions;
wherein the processor is configured to:
after the group management request is executed, generating a first message and publishing the first message to a first message queue;
under the condition of monitoring the first message, generating a second message containing a group notification and publishing the second message to a second message queue, wherein the group notification is a system message generated based on the first message;
and under the condition of monitoring the second message, sending the group notification contained in the second message to the group member corresponding to the group notification.
Also provided in an embodiment of the present application is a non-transitory computer-readable storage medium, where instructions of the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform any one of the above population management methods.
An application/computer program product is also disclosed, wherein instructions that, when executed by a processor of an electronic device, enable the electronic device to perform any of the population management methods described above.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (14)

1. A group management apparatus, comprising:
the group management module is configured to generate a first message and issue the first message to a first message queue after the execution of the group management request is completed; wherein the first message comprises a group management related parameter; the group management related parameters comprise group identity marks, group member identity marks and message types needing to be generated; the group management request is a group-directed business operation request;
the group message module is configured to generate a second message containing a group notification under the condition of monitoring the first message, and issue the second message to a second message queue, wherein the group notification is a system message generated based on the first message;
and the notification sending module is configured to send the group notification contained in the second message to the group member corresponding to the group notification under the condition that the second message is monitored.
2. The apparatus of claim 1, wherein the first message and the second message are both kaffman messages and wherein the first message queue and the second message queue are both kaffman message queues.
3. The apparatus of claim 2, further comprising:
the first theme module is used for acquiring the first message and recording the first message through a first theme;
and the second theme module is used for acquiring the second message and recording the second message through a second theme.
4. The apparatus of claim 3, wherein the group management module comprises:
the group management operation execution submodule is used for receiving a group management request and executing group management operation corresponding to the group management request;
and the first message sending submodule is used for generating the first message according to the group management operation and sending the first message to the first theme module.
5. The apparatus of claim 3, wherein the group message module comprises:
a group message generation submodule, configured to pull the first message from the first topic, and generate a group notification according to the first message;
and the group message transmission submodule is used for generating a second message according to the group notification and publishing the second message to the second theme module.
6. The apparatus of claim 5, wherein the notification sending module is further configured to pull the second message from the second topic, and send a group notification in the second message to a group member corresponding to the group notification.
7. A group management method, comprising:
after the group management request is executed, generating a first message and publishing the first message to a first message queue; wherein the first message comprises a group management related parameter; the group management related parameters comprise group identity marks, group member identity marks and message types needing to be generated; the group management request is a group-directed business operation request;
under the condition of monitoring the first message, generating a second message containing a group notification and publishing the second message to a second message queue, wherein the group notification is a system message generated based on the first message;
and under the condition of monitoring the second message, sending the group notification contained in the second message to the group member corresponding to the group notification.
8. The method of claim 7, wherein the first message and the second message are both Kaffian messages and wherein the first message queue and the second message queue are both Kaffian message queues.
9. The method of claim 8, further comprising, after the step of generating and posting a first message to a first message queue after the completion of the group management request execution:
acquiring the first message, and recording the first message through a first theme;
after the step of generating a second message including a group notification and publishing the second message to a second message queue in the case of monitoring the first message, the step of generating a system message based on the first message, the group notification further includes:
and acquiring the second message, and recording the second message through a second theme.
10. The method of claim 9, wherein the step of generating and issuing the first message to the first message queue after the group management request is completed comprises:
receiving a group management request and executing a group management operation corresponding to the group management request;
and generating the first message according to the group management operation, and publishing the first message to the first theme.
11. The method of claim 10, wherein the step of generating a second message containing a group notification and publishing the second message to a second message queue if the first message is monitored, wherein the group notification is a system message generated based on the first message comprises:
pulling the first message from the first topic and generating a group notification according to the first message;
and generating a second message according to the group notification, and publishing the second message to the second theme.
12. The method according to claim 11, wherein the step of sending the group notification included in the second message to the group member corresponding to the group notification when monitoring the second message comprises:
and pulling the second message from the second theme, and sending the group notification in the second message to the group member corresponding to the group notification.
13. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the group management method of any one of claims 7-12.
14. A non-transitory computer readable storage medium, instructions in which, when executed by a processor of an electronic device, enable the electronic device to perform the group management method of any one of claims 7-12.
CN201910234659.6A 2019-03-26 2019-03-26 Group management method, device, electronic equipment and readable storage medium Active CN110138574B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910234659.6A CN110138574B (en) 2019-03-26 2019-03-26 Group management method, device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910234659.6A CN110138574B (en) 2019-03-26 2019-03-26 Group management method, device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN110138574A CN110138574A (en) 2019-08-16
CN110138574B true CN110138574B (en) 2021-10-26

Family

ID=67568937

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910234659.6A Active CN110138574B (en) 2019-03-26 2019-03-26 Group management method, device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN110138574B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011107002A1 (en) * 2010-03-03 2011-09-09 腾讯科技(深圳)有限公司 Method, server end, client and system for network platform interaction
CN102970353A (en) * 2012-11-08 2013-03-13 大唐软件技术股份有限公司 Method and system for business data processing
CN104754036A (en) * 2015-03-06 2015-07-01 合一信息技术(北京)有限公司 Message processing system and processing method based on kafka
CN105099724A (en) * 2015-06-29 2015-11-25 小米科技有限责任公司 Group creation method and device
CN107332705A (en) * 2017-07-04 2017-11-07 曙光信息产业(北京)有限公司 A kind of event processing apparatus
CN107783849A (en) * 2017-09-27 2018-03-09 武汉斗鱼网络科技有限公司 Event-handling method and client

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011107002A1 (en) * 2010-03-03 2011-09-09 腾讯科技(深圳)有限公司 Method, server end, client and system for network platform interaction
CN102970353A (en) * 2012-11-08 2013-03-13 大唐软件技术股份有限公司 Method and system for business data processing
CN104754036A (en) * 2015-03-06 2015-07-01 合一信息技术(北京)有限公司 Message processing system and processing method based on kafka
CN105099724A (en) * 2015-06-29 2015-11-25 小米科技有限责任公司 Group creation method and device
CN107332705A (en) * 2017-07-04 2017-11-07 曙光信息产业(北京)有限公司 A kind of event processing apparatus
CN107783849A (en) * 2017-09-27 2018-03-09 武汉斗鱼网络科技有限公司 Event-handling method and client

Also Published As

Publication number Publication date
CN110138574A (en) 2019-08-16

Similar Documents

Publication Publication Date Title
US10873769B2 (en) Live broadcasting method, method for presenting live broadcasting data stream, and terminal
CN105843615B (en) Notification message processing method and device
US11227598B2 (en) Method for controlling terminal by voice, terminal, server and storage medium
CN112039929B (en) File editing method and device and electronic equipment
CN107526591B (en) Method and device for switching types of live broadcast rooms
CN112367553B (en) Message interaction method and device, electronic equipment and storage medium
CN110737844B (en) Data recommendation method and device, terminal equipment and storage medium
CN109302341B (en) Instant messaging method, instant messaging device, electronic equipment and storage medium
CN109446204B (en) Data storage method and device for instant messaging, electronic equipment and medium
CN111259246A (en) Information pushing method and device, electronic equipment and storage medium
WO2023143299A1 (en) Message display method and apparatus, device, and storage medium
CN112312225B (en) Information display method and device, electronic equipment and readable medium
WO2023001066A1 (en) Message sending method and apparatus, and device and storage medium
CN105872573A (en) Video playing method and apparatus
CN111338971B (en) Application testing method and device, electronic equipment and storage medium
CN113573092A (en) Live broadcast data processing method and device, electronic equipment and storage medium
CN110620956A (en) Live broadcast virtual resource notification method and device, electronic equipment and storage medium
CN109819341B (en) Video playing method and device, computing equipment and storage medium
CN113901353A (en) Information display method, device and system, electronic equipment and server
CN110138574B (en) Group management method, device, electronic equipment and readable storage medium
CN110704151A (en) Information processing method and device and electronic equipment
CN110290050A (en) Message treatment method, device, electronic equipment and storage medium
CN114666643A (en) Information display method and device, electronic equipment and storage medium
CN114567790A (en) Information display method and device, electronic equipment and storage medium
WO2021103742A1 (en) Resource management method and apparatus, and electronic device

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