Movatterモバイル変換


[0]ホーム

URL:


CN112769677B - Data synchronization method, apparatus, electronic device, storage medium, and program product - Google Patents

Data synchronization method, apparatus, electronic device, storage medium, and program product
Download PDF

Info

Publication number
CN112769677B
CN112769677BCN202011643438.3ACN202011643438ACN112769677BCN 112769677 BCN112769677 BCN 112769677BCN 202011643438 ACN202011643438 ACN 202011643438ACN 112769677 BCN112769677 BCN 112769677B
Authority
CN
China
Prior art keywords
session
target
data
list
packet
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
CN202011643438.3A
Other languages
Chinese (zh)
Other versions
CN112769677A (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 LtdfiledCriticalBeijing Dajia Internet Information Technology Co Ltd
Priority to CN202011643438.3ApriorityCriticalpatent/CN112769677B/en
Publication of CN112769677ApublicationCriticalpatent/CN112769677A/en
Application grantedgrantedCritical
Publication of CN112769677BpublicationCriticalpatent/CN112769677B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The present disclosure relates to a data synchronization method, apparatus, electronic device, computer readable storage medium and computer program product for instant messaging, wherein the method comprises: obtaining a session group corresponding to the target account, wherein the session group comprises a mapping list, the mapping list is used for pointing to a session list corresponding to the target account, and session data is stored in the session list; determining a target session group and a target mapping list in the session group; determining target session data in a session list according to the target mapping list; and transmitting the target session data to the terminal corresponding to the target account. According to the method and the device, the server determines the target session data to be synchronized in the session list according to the mapping list in the session group, and transmits the target session data to the terminal at one time, so that the multiple determination and multiple transmission of the session data to be synchronized are avoided, the system resource occupation amount of the server is reduced, the processing pressure of the server is reduced, and the network resources between the terminal and the server are saved.

Description

Data synchronization method, apparatus, electronic device, storage medium, and program product
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, an electronic device, a computer readable storage medium, and a computer program product for synchronizing data in instant messaging.
Background
Currently, instant messaging applications are used more and more frequently, and accordingly, a large amount of session data is generated.
In the related art, when a user logs in the same instant messaging account on different terminals, the later logged-in terminal requests synchronous session data from a server. If more session data to be synchronized are needed on the server, the server needs to transmit the session data to be synchronized to the terminal for multiple times, system resources of the server are occupied for multiple times, and processing pressure of the server is high. In addition, the terminal and the server can synchronize the session data to be synchronized after multiple interactions, so that the network consumption between the terminal and the server is increased.
Disclosure of Invention
The present disclosure provides a data synchronization method, apparatus, electronic device, computer readable storage medium and computer program product for instant messaging, so as to at least solve the problems in the related art that a server transmits session data to be synchronized to a terminal multiple times, resulting in multiple times of occupation of system resources of the server, higher processing pressure of the server, and consumption of network resources between the terminal and the server. The technical scheme of the present disclosure is as follows:
According to a first aspect of an embodiment of the present disclosure, there is provided a data synchronization method for instant messaging, applied to a server, the method including: obtaining a session group corresponding to a target account, wherein the session group comprises a mapping list, the mapping list is used for pointing to a session list corresponding to the target account, and session data is stored in the session list; determining a target session packet and a target mapping list in the target session packet in the session packet, wherein the target session packet is the changed session packet or the target session packet is all the session packets; determining target session data to be synchronized in the session list according to the target mapping list; and transmitting the target session data to a terminal corresponding to the target account.
Optionally, before the session grouping corresponding to the target account is acquired, the method further includes: and receiving a data request sent by the terminal, wherein the data request comprises the target account.
Optionally, the data request further includes a synchronization identifier, the session packet further includes an establishment time of the mapping list, and determining, in the session packet, a target session packet and a target mapping list in the target session packet includes: when the synchronization mark is a time mark, determining a changed session packet after the time indicated by the time mark as a target session packet; determining a mapping list which changes after the time in the target session group as a target mapping list; wherein the time identifier indicates a time when the terminal last received session data corresponding to the target account from the server.
Optionally, in the session packet, determining a target session packet and a target mapping list in the target session packet, further includes: when the synchronization identifier is a primary synchronization state identifier, all session groups corresponding to the target account are determined to be target session groups; determining all mapping lists in the target session group as target mapping lists; the primary synchronization state identifier indicates session data corresponding to the target account, which is received by the terminal from the server for the first time.
Optionally, the mapping list includes a storage address of session data in the session list, and the determining, according to the target mapping list, target session data to be synchronized in the session list includes: and determining target session data to be synchronized in the session list according to the storage address of the session data in the target mapping list.
Optionally, before the session grouping corresponding to the target account is acquired, the method further includes: and reading the target account locally at the server according to a preset period.
According to a second aspect of the embodiments of the present disclosure, there is provided a data synchronization device for instant messaging, applied to a server, the device including: a packet obtaining unit configured to obtain a session packet corresponding to a target account, where the session packet includes a mapping list, the mapping list is used to point to a session list corresponding to the target account, and session data is stored in the session list; a target determining unit configured to determine a target session packet and a target mapping list in the target session packet, wherein the target session packet is the changed session packet or the target session packet is all the session packets; a session determining unit configured to perform determining target session data to be synchronized in the session list according to the target mapping list; and the session transmission unit is configured to perform transmission of the target session data to the terminal corresponding to the target account.
Optionally, the apparatus further comprises: and the request receiving unit is configured to receive a data request sent by the terminal before the packet acquisition unit acquires the session packet corresponding to the target account, wherein the data request comprises the target account.
Optionally, the data request further includes a synchronization identifier, the session packet further includes an establishment time of the mapping list, and the target determining unit includes: a target session group determination unit configured to perform, when the synchronization identifier is a time identifier, determination of a changed session group located after a time indicated by the time identifier as a target session group; a target mapping list determining unit configured to perform determination of a mapping list, which changes after the time, in the target session group as a target mapping list; wherein the time identifier indicates a time when the terminal last received session data corresponding to the target account from the server.
Optionally, the target session packet determining unit is further configured to perform, when the synchronization identifier is a primary synchronization status identifier, all session packets corresponding to the target account are determined to be target session packets; the target mapping list determining unit is further configured to perform determining all mapping lists in the target session group as target mapping lists; the primary synchronization state identifier indicates session data corresponding to the target account, which is received by the terminal from the server for the first time.
Optionally, the mapping list includes a storage address of session data in the session list, and the session determining unit is configured to determine target session data to be synchronized in the session list according to the storage address of session data in the target mapping list.
Optionally, the apparatus further comprises: and the account reading unit is configured to perform reading of the target account according to a preset period on the server before the group acquisition unit acquires the session group corresponding to the target account.
According to a third aspect of embodiments of the present disclosure, there is provided an electronic device, comprising: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the method for data synchronization for instant messaging according to the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer readable storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform the data synchronization method of instant messaging as described in the first aspect.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product, including a computer program, which when executed by a processor implements the data synchronization method of instant messaging according to the first aspect.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
the data synchronization scheme of the instant messaging, provided by the embodiment of the disclosure, is applied to a server. And acquiring a session group corresponding to the target account, wherein the session group comprises a mapping list which is used for pointing to a session list corresponding to the target account, and session data is stored in the session list. And determining a target session packet and a target mapping list in the target session packet in the session packet, wherein the target session packet is a changed session packet or the target session packet is all session packets. And then, determining target session data to be synchronized in the session list according to the target mapping list, and further transmitting the target session data to a terminal corresponding to the target account.
The server of the embodiment of the disclosure stores session data and session packets of instant messaging. The session packet includes a mapping list for determining session data, and the mapping list may point to the session list in which the session data is stored. Therefore, the server may first obtain the session packet corresponding to the target account, and then determine which session packets include the mapping list required for the synchronization, that is, may determine the target session packet from the plurality of session packets, and determine the target mapping list from the plurality of mapping lists in the target session packet. After the target mapping list is determined, the target session data to be synchronized can be determined according to the session list pointed by the target mapping list, and finally, the target session data is transmitted to the terminal, so that the session data of instant messaging is completed, and the server is synchronized to the terminal. According to the method and the device for synchronizing the session data, the server determines the target session data to be synchronized in the session list according to the mapping list in the session group, and transmits the target session data to the terminal at one time, so that the server is prevented from determining and transmitting the session data to be synchronized for multiple times, the system resource occupation amount of the server is reduced, the processing pressure of the server is reduced, and network resources between the terminal and the server are saved.
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 disclosure and together with the description, serve to explain the principles of the disclosure and do not constitute an undue limitation on the disclosure.
Fig. 1 is a flowchart illustrating a data synchronization method of instant messaging according to an exemplary embodiment.
Fig. 2 is a schematic diagram illustrating multiple session packets at a time according to an example embodiment.
Fig. 3 is a schematic diagram of a plurality of session packets at another time shown in accordance with an exemplary embodiment.
Fig. 4 is a block diagram illustrating a data synchronization apparatus for instant messaging according to an exemplary embodiment.
Fig. 5 is a block diagram of an instant messaging data synchronization electronic device, according to an exemplary embodiment.
Fig. 6 is a block diagram of an electronic device for synchronizing data for instant messaging, according to an example embodiment.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
Fig. 1 is a flowchart illustrating a data synchronization method of instant messaging according to an exemplary embodiment, and the data synchronization method of instant messaging may be applied to a server as shown in fig. 1. The data synchronization method of the instant messaging can comprise the following steps.
In step S11, a session group corresponding to the target account is acquired.
In the embodiment of the disclosure, the target account may be an account of the instant messaging application, and the target session data to be synchronized determined later is session data generated by the target account interacting with other accounts by logging in the instant messaging application. The server stores therein session packets for a plurality of accounts. The session groups for each account may be distinguished using the account identification of the respective account. .
In an embodiment of the present disclosure, a session list of a plurality of accounts is also stored in the server, and session data of each account is stored in the session list of each account. The session group in the server contains a mapping list, which may point to a session list for each account.
In step S12, in the session group, a target session group and a target mapping list in the target session group are determined.
In the embodiment of the present disclosure, the session group corresponding to the target account may include a plurality of session groups, but not all the session groups corresponding to the target account are necessarily session groups required for the data synchronization, so that the target session group required for the data synchronization needs to be determined from the plurality of session groups corresponding to the target account. The target session packet is a changed session packet or the target session packet is an entire session packet. Similarly, the target session packet includes a plurality of mapping lists, and not all the mapping lists in the target session packet are necessarily mapping lists required by the data synchronization, so that the target mapping list required by the data synchronization needs to be determined in the target session packet.
In step S13, target session data to be synchronized in the session list is determined according to the target mapping list.
In the embodiment of the present disclosure, since the mapping list is used to point to the session list corresponding to the target account, the target mapping list required for the present data synchronization is the session data stored in the pointed session list, that is, the target session data required for the present data synchronization.
In step S14, the target session data is transmitted to the terminal corresponding to the target account.
In the embodiment of the disclosure, the server determines the target session data needed by the data synchronization from a large amount of session data stored this time, and then transmits the target session data to the terminal corresponding to the target account, thereby realizing the function of synchronizing the session data from the server to the terminal.
The data synchronization scheme of the instant messaging, provided by the embodiment of the disclosure, is applied to a server. And acquiring a session group corresponding to the target account, wherein the session group comprises a mapping list which is used for pointing to a session list corresponding to the target account, and session data is stored in the session list. In the session group, a target session group and a target mapping list in the target session group are determined. The target session packet is a changed session packet or the target session packet is an entire session packet. And then, determining target session data to be synchronized in the session list according to the target mapping list, and further transmitting the target session data to a terminal corresponding to the target account.
The server of the embodiment of the disclosure stores session data and session packets of instant messaging. The session packet includes a mapping list for determining session data, and the mapping list may point to the session list in which the session data is stored. Therefore, the server may first obtain the session packet corresponding to the target account, and then determine which session packets include the mapping list required for the synchronization, that is, may determine the target session packet from the plurality of session packets, and determine the target mapping list from the plurality of mapping lists in the target session packet. After the target mapping list is determined, the target session data to be synchronized can be determined according to the session list pointed by the target mapping list, and finally, the target session data is transmitted to the terminal, so that the session data of instant messaging is completed, and the server is synchronized to the terminal. According to the method and the device for synchronizing the session data, the server determines the target session data to be synchronized in the session list according to the mapping list in the session group, and transmits the target session data to the terminal at one time, so that the server is prevented from determining and transmitting the session data to be synchronized for multiple times, the system resource occupation amount of the server is reduced, the processing pressure of the server is reduced, and network resources between the terminal and the server are saved.
Embodiments of the present disclosure synchronize session data from a server to a terminal, and may include two data synchronization schemes, scheme one, in which the terminal sends a data request to the server, and the server transmits target session data to the terminal according to the data request. In the second scheme, the server actively transmits target session data to the terminal. Hereinafter, the above two schemes will be described in detail, respectively.
In an exemplary embodiment of the present disclosure, for the first scheme, before acquiring a session packet corresponding to a target account, a server receives a data request sent by a terminal, where the data request includes the target account. That is, the server may also receive the target account when it receives the data request from the terminal. The data request indicates that the terminal desires to synchronize session data from the server, and the target account in the data request indicates an account corresponding to the session data to be synchronized. The server of the embodiment of the disclosure receives the data request containing the target account from the terminal, can obtain the session group corresponding to the target account in a targeted manner, finally determines the target session data to be synchronized, and returns the target session data to the terminal. According to the embodiment of the disclosure, the data request is sent by the terminal, and the server receives the data request, so that the server can transmit target session data to the terminal in a targeted manner, and when the server receives the data request, the target session data to be synchronized is determined, thereby avoiding the frequent and active determination of the target session data to be synchronized of different accounts by the server, reducing the resource occupation of the server, and reducing the operation pressure of the server.
In one exemplary embodiment of the present disclosure, the data request sent by the terminal includes a synchronization identifier in addition to the target account. The session group also contains the time of establishment of the mapping list. When the synchronous mark is a time mark, the changed session group after the time indicated by the time mark is determined as the target session group, and the target session group is the changed session group at the moment; the mapping list which changes after the time in the target session group is determined as a target mapping list. The time identifier indicates the time when the terminal last receives session data corresponding to the target account from the server. If the terminal receives the session data corresponding to the target account from the server, the terminal takes the time of last receiving the session data corresponding to the target account from the server as a time identifier, carries the time identifier in a data request and sends the data request to the server. If the synchronization identifier in the data request is a time identifier, the server can determine that the terminal synchronizes the session data from the server, that is, the server does not need to determine all the session data corresponding to the target account as the target session data to be synchronized, and the server can determine the target session data from all the session data corresponding to the target account. In practical application, before determining the target session data, the server needs to determine the target session packet from a plurality of session packets, and then determine a target mapping list from a plurality of mapping lists of the target session packet. The time indicated by the time identifier is determined as the basis of the target session packet, and the changed session packet which is positioned after the time indicated by the time identifier is the target session packet. The basis for determining the target mapping list is also the time represented by the time identifier, and the mapping list which is changed after the time represented by the time identifier is the target mapping list. After receiving the data request with the synchronization identifier as the time identifier, the server of the embodiment of the disclosure may determine a session packet that changes after the time indicated by the time identifier as a target session packet, and determine a mapping list that changes after the time indicated by the time identifier as a target mapping list. That is, the server may select a part of the session packets from the plurality of session packets according to the time identifier as the target session packet, and select a part of the mapping list from the target session packets according to the time identifier as the target mapping list, so that the server selectively selects a part of the session packets and a part of the mapping list, thereby avoiding taking all of the session packets as the target session packets, avoiding taking all of the mapping list as the target mapping list, and improving the accuracy of the target session packets and the target mapping list.
In an exemplary embodiment of the present disclosure, when determining a target session packet and a target mapping list in the target session packet in a session packet, when a synchronization identifier is a primary synchronization status identifier, all session packets corresponding to a target account are determined to be target session packets, and at this time, all session packets are determined to be target session packets; determining all mapping lists in the target session group as target mapping lists; the primary synchronization state identifier indicates session data corresponding to the target account, which is received by the terminal from the server for the first time. If the terminal does not receive the session data corresponding to the target account from the server, the terminal carries a preset primary synchronization state identifier in the data request and sends the data request to the server. The server receives the data request, and if the synchronization identifier in the data request is the primary synchronization state identifier, the server can determine that the terminal has not synchronized session data from the server. After receiving the data request with the synchronization identifier being the primary synchronization state identifier, the server of the embodiment of the disclosure may determine all session packets corresponding to the target account as target session packets, and determine all mapping lists in the target session packets as target mapping lists. That is, the terminal does not synchronize session data from the server, the server takes all session groups corresponding to the target account as target session groups, and takes all mapping lists in the target session groups as target mapping lists, so that partial session groups are prevented from being taken as target session groups, partial mapping lists are prevented from being taken as target mapping lists, and accuracy of the target session groups and the target mapping lists is improved.
In one exemplary embodiment of the present disclosure, the mapping list contains the storage addresses of the session data in the session list. When the target session data to be synchronized in the session list is determined according to the target mapping list, the target session data to be synchronized is determined in the session list according to the storage address of the session data in the target mapping list. In practice, the mapping list may contain pointers that represent the memory addresses of the session data in the session list. Each session data has a unique memory address in the session list. The target mapping list is determined, that is, the storage address of the target session data to be synchronized in the session list is determined, and then the target session data can be read out from the session list according to the storage address. According to the embodiment of the disclosure, according to the storage address of the session data contained in the mapping list in the session list, which session data in the session list are target session data to be synchronized is determined. The server uses the storage address of the session data in the session list as key search information for determining the target session data to be synchronized, so that the target session data to be synchronized can be accurately determined.
In an exemplary embodiment of the present disclosure, for the second scheme, before the session packet corresponding to the target account is acquired, the target account is locally read at the server according to a preset period. The server can periodically read out target accounts from the accounts, then acquire session grouping data corresponding to the target accounts, determine target session grouping and a target mapping list in the target session grouping in the session grouping, determine target session data to be synchronized in the session list according to the target mapping list, and transmit the target session data to a terminal corresponding to the target accounts. The server of the embodiment of the disclosure can actively determine the target session data to be synchronized of the target account, and transmit the target session data to the terminal corresponding to the target account, so that the terminal is prevented from sending a data request to the server, the interaction times between the terminal and the server are reduced, and the network consumption between the terminal and the server is saved.
In one exemplary embodiment of the present disclosure, the changed session packet may include a session packet to add a mapping list and/or a session packet to delete a mapping list. As shown in fig. 2 and 3, fig. 2 shows a schematic diagram of a plurality of session packets at one time, and fig. 3 shows a schematic diagram of a plurality of session packets at another time. The time corresponding to fig. 2 is earlier than the time corresponding to fig. 3. Session basic information such as names, icons, etc. may be included in the session packet. The session packet may also contain a mapping list. However, the session packet does not include session data. In fig. 2, the first session packet contains mapping lists ref01-ref05. The second session packet contains the mapping list ref06-ref08. The third session packet contains the mapping list ref09, ref10. In fig. 3, a fourth session packet is added, and the first session packet and the second session packet are changed, and the third session packet is unchanged. Thus, when the changed session packet is determined as the target session packet, the fourth session packet, the first session packet, and the second session packet may be regarded as the target session packet. Specifically, the newly added fourth session packet contains the mapping lists ref11, ref12. The mapping list ref13 is added to the first session packet and the mapping list ref04 is reduced. The mapping list ref06 is reduced in the second session packet.
Fig. 4 is a block diagram illustrating a data synchronization apparatus for instant messaging according to an exemplary embodiment. The device is applied to a server, and can comprise the following units.
Apacket obtaining unit 41 configured to perform obtaining a session packet corresponding to a target account, where the session packet includes a mapping list, and the mapping list is used to point to a session list corresponding to the target account, and session data is stored in the session list;
atarget determining unit 42 configured to determine a target session packet and a target mapping list in the target session packet, among the session packets, the target session packet being the session packet that changes or the target session packet being all the session packets;
asession determining unit 43 configured to perform determining target session data to be synchronized in the session list according to the target mapping list;
and asession transmission unit 44 configured to perform transmission of the target session data to a terminal corresponding to the target account.
In an exemplary embodiment of the present disclosure, the apparatus further comprises:
and a request receiving unit configured to receive a data request sent by the terminal before thepacket obtaining unit 41 obtains a session packet corresponding to a target account, where the data request includes the target account.
In an exemplary embodiment of the present disclosure, the data request further includes a synchronization identifier, the session packet further includes a time of establishment of the mapping list, and thetarget determining unit 42 includes:
a target session group determination unit configured to perform, when the synchronization identifier is a time identifier, determination of a changed session group located after a time indicated by the time identifier as a target session group;
a target mapping list determining unit configured to perform determination of a mapping list, which changes after the time, in the target session group as a target mapping list;
wherein the time identifier indicates a time when the terminal last received session data corresponding to the target account from the server.
In an exemplary embodiment of the present disclosure, the target session packet determining unit is further configured to perform, when the synchronization identifier is a primary synchronization status identifier, all of the session packets corresponding to the target account are determined to be target session packets;
the target mapping list determining unit is further configured to perform determining all mapping lists in the target session group as target mapping lists;
The primary synchronization state identifier indicates session data corresponding to the target account, which is received by the terminal from the server for the first time.
In an exemplary embodiment of the present disclosure, the mapping list contains storage addresses of session data in the session list, and thesession determining unit 43 is configured to perform determining target session data to be synchronized in the session list according to the storage addresses of the session data in the target mapping list.
In an exemplary embodiment of the present disclosure, the apparatus further comprises:
and an account reading unit configured to perform reading of the target account at the server according to a preset period before thepacket obtaining unit 41 obtains the session packet corresponding to the target account.
The specific manner in which the individual units perform the operations in relation to the apparatus of the above embodiments has been described in detail in relation to the embodiments of the method and will not be described in detail here.
Fig. 5 is a block diagram of an instant messaging data synchronization electronic device, according to an exemplary embodiment. For example,electronic device 500 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like.
Referring to fig. 5, anelectronic device 500 may include one or more of the following components: aprocessing component 502, amemory 504, apower component 506, amultimedia component 508, anaudio component 510, an input/output (I/O)interface 512, asensor component 514, and acommunication component 516.
Theprocessing component 502 generally controls overall operation of theelectronic device 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Theprocessing component 502 can include one ormore processors 520 to execute instructions to perform all or part of the steps of the data synchronization method for instant messaging described above. Further, theprocessing component 502 can include one or more modules that facilitate interactions between theprocessing component 502 and other components. For example, theprocessing component 502 can include a multimedia module to facilitate interaction between themultimedia component 508 and theprocessing component 502.
Thememory 504 is configured to perform operations for storing various types of data to support theelectronic device 500. Examples of such data include instructions for any application or method operating on theelectronic device 500, contact data, phonebook data, messages, images, video, and so forth. Thememory 504 may be implemented by any type or combination of volatile or nonvolatile 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 disk.
Thepower supply component 506 provides power to the various components of theelectronic device 500. Thepower components 506 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for theelectronic device 500.
Themultimedia component 508 includes a screen between theelectronic device 500 and the user that provides an output interface. 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 input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, themultimedia component 508 includes a front-facing camera and/or a rear-facing camera. When theelectronic device 500 is in an operational mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
Theaudio component 510 is configured to perform outputting and/or inputting audio signals. For example, theaudio component 510 includes a Microphone (MIC) configured to perform receiving external audio signals when theelectronic 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 be further stored in thememory 504 or transmitted via thecommunication component 516. In some embodiments, theaudio component 510 further comprises a speaker for outputting audio signals.
The I/O interface 512 provides an interface between theprocessing component 502 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
Thesensor assembly 514 includes one or more sensors for providing status assessment of various aspects of theelectronic device 500. For example, thesensor assembly 514 may detect an on/off state of theelectronic device 500, a relative positioning of components such as a display and keypad of theelectronic device 500, a change in position of theelectronic device 500 or a component of theelectronic device 500, the presence or absence of a user's contact with theelectronic device 500, an orientation or acceleration/deceleration of theelectronic device 500, and a change in temperature of theelectronic device 500. Thesensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Thesensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, thesensor assembly 514 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
Thecommunication component 516 is configured to perform communications that facilitate wired or wireless communication between theelectronic device 500 and other devices. Theelectronic device 500 may access a wireless network based on a communication standard, such as WiFi, an operator network (e.g., 2G, 3G, 4G, or 5G), or a combination thereof. In one exemplary embodiment, thecommunication component 516 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, thecommunication 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, theelectronic 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, microcontrollers, microprocessors, or other electronic elements for performing the data synchronization method of instant messaging described above.
In an exemplary embodiment, a computer readable storage medium is also provided, such asmemory 504 including instructions executable byprocessor 520 ofelectronic device 500 to perform the data synchronization method of instant messaging described above. Alternatively, the computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
In an exemplary embodiment, a computer program product is also provided, the computer program product comprising a computer program executable by theprocessor 520 of theelectronic device 500 to perform the data synchronization method of instant messaging described above. Alternatively, the program code may be stored in a storage medium of theelectronic device 500, which may be a non-transitory computer readable storage medium, such as ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
Fig. 6 is a block diagram of an electronic device for synchronizing data for instant messaging, according to an example embodiment. For example, theelectronic device 600 may be provided as a server. Referring to fig. 6, theelectronic device 600 includes aprocessing component 622 that further includes one or more processors and memory resources represented by amemory 632 for storing instructions, such as application programs, executable by theprocessing component 622. The application programs stored inmemory 632 may include one or more modules each corresponding to a set of instructions. In addition, theprocessing component 622 is configured to execute instructions to perform the data synchronization method of instant messaging described above.
Theelectronic device 600 may also include apower component 626 configured to perform power management of theelectronic device 600, a wired orwireless network interface 650 configured to perform connecting theelectronic device 600 to a network, and an input/output (I/O)interface 658. Theelectronic device 600 may operate based on an operating system stored in thememory 632, such as Windows Server, mac OS XTM, unixTM, linuxTM, freeBSDTM, or the like.
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 adaptations, 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 is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (15)

CN202011643438.3A2020-12-302020-12-30Data synchronization method, apparatus, electronic device, storage medium, and program productActiveCN112769677B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202011643438.3ACN112769677B (en)2020-12-302020-12-30Data synchronization method, apparatus, electronic device, storage medium, and program product

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202011643438.3ACN112769677B (en)2020-12-302020-12-30Data synchronization method, apparatus, electronic device, storage medium, and program product

Publications (2)

Publication NumberPublication Date
CN112769677A CN112769677A (en)2021-05-07
CN112769677Btrue CN112769677B (en)2023-05-23

Family

ID=75698647

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202011643438.3AActiveCN112769677B (en)2020-12-302020-12-30Data synchronization method, apparatus, electronic device, storage medium, and program product

Country Status (1)

CountryLink
CN (1)CN112769677B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN115118735B (en)*2022-06-082023-12-01腾讯科技(深圳)有限公司Data synchronization method, group management method, device, equipment and storage medium
US20250016103A1 (en)*2023-07-032025-01-09Maxlinear, Inc.Session-based load balancing

Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104836719A (en)*2014-02-112015-08-12阿里巴巴集团控股有限公司 A method and system for synchronizing unread messages in instant messaging
CN105357105A (en)*2015-11-062016-02-24上海斐讯数据通信技术有限公司Conversation speed increase device and method

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20050198150A1 (en)*2004-01-292005-09-08Werner Carl E.Instant message mass update generated from website entry
CN103491055B (en)*2012-06-122018-08-07南京中兴软件有限责任公司A kind of method of the synchronizing information between multiple client, client and server
CN104022938A (en)*2013-02-282014-09-03腾讯科技(深圳)有限公司Message synchronization method, system, server and client end
CN109274510B (en)*2018-09-062022-01-21北京达佳互联信息技术有限公司Message processing method, device, client, server and storage medium
CN110138652B (en)*2019-05-212022-03-25北京达佳互联信息技术有限公司Session updating method and device and client device
CN110365739A (en)*2019-06-052019-10-22平安科技(深圳)有限公司Message synchronization method, apparatus, computer installation and computer readable storage medium
CN110401709A (en)*2019-07-232019-11-01北京云中融信网络科技有限公司Processing method, device and the storage medium of session in a kind of instant messaging application
CN110391974A (en)*2019-08-012019-10-29北京云中融信网络科技有限公司 A message synchronization method, server, terminal and system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104836719A (en)*2014-02-112015-08-12阿里巴巴集团控股有限公司 A method and system for synchronizing unread messages in instant messaging
CN105357105A (en)*2015-11-062016-02-24上海斐讯数据通信技术有限公司Conversation speed increase device and method

Also Published As

Publication numberPublication date
CN112769677A (en)2021-05-07

Similar Documents

PublicationPublication DateTitle
US20200366560A1 (en)Method and apparatus for configuring information, method and apparatus for determining time-frequency position, and base station
US11457437B2 (en)Method and apparatus for configuring information, base station and user equipment
CN104834665A (en)Target picture acquiring method and device
CN109274510B (en)Message processing method, device, client, server and storage medium
CN109388625B (en)Method and device for processing configuration file in multi-distributed file system
US12328706B2 (en)Methods and apparatuses for receiving paging signaling, and methods and apparatuses for transmitting paging signaling
CN107635074B (en)Method, apparatus and computer-readable storage medium for controlling alarm
CN112201236B (en)Terminal awakening method and device and computer readable storage medium
CN109218509B (en)Information screen display method and device and computer readable storage medium
US12126566B2 (en)System information reception method and apparatus, and system information transmission method and apparatus
CN105427161A (en)Monetary exchange rate exchange method and device
CN112291631A (en)Information acquisition method, device, terminal and storage medium
CN112769677B (en)Data synchronization method, apparatus, electronic device, storage medium, and program product
CN105242837B (en)Five application page acquisition methods and terminal
CN112051949A (en)Content sharing method and device and electronic equipment
CN111343481A (en)Data sharing method and device, electronic equipment and storage medium
CN110045893A (en)Querying method and device is broadcast live
CN109245992B (en)Request processing method and device, electronic equipment and storage medium
US11297626B2 (en)Information indication method and apparatus, base station and user equipment
CN109120499B (en)Information processing method and device
CN110908814A (en)Message processing method and device, electronic equipment and storage medium
CN110764847A (en)User information processing method and device, electronic equipment and storage medium
CN114430370B (en)Method, device, equipment and storage medium for determining network slice
CN106534254B (en)Method for acquiring metering data
CN113191792B (en)Task processing method, device, electronic equipment, storage medium and program product

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp