CN109032451A - Picture library operation content synchronization system and method - Google Patents

Picture library operation content synchronization system and method Download PDF

Info

Publication number
CN109032451A
CN109032451A CN201810924645.2A CN201810924645A CN109032451A CN 109032451 A CN109032451 A CN 109032451A CN 201810924645 A CN201810924645 A CN 201810924645A CN 109032451 A CN109032451 A CN 109032451A
Authority
CN
China
Prior art keywords
action
action type
event
terminal
action event
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.)
Withdrawn
Application number
CN201810924645.2A
Other languages
Chinese (zh)
Inventor
时永欣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dami Technology Co Ltd
Original Assignee
Beijing Dami 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 Dami Technology Co Ltd filed Critical Beijing Dami Technology Co Ltd
Priority to CN201810924645.2A priority Critical patent/CN109032451A/en
Publication of CN109032451A publication Critical patent/CN109032451A/en
Priority to PCT/CN2019/082702 priority patent/WO2020034652A1/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Abstract

The present invention relates to multimedia technology fields, in order to solve the problems, such as service performance loss in picture library operation, the invention discloses a kind of picture library operation content synchronization system and methods, wherein picture library operation content synchronization system includes first terminal, second terminal and server, first terminal, the action event generated based on the operation for acting on its picture library interface is sent, the action event includes operation information and action type;Server receives the action event, is broadcasted according to the action type the operation information or stores and broadcast to the operation information;Second terminal, the operation information of synchronized broadcast.The present invention greatly improves high concurrent write-in bring service performance loss problem.

Description

Picture library operation content synchronization system and method
Technical field
The present invention relates to multimedia technology field, in particular to a kind of picture library operation content synchronization system and method.
Background technique
The present invention belongs to the relevant technologies related to the present invention for the description of background technique, be only used for explanation and just In understanding summary of the invention of the invention, it should not be construed as applicant and be specifically identified to or estimate applicant being considered of the invention for the first time The prior art for the applying date filed an application.
With the development of network, provided a great convenience for meeting and give lessons etc..Meeting or equal activities of giving lessons may require that Interaction, therefore any one end carries out operation and to synchronize.But during existing operation synchronizes, such as the correlation of gallery picture library Operation can bring service performance to be lost since database manipulation is written in high concurrent.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of picture library operation content synchronization system, main purpose is to reduce height simultaneously The problem of hair write-in is brought.
In order to achieve the above objectives, present invention generally provides following technical solutions:
In a first aspect, the embodiment of the invention provides a kind of picture library operation content synchronization system, including first terminal, second Terminal and server, wherein
First terminal, the operation thing generated for sending the operation based on the picture library interface for acting on the first terminal Part, the action event include operation information and action type;
Server broadcasts the operation information according to the action type or for receiving the action event to institute State operation information storage and broadcast;
Second terminal, the operation information for synchronized broadcast.
Second aspect, the embodiment of the invention provides a kind of picture library operation content synchronous method, include the following steps:
First terminal sends the action event generated based on the operation for acting on its picture library interface, and the action event includes Operation information and action type;
Server receives the action event, is broadcasted according to the action type the operation information or to the operation Message storage and broadcast;
The operation information of second terminal synchronized broadcast.
The third aspect, the embodiment of the invention provides a kind of picture library operation content synchronous terminal, the terminal includes:
Monitoring unit, for monitoring the operation for acting on the picture library interface of the terminal;
Response unit, for responding the operation;
Action event generation unit, for based on the operation generation action event is responded, the action event to include behaviour Make message and action type;
Transmission unit, for sending the action event, in order to wide to the operation information according to the action type It broadcasts or the operation information is stored and is broadcasted.
Fourth aspect, the embodiment of the invention provides a kind of picture library operation content synchronous method, include the following steps:
Monitoring acts on the operation at the picture library interface of terminal;
Respond the operation;
Action event is generated based on the operation is responded, the action event includes operation information and action type;
The action event is sent, in order to broadcast according to the action type the operation information or to the operation Message storage and broadcast.
5th aspect, the embodiment of the invention provides a kind of picture library operation content sync server, the server includes:
Receiving unit, the action event generated for receiving the operation based on the picture library interface for acting on terminal, operates thing Part includes operation information and action type;
Action type judging unit, for judging action type;
Radio unit is used for broadcast operation message, to synchronize;
Storage unit, for storing corresponding operation message when action type is the second action type.
6th aspect, the embodiment of the invention provides a kind of picture library operation content synchronous method, include the following steps:
The action event that the operation based on the picture library interface for acting on terminal generates is received, the action event includes operation Message and action type;
The operation information is broadcasted according to the action type or the operation information is stored and is broadcasted.
7th aspect, the embodiment of the invention provides a kind of computer readable storage mediums, are stored thereon with computer journey The step of sequence, which realizes above-mentioned method when being executed by processor.
Eighth aspect the embodiment of the invention provides a kind of computer equipment, including memory, processor and is stored in On reservoir and the computer program that can run on a processor, the processor realize above-mentioned method when executing described program Step.
Compared with prior art, the beneficial effect of the embodiment of the present invention is:
Picture library operation content synchronization system provided in an embodiment of the present invention is by classifying to operation, according to different behaviour Make type and different disposal carried out to corresponding operation message, such as certain action types, only operation information is broadcasted and It is not written into database, and for other some action types, operation information write-in database simultaneously broadcasts the message, to reduce The pressure of server is greatly improved due to high concurrent write-in data bring service performance loss.
Detailed description of the invention
Fig. 1 shows the schematic diagram of an embodiment of picture library operation content synchronization system of the present invention.
Fig. 2 shows the schematic diagrames of an embodiment of picture library operation content synchronous terminal of the present invention.
Fig. 3 shows the flow chart of an embodiment of picture library operation content synchronous terminal of the present invention.
Fig. 4 shows the flow chart of an embodiment of picture library operation content synchronous method of the present invention.
Fig. 5 shows the flow chart of an embodiment of picture library operation content sync server of the present invention.
Specific embodiment
Present invention is further described in detail combined with specific embodiments below, but not as a limitation of the invention.? In following the description, what different " embodiment " or " embodiment " referred to is not necessarily the same embodiment.In addition, one or more are implemented Special characteristic, structure or feature in example can be combined by any suitable form.
The embodiment of the invention provides a kind of picture library operation content synchronization system, Fig. 1 is shown in picture library operation of the present invention Hold the schematic diagram of an embodiment of synchronization system.Referring to Fig. 1, the picture library operation content synchronization system of the embodiment of the present invention includes the One terminal 10, second terminal 20 and server 30, wherein
First terminal 10, the operation thing generated for sending the operation based on the picture library interface for acting on first terminal 10 Part, action event include operation information and action type;
Server 30 is broadcasted operation information according to action type or is stored to operation information for receiving action event And broadcast;
Second terminal 20, the operation information for synchronized broadcast.
Picture library operation content synchronization system provided in an embodiment of the present invention is by classifying to operation, according to different behaviour Make type and different disposal carried out to corresponding operation message, such as certain action types, only operation information is broadcasted and It is not written into database, to other some action types, operation information write-in database simultaneously broadcasts the message, to reduce clothes The pressure of business device is greatly improved due to high concurrent write-in data bring service performance loss.Figure in the embodiment of the present invention Library for example can be gallery picture library.
In the embodiment of the present invention, action type can be divided into two kinds, for example, action type includes the first action type and the Two action types, server 30 broadcast the operation information of the action event of the first action type, the storage of server 30 and broadcast the The operation information of the action event of two action types.A part of division of operations is the first action type by the embodiment of the present invention, right The operation information of the type is only broadcasted and be may be not present, and is reduced data write-in, is reduced server stress, greatly improve high concurrent The loss of bring service performance is written.
In the embodiment of the present invention, which can be operated according to the actual situation and be divided into the first action type, which operation is drawn Enter the second action type.For example, the first action type includes the process operation of action event;Second action type includes operation thing The results operation of part.The data that operating process generates only can store result data without storage.Such as When dragging file, final position is only recorded, and the process from home position to final position need not store, thus can be with Reduce data write-in.Second action type can also include delete operation (del), clear screen operation (clear) etc..
In the embodiment of the present invention, specific operation without limitation, can be synchronized according to there is no data to be written.Wherein In one embodiment, operation may include page turning, creation, movement, stop mobile, deletion and any one hovered, wherein turning over Page, creation, movement and hovering are the first action type, and stopping mobile and deletion is the second action type.
In the embodiment, picture library concrete operations are divided into different operation type, according to different operation type broadcast or storage And broadcast operation message synchronizes.Such as when dragging picture, only stop mobile operation (drop operation) just to picture The final position that shows has an impact, therefore will stop mobile operation setting as Second Type operation, and database is written.It is right In the process (moving operation) of dragging, need to only synchronize, it is not necessary that database (only broadcasting, be not written into) is written.Aforesaid operations Specific movement is not construed as limiting.For example, " deletion " can be the delete button clicked on interface, it is also possible to operate triggering by other " deletion ".In one embodiment, when acting on the operation at the picture library interface of first terminal to stop mobile, first terminal detection By the coordinate of mobile element, if being located within the scope of dustbin by the coordinate of mobile element, the element is deleted.Lead in the present embodiment It crosses detection and judgement, triggers " deletion ", when dragging file, detect by the final position of mobile element, i.e., when stopping mobile, If being located within the scope of dustbin by the coordinate of mobile element, which is deleted.Such as when hovering (hover) operation, Ke Yidong The picture display element only needs broadcast to synchronize at this time, without database is written.
Certain operations are that lasting (such as mobile etc.) or frequency are higher (such as frequently click etc.), are just needed at this time not Stealpass transmission of data, influences service performance.In one embodiment of the present of invention, operating is when moving, and first terminal sends adjacent two The time interval of a action event is greater than given threshold.The present embodiment setting operation event transmission interval threshold value, only works as previous existence At the time interval of action event and the action event of upper one transmission be greater than the threshold value of setting when, just transmission is currently generated The problem of action event reduces action event and sends frequency, realize throttling, further avoids service performance loss.Threshold value Setting should consider synchronous effect, be advisable with not influencing the continuity of vision.In one embodiment, threshold value can be 100ms or so.Time interval is abandoned for the action event in 100ms, without transmitting and broadcasting, will not influence user's Perception.Left and right in the embodiment of the present invention can be within the scope of certain percentage.Such as float up and down 1%, 2%, 3%, 4%, 5% or 10% etc..Certainly, the specific setting of threshold value is also possible to other times value, for example, 40ms, 50ms, 60ms, 70ms, 80ms, 85ms, 90ms etc..
First terminal in the embodiment of the present invention is either the terminal that teacher controls, is also possible to the end of student's control End.
Second aspect, the embodiment of the invention provides a kind of picture library operation content synchronous method, and the method for the present embodiment can It is realized by above-mentioned system.Therefore, the declaratives of the above system embodiment can be used for understanding the side of the embodiment of the present invention Method.The picture library operation content synchronous method of the embodiment of the present invention includes the following steps:
First terminal sends the action event generated based on the operation for acting on its picture library interface, and action event includes operation Message and action type;
Server receives action event, is broadcasted according to action type operation information or stores and broadcast to operation information;
The operation information of second terminal synchronized broadcast.
Picture library operation content synchronous method provided in an embodiment of the present invention is by classifying to operation, according to different behaviour Make type and different disposal carried out to corresponding operation message, such as the first action type, only operation information is broadcasted and It is not written into database, database is written to the second action type and broadcasts the message, to reduce the pressure of server, greatly It improves due to high concurrent write-in data bring service performance loss.
In the embodiment of the present invention, action type can be divided into two kinds, for example, action type includes the first action type and the Two action types, server 30 broadcast the operation information of the action event of the first action type, the storage of server 30 and broadcast the The operation information of the action event of two action types.A part of division of operations is the first action type by the embodiment of the present invention, right The operation information of the type is only broadcasted and be may be not present, and is reduced data write-in, is reduced server stress, greatly improve high concurrent The loss of bring service performance is written.
In the embodiment of the present invention, which can be operated according to the actual situation and be divided into the first action type, which operation is drawn Enter the second action type.For example, the first action type includes the process operation of action event;Second action type includes operation thing The results operation of part.The data that operating process generates only can store result data without storage.Such as When dragging file, final position is only recorded, and the process from home position to final position need not store, thus can be with Reduce data write-in.Second action type can also include delete operation (del), clear screen operation (clear) etc..
In the embodiment of the present invention, specific operation without limitation, can be according to whether there is or not write-ins to synchronize.One of them In embodiment, operation may include page turning, creation, movement, stop mobile, deletion and any one hovered, wherein page turning, wound Building, moving and hovering is the first action type, stops mobile and deletes as the second action type.
In the embodiment, picture library concrete operations are divided into different operation type, according to different operation type broadcast or storage And broadcast operation message synchronizes.Such as when dragging picture, only stop mobile operation (drop operation) just to picture The final position that shows has an impact, therefore will stop mobile operation setting as Second Type operation, and database is written.It is right In the process (moving operation) of dragging, need to only synchronize, it is not necessary that database (only broadcasting, be not written into) is written.Aforesaid operations Specific movement is not construed as limiting.For example, " deletion " can be the delete button clicked on interface, it is also possible to operate triggering by other " deletion ".In one embodiment, when acting on the operation at the picture library interface of first terminal to stop mobile, detection is by mobile member The coordinate of element deletes the element if being located within the scope of dustbin by the coordinate of mobile element.In the present embodiment by detection and Judgement triggers " deletion ", when dragging file, detects by the final position of mobile element, i.e., when stopping mobile, if by moving The coordinate of element is located within the scope of dustbin, which is deleted.Such as when hovering (hover) operation, it can be somebody's turn to do with animated show Element only needs broadcast to synchronize at this time, without database is written.
Certain operations are that lasting (such as mobile etc.) or frequency are higher (such as frequently click etc.), are just needed at this time not Stealpass transmission of data, influences service performance.In one embodiment of the present of invention, operating is when moving, and first terminal sends adjacent two The time interval of a action event is greater than given threshold.The present embodiment setting operation event transmission interval threshold value, only works as previous existence At the time interval of action event and the action event of upper one transmission be greater than the threshold value of setting when, just transmission is currently generated The problem of action event reduces action event and sends frequency, realize throttling, further avoids service performance loss.Threshold value Setting should consider synchronous effect, be advisable with not influencing the continuity of vision.In one embodiment, threshold value can be 100ms or so.Time interval is abandoned for the action event in 100ms, without transmitting and broadcasting, will not influence user's Perception.Left and right in the embodiment of the present invention can be within the scope of certain percentage.Such as float up and down 1%, 2%, 3%, 4%, 5% or 10% etc..Certainly, the specific setting of threshold value is also possible to other times value, for example, 40ms, 50ms, 60ms, 70ms, 80ms, 85ms, 90ms etc..
The third aspect, the embodiment of the invention provides a kind of picture library operation content synchronous terminals, and Fig. 2 shows figures of the present invention The schematic diagram of one embodiment of library operation content synchronous terminal, referring to fig. 2, the picture library operation content of the embodiment of the present invention synchronize end End includes:
Monitoring unit 11, for monitoring the operation for acting on the picture library interface of terminal;
Response unit 12, for responding aforesaid operations;
Action event generation unit 13, for generating action event based on response operation, action event includes operation information And action type;
Transmission unit 14, for sending action event, in order to be broadcasted according to action type operation information or to operation Message storage and broadcast.
Picture library operation content synchronous terminal provided in an embodiment of the present invention is by classifying to operation, the operation thing of transmission It include action type information in part, in order to carry out different disposal, example to corresponding operation message according to different action types Such as only operation information is broadcasted and is not written into database, and database is written to operation information and broadcasts the message, by In part operation type without write-in, thus is reduced the pressure of server, greatly improve since number is written in high concurrent It is lost according to bring service performance.
In the embodiment of the present invention, action type can be divided into two kinds, for example, action type includes the first action type and the Two action types broadcast the operation information of the action event of the first action type, the operation of the second action type of storage and broadcast The operation information of event.A part of division of operations is the first action type by the embodiment of the present invention, in order to the behaviour to the type Make message and only broadcast may be not present, reduce data write-in, reduce server stress, greatly improves high concurrent write-in bring Service performance loss.
In the embodiment of the present invention, which can be operated according to the actual situation and be divided into the first action type, which operation is drawn Enter the second action type.For example, the first action type includes the process operation of action event;Second action type includes operation thing The results operation of part.The data that operating process generates only can store result data without storage.Such as When dragging file, final position is only recorded, and the process from home position to final position need not store, thus can be with Reduce data write-in.Second action type can also include delete operation (del), clear screen operation (clear) etc..
In the embodiment of the present invention, specific operation without limitation, can be according to whether there is or not write-ins to synchronize.One of them In embodiment, operation may include page turning, creation, movement, stop mobile, deletion and any one hovered, wherein page turning, wound Building, moving and hovering is the first action type, stops mobile and deletes as the second action type.
In the embodiment, picture library concrete operations are divided into different operation type, according to different operation type broadcast or storage And broadcast operation message synchronizes.Such as when dragging picture, only stop mobile operation (drop operation) just to picture The final position that shows has an impact, therefore will stop mobile operation setting as Second Type operation, and database is written.It is right In the process (moving operation) of dragging, need to only synchronize, it is not necessary that database (only broadcasting, be not written into) is written.Aforesaid operations Specific movement is not construed as limiting.For example, " deletion " can be the delete button clicked on interface, it is also possible to operate triggering by other " deletion ".In one embodiment, further include position detection unit and position judging unit, act on picture library circle of first terminal The operation in face is when stopping mobile, and position detection unit is detected by the coordinate of mobile element, and position judging unit judges to be moved The positional relationship of element and dustbin deletes the element if being located within the scope of dustbin by the coordinate of mobile element.This implementation It by detection and judgement in example, triggers " deletion ", when dragging file, detects by the final position of mobile element, that is, work as stopping When mobile, if being located within the scope of dustbin by the coordinate of mobile element, which is deleted.Such as when hovering (hover) operation, Broadcast can be only needed to synchronize at this time with the animated show element, without database is written.
Certain operations are that lasting (such as mobile etc.) or frequency are higher (such as frequently click etc.), are just needed at this time not Stealpass transmission of data, influences service performance.Fig. 3 shows the process of an embodiment of picture library operation content synchronous terminal of the present invention Figure.Referring to Fig. 3, in one embodiment of the present of invention, which further includes interval judgment unit, and interval judgment unit judgement is based on Whether the time interval for the action event that moving operation generates is greater than given threshold, if the action event being currently generated and a upper hair The time interval that the action event sent generates is greater than given threshold, then sends the action event being currently generated.The present embodiment setting Action event sends interval threshold, and the time interval for the action event that the action event being only currently generated is sent with upper one is big When the threshold value of setting, the action event being currently generated just is sent, action event is reduced and sends frequency, throttling is realized, into one Step avoids the problem of service performance loss.The setting of threshold value should consider synchronous effect, be not influence the continuity of vision Preferably.In one embodiment, threshold value can be 100ms or so.By time interval be 100ms in action event abandon, not into Row transmission and broadcast, will not influence the perception of user.Left and right in the embodiment of the present invention can be in certain percentage range It is interior.Such as it floats up and down 1%, 2%, 3%, 4%, 5% or 10% etc..Certainly, the specific setting of threshold value is also possible to other Time value, such as 40ms, 50ms, 60ms, 70ms, 80ms, 85ms, 90ms etc..
Fourth aspect, the embodiment of the invention provides a kind of picture library operation content synchronous method, and the method for the present embodiment can It is realized by above-mentioned terminal.Therefore, the declaratives of above-mentioned terminal embodiment can be used for understanding the side of the embodiment of the present invention Method.Fig. 4 shows the flow chart of an embodiment of picture library operation content synchronous method of the present invention, referring to fig. 4, the embodiment of the present invention Picture library operation content synchronous method include the following steps:
Monitoring acts on the operation at picture library interface;
Respond the operation monitored;
It is operated based on response and generates action event, action event includes operation information and action type;
Action event is sent, in order to broadcast according to action type operation information or operation information is stored and broadcasted.
Picture library operation content synchronous terminal provided in an embodiment of the present invention is by classifying to operation, the operation thing of transmission It include action type information in part, in order to carry out different disposal, example to corresponding operation message according to different action types Such as only operation information is broadcasted and is not written into database, and database is written to operation information and broadcasts the message, by In part operation type without write-in, thus is reduced the pressure of server, greatly improve since number is written in high concurrent It is lost according to bring service performance.
In the embodiment of the present invention, action type can be divided into two kinds, for example, action type includes the first action type and the Two action types broadcast the operation information of the action event of the first action type, the operation of the second action type of storage and broadcast The operation information of event.A part of division of operations is the first action type by the embodiment of the present invention, in order to the behaviour to the type Make message and only broadcast may be not present, reduce data write-in, reduce server stress, greatly improves high concurrent write-in bring Service performance loss.
In the embodiment of the present invention, which can be operated according to the actual situation and be divided into the first action type, which operation is drawn Enter the second action type.For example, the first action type includes the process operation of action event;Second action type includes operation thing The results operation of part.The data that operating process generates only can store result data without storage.Such as When dragging file, final position is only recorded, and the process from home position to final position need not store, thus can be with Reduce data write-in.Second action type can also include delete operation (del), clear screen operation (clear) etc..
In the embodiment of the present invention, specific operation without limitation, can be according to whether there is or not write-ins to synchronize.One of them In embodiment, operation may include page turning, creation, movement, stop mobile, deletion and any one hovered, wherein page turning, wound Building, moving and hovering is the first action type, stops mobile and deletes as the second action type.
In the embodiment, picture library concrete operations are divided into different operation type, according to different operation type broadcast or storage And broadcast operation message synchronizes.Such as when dragging picture, only stop mobile operation (drop operation) just to picture The final position that shows has an impact, therefore will stop mobile operation setting as Second Type operation, and database is written.It is right In the process (moving operation) of dragging, need to only synchronize, it is not necessary that database (only broadcasting, be not written into) is written.Aforesaid operations Specific movement is not construed as limiting.For example, " deletion " can be the delete button clicked on interface, it is also possible to operate triggering by other " deletion ".In one embodiment, when acting on the operation at the picture library interface of first terminal to stop mobile, detection is by mobile member The coordinate of element deletes the element if being located within the scope of dustbin by the coordinate of mobile element.In the present embodiment by detection and Judgement triggers " deletion ", when dragging file, detects by the final position of mobile element, i.e., when stopping mobile, if by moving The coordinate of element is located within the scope of dustbin, which is deleted.Such as when hovering (hover) operation, it can be somebody's turn to do with animated show Element only needs broadcast to synchronize at this time, without database is written.
Certain operations are that lasting (such as mobile etc.) or frequency are higher (such as frequently click etc.), are just needed at this time not Stealpass transmission of data, influences service performance.In one embodiment of the present of invention, operating is when moving, and judgement is raw based on moving operation At the time interval of action event whether be greater than given threshold, if the action event being currently generated and the upper one operation thing that sends The time interval that part generates is greater than given threshold, then sends the action event being currently generated.The present embodiment setting operation event hair Interval threshold is sent, the action event being only currently generated is greater than the threshold of setting with the time interval of the action event of upper one transmission When value, the action event being currently generated just is sent, action event is reduced and sends frequency, realize throttling, further avoid clothes The problem of performance of being engaged in loss.The setting of threshold value should consider synchronous effect, be advisable with not influencing the continuity of vision.In a reality It applies in example, threshold value can be 100ms or so.Time interval is abandoned for the action event in 100ms, without transmission and extensively It broadcasts, will not influence the perception of user.For example, the threshold value set uploads primary as 100ms every 100ms when certain mobile element The action event of coordinate information including the element, without all Coordinate generations undergone in moving process by mobile element All action events all upload and broadcast.Left and right in the embodiment of the present invention can be within the scope of certain percentage.Such as It floats up and down 1%, 2%, 3%, 4%, 5% or 10% etc..Certainly, the specific setting of threshold value is also possible to other times value, Such as 40ms, 50ms, 60ms, 70ms, 80ms, 85ms, 90ms etc..
5th aspect, the embodiment of the invention provides a kind of picture library operation content sync server, Fig. 5 shows the present invention The flow chart of one embodiment of picture library operation content sync server, referring to Fig. 5, the server of the embodiment of the present invention includes:
Receiving unit 31, the action event generated for receiving the operation based on the picture library interface for acting on terminal, operation Event includes operation information and action type;
Action type judging unit 32, for judging action type;
Radio unit 33 is used for broadcast operation message, to synchronize;
Storage unit 34, for storing corresponding operation message when action type is the second action type.
Picture library operation content sync server provided in an embodiment of the present invention is according to different action types to corresponding behaviour Make message and carry out different disposal, such as only operation information is broadcasted and is not written into database, and operation information is written Database simultaneously broadcasts the message, due to without write-in, thus reducing the pressure of server, greatly changing part operation type It has been apt to that the loss of data bring service performance is written due to high concurrent.
In the embodiment of the present invention, action type can be divided into two kinds, for example, action type includes the first action type and the Two action types, server 30 broadcast the operation information of the action event of the first action type, the storage of server 30 and broadcast the The operation information of the action event of two action types.A part of division of operations is the first action type by the embodiment of the present invention, right The operation information of the type is only broadcasted and be may be not present, and is reduced data write-in, is reduced server stress, greatly improve high concurrent The loss of bring service performance is written.
In the embodiment of the present invention, which can be operated according to the actual situation and be divided into the first action type, which operation is drawn Enter the second action type.For example, the first action type includes the process operation of action event;Second action type includes operation thing The results operation of part.The data that operating process generates only can store result data without storage.Such as When dragging file, final position is only recorded, and the process from home position to final position need not store, thus can be with Reduce data write-in.Second action type can also include delete operation (del), clear screen operation (clear) etc..
In the embodiment of the present invention, specific operation without limitation, can be according to whether there is or not write-ins to synchronize.One of them In embodiment, operation may include page turning, creation, movement, stop mobile, deletion and any one hovered, wherein page turning, wound Building, moving and hovering is the first action type, stops mobile and deletes as the second action type.
In the embodiment, picture library concrete operations are divided into different operation type, according to different operation type broadcast or storage And broadcast operation message synchronizes.Such as when dragging picture, only stop mobile operation (drop operation) just to picture The final position that shows has an impact, therefore will stop mobile operation setting as Second Type operation, and database is written.It is right In the process (moving operation) of dragging, need to only synchronize, it is not necessary that database (only broadcasting, be not written into) is written.Aforesaid operations Specific movement is not construed as limiting.For example, " deletion " can be the delete button clicked on interface, it is also possible to drag element to be deleted To a variety of operations such as dustbin.When stopping mobile, when coordinate is located within the scope of dustbin, i.e., the element is deleted.Such as it is outstanding When stopping (hover) operation, broadcast can be only needed to synchronize at this time with the animated show element, without database is written.
6th aspect, the embodiment of the invention provides a kind of picture library operation content synchronous method, and the method for the present embodiment can Server through the foregoing embodiment is realized.Therefore, the declaratives of above-mentioned server example can be used for understanding the present invention The method of embodiment.The picture library operation content synchronous method of the embodiment of the present invention includes the following steps:
The action event that the picture library interface operation based on terminal generates is received, action event includes operation information and operation class Type;
Operation information is broadcasted according to action type or operation information is stored and is broadcasted.
Picture library operation content sync server provided in an embodiment of the present invention is according to different action types to corresponding behaviour Make message and carry out different disposal, such as only operation information is broadcasted and is not written into database, and operation information is written Database simultaneously broadcasts the message, due to without write-in, thus reducing the pressure of server, greatly changing part operation type It has been apt to that the loss of data bring service performance is written due to high concurrent.
In the embodiment of the present invention, action type can be divided into two kinds, for example, action type includes the first action type and the Two action types, server 30 broadcast the operation information of the action event of the first action type, the storage of server 30 and broadcast the The operation information of the action event of two action types.A part of division of operations is the first action type by the embodiment of the present invention, right The operation information of the type is only broadcasted and be may be not present, and is reduced data write-in, is reduced server stress, greatly improve high concurrent The loss of bring service performance is written.
In the embodiment of the present invention, which can be operated according to the actual situation and be divided into the first action type, which operation is drawn Enter the second action type.For example, the first action type includes the process operation of action event;Second action type includes operation thing The results operation of part.The data that operating process generates only can store result data without storage.Such as When dragging file, final position is only recorded, and the process from home position to final position need not store, thus can be with Reduce data write-in.Second action type can also include delete operation (del), clear screen operation (clear) etc..
In the embodiment of the present invention, specific operation without limitation, can be synchronized according to there is no data to be written.Wherein In one embodiment, operation may include page turning, creation, movement, stop mobile, deletion and any one hovered, wherein turning over Page, creation, movement and hovering are the first action type, and stopping mobile and deletion is the second action type.
In the embodiment, picture library concrete operations are divided into different operation type, according to different operation type broadcast or storage And broadcast operation message synchronizes.Such as when dragging picture, only stop mobile operation (drop operation) just to picture The final position that shows has an impact, therefore will stop mobile operation setting as Second Type operation, and database is written.It is right In the process (moving operation) of dragging, need to only synchronize, it is not necessary that database (only broadcasting, be not written into) is written.Aforesaid operations Specific movement is not construed as limiting.For example, " deletion " can be the delete button clicked on interface, it is also possible to drag element to be deleted To a variety of operations such as dustbin.When stopping mobile, when coordinate is located within the scope of dustbin, i.e., the element is deleted.Such as it is outstanding When stopping (hover) operation, broadcast can be only needed to synchronize at this time with the animated show element, without database is written.
Those skilled in the art can be understood that the embodiment of the present invention technical solution can by software and/or Hardware is realized." unit " or " module " in this specification is to refer to complete independently or complete with other component cooperation specific The software and/or hardware of function, wherein hardware for example can be FPGA (Field-Programmable Gate Array, it is existing Field programmable gate array), IC (Integrated Circuit, integrated circuit) etc..
The embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer program, the journey The step of any of the above-described embodiment method is realized when sequence is executed by processor.Wherein, computer readable storage medium may include But be not limited to any kind of disk, including floppy disk, CD, DVD, CD-ROM, mini drive and magneto-optic disk, ROM, RAM, EPROM, EEPROM, DRAM, VRAM, flash memory device, magnetic or optical card, nanosystems (including molecular memory IC), Or it is suitable for any kind of medium or equipment of store instruction and/or data.
The embodiment of the invention also provides a kind of computer equipments, including memory, processor and storage are on a memory And the computer program that can be run on a processor, the step of realizing any of the above-described embodiment method when processor executes program. In embodiments of the present invention, processor is the control centre of computer system, can be the processor of physical machine, is also possible to void The processor of quasi- machine.
In the present invention, term " first ", " second " etc. are only used for the purpose of description, are not understood to indicate or imply Relative importance or sequence;Term " multiple " then refers to two or more, unless otherwise restricted clearly.Term " installation ", The terms such as " connected ", " connection ", " fixation " shall be understood in a broad sense, for example, " connection " may be a fixed connection, being also possible to can Dismantling connection, or be integrally connected;" connected " can be directly connected, can also be indirectly connected through an intermediary.For this For the those of ordinary skill in field, the specific meanings of the above terms in the present invention can be understood according to specific conditions.
In description of the invention, it is to be understood that the orientation or positional relationship of the instructions such as term " on ", "lower" be based on Orientation or positional relationship shown in the drawings, is merely for convenience of description of the present invention and simplification of the description, rather than indication or suggestion institute The device or unit of finger must have specific direction, be constructed and operated in a specific orientation, it is thus impossible to be interpreted as to this hair Bright limitation.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (33)

1. a kind of picture library operation content synchronization system, including first terminal, second terminal and server, wherein
First terminal, the action event generated for sending the operation based on the picture library interface for acting on the first terminal, institute Stating action event includes operation information and action type;
Server broadcasts the operation information according to the action type or for receiving the action event to the behaviour Make message storage and broadcast;
Second terminal, the operation information for synchronized broadcast.
2. system according to claim 1, which is characterized in that the action type includes the first action type and the second behaviour Make type, the operation information of the action event of the first action type described in the server broadcast, the server storage and wide Broadcast the operation information of the action event of second action type.
3. system according to claim 2, which is characterized in that first action type includes the mistake of the action event Journey operation;Second action type includes the results operation of the action event.
4. system according to claim 2 or 3, which is characterized in that act on the institute at the picture library interface of the first terminal Any one that operation includes page turning, creation, movement, stopping movement, deletion and hovering is stated, wherein
The page turning, creation, movement and hovering are the first action type, and the stopping is mobile and deletes as the second action type.
5. system according to claim 4, which is characterized in that act on the behaviour at the picture library interface of the first terminal When as movement, the time interval that the first terminal sends two neighboring action event is greater than given threshold.
6. system according to claim 4, which is characterized in that act on the behaviour at the picture library interface of the first terminal When as stopping mobile, detecting by the coordinate of mobile element, if being located within the scope of dustbin by the coordinate of mobile element, deleting The element.
7. a kind of picture library operation content synchronous method, includes the following steps:
First terminal sends the action event generated based on the operation for acting on its picture library interface, and the action event includes operation Message and action type;
Server receives the action event, is broadcasted according to the action type the operation information or to the operation information Storage and broadcast;
The operation information of second terminal synchronized broadcast.
8. the method according to the description of claim 7 is characterized in that the action type includes the first action type and the second behaviour Make type, the operation information of the action event of the first action type described in the server broadcast, the server storage and wide Broadcast the operation information of the action event of second action type.
9. according to the method described in claim 8, it is characterized in that, first action type includes the mistake of the action event Journey operation;Second action type includes the results operation of the action event.
10. method according to claim 8 or claim 9, which is characterized in that act on the institute at the picture library interface of the first terminal Any one that operation includes page turning, creation, movement, stopping movement, deletion and hovering is stated, wherein
The page turning, creation, movement and hovering are the first action type, and the stopping is mobile and deletes as the second action type.
11. according to the method described in claim 10, it is characterized in that, the first terminal is sent when the operation is mobile The time interval of two neighboring action event is greater than given threshold.
12. according to the method described in claim 10, it is characterized in that, acting on the described of the picture library interface of the first terminal When operation is stops mobile, detects by the coordinate of mobile element, if being located within the scope of dustbin by the coordinate of mobile element, delete Except the element.
13. a kind of picture library operation content synchronous terminal, the terminal include:
Monitoring unit, for monitoring the operation for acting on the picture library interface of the terminal;
Response unit, for responding the operation;
Action event generation unit, for based on the operation generation action event is responded, the action event to include that operation disappears Breath and action type;
Transmission unit, for sending the action event, in order to being broadcasted according to the action type the operation information or The operation information is stored and is broadcasted.
14. terminal according to claim 13, which is characterized in that the action type includes the first action type and second Action type broadcasts the operation information of the action event of first action type, stores and broadcast second action type Action event operation information.
15. terminal according to claim 14, which is characterized in that first action type includes the action event Process operation;Second action type includes the results operation of the action event.
16. terminal according to claim 14 or 15, which is characterized in that the operation includes page turning, creation, movement, stops Any one for only moving, deleting and hovering, wherein
The page turning, creation, movement and hovering are the first action type, and the stopping is mobile and deletes as the second action type.
17. terminal according to claim 16, which is characterized in that further include interval judgment unit, the interval judgement is single Member judges whether the interval of events of the action event generated based on moving operation is greater than given threshold, if the operation thing being currently generated The time interval that part and the action event of a upper transmission generate is greater than given threshold, then sends the action event being currently generated.
18. terminal according to claim 16, which is characterized in that it further include position detection unit and position judging unit, When acting on the operation at the picture library interface of first terminal to stop mobile, position detection unit is detected by the coordinate of mobile element, Position judging unit judges the positional relationship by mobile element and dustbin, if being located at dustbin range by the coordinate of mobile element It is interior, then delete the element.
19. a kind of picture library operation content synchronous method, includes the following steps:
Monitoring acts on the operation at picture library interface;
Respond the operation;
Action event is generated based on the operation is responded, the action event includes operation information and action type;
The action event is sent, in order to broadcast according to the action type the operation information or to the operation information Storage and broadcast.
20. according to the method for claim 19, which is characterized in that the action type includes the first action type and second Action type, the operation information of the action event of the first action type described in the server broadcast, the server storage and Broadcast the operation information of the action event of second action type.
21. according to the method for claim 20, which is characterized in that first action type includes the action event Process operation;Second action type includes the results operation of the action event.
22. the method according to claim 20 or 21, which is characterized in that the operation includes page turning, creation, movement, stops Any one for only moving, deleting and hovering, wherein
The page turning, creation, movement and hovering are the first action type, and the stopping is mobile and deletes as the second action type.
23. according to the method for claim 22, which is characterized in that when the operation is mobile, judgement is based on moving operation Whether the time interval of the action event of generation is greater than given threshold, if the operation of the action event being currently generated and a upper transmission The time interval that event generates is greater than given threshold, then sends the action event being currently generated.
24. according to the method for claim 23, which is characterized in that act on the described of the picture library interface of the first terminal When operation is stops mobile, detects by the coordinate of mobile element, if being located within the scope of dustbin by the coordinate of mobile element, delete Except the element.
25. a kind of picture library operation content sync server, comprising:
Receiving unit, the action event generated for receiving the operation based on the picture library interface for acting on terminal, action event packet Include operation information and action type;
Action type judging unit, for judging action type;
Radio unit is used for broadcast operation message, to synchronize;
Storage unit, for storing corresponding operation message when action type is the second action type.
26. server according to claim 25, which is characterized in that the action type includes the first action type and the Two action types, the operation information of the action event of the first action type described in the server broadcast, the server storage With the operation information for the action event for broadcasting second action type.
27. server according to claim 26, which is characterized in that first action type includes the action event Process operation;Second action type includes the results operation of the action event.
28. a kind of picture library operation content synchronous method, includes the following steps:
The action event that the operation based on the picture library interface for acting on terminal generates is received, the action event includes operation information And action type;
The operation information is broadcasted according to the action type or the operation information is stored and is broadcasted.
29. according to the method for claim 28, which is characterized in that the action type includes the first action type and second Action type, the operation information of the action event of the first action type described in the server broadcast, the server storage and Broadcast the operation information of the action event of second action type.
30. according to the method for claim 29, which is characterized in that first action type includes the action event Process operation;Second action type includes the results operation of the action event.
31. the method according to claim 29 or 30, which is characterized in that act on the operation at the picture library interface of terminal Including page turning, creation, movement, stop mobile, deletion and any one hovered, wherein
The page turning, creation, movement and hovering are the first action type, and the stopping is mobile and deletes as the second action type.
32. a kind of computer readable storage medium, is stored thereon with computer program, power is realized when which is executed by processor Benefit requires the step of any one of 7-12,19-24,28-31 the method.
33. a kind of computer equipment including memory, processor and stores the meter that can be run on a memory and on a processor Calculation machine program, the processor realize any one of claim 7-12,19-24,28-31 the method when executing described program Step.
CN201810924645.2A 2018-08-14 2018-08-14 Picture library operation content synchronization system and method Withdrawn CN109032451A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810924645.2A CN109032451A (en) 2018-08-14 2018-08-14 Picture library operation content synchronization system and method
PCT/CN2019/082702 WO2020034652A1 (en) 2018-08-14 2019-04-15 System and method for synchronizing user interface, terminal, and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810924645.2A CN109032451A (en) 2018-08-14 2018-08-14 Picture library operation content synchronization system and method

Publications (1)

Publication Number Publication Date
CN109032451A true CN109032451A (en) 2018-12-18

Family

ID=64631019

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810924645.2A Withdrawn CN109032451A (en) 2018-08-14 2018-08-14 Picture library operation content synchronization system and method

Country Status (1)

Country Link
CN (1) CN109032451A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020034652A1 (en) * 2018-08-14 2020-02-20 北京大米科技有限公司 System and method for synchronizing user interface, terminal, and server

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103164256A (en) * 2011-12-08 2013-06-19 深圳市快播科技有限公司 Processing method and system capable of achieving one machine supporting high concurrency
CN104468652A (en) * 2013-09-16 2015-03-25 中兴通讯股份有限公司 A method for data synchronization and digital media server
US20160344808A1 (en) * 2015-05-20 2016-11-24 Preventice, Inc. Device data synchronization
CN106375296A (en) * 2016-08-30 2017-02-01 杭州施强教育科技有限公司 Multimedia courseware teaching live broadcast method
CN108156502A (en) * 2018-01-05 2018-06-12 创盛视联数码科技(北京)有限公司 A kind of method for improving paintbrush and word net cast synchronism

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103164256A (en) * 2011-12-08 2013-06-19 深圳市快播科技有限公司 Processing method and system capable of achieving one machine supporting high concurrency
CN104468652A (en) * 2013-09-16 2015-03-25 中兴通讯股份有限公司 A method for data synchronization and digital media server
US20160344808A1 (en) * 2015-05-20 2016-11-24 Preventice, Inc. Device data synchronization
CN106375296A (en) * 2016-08-30 2017-02-01 杭州施强教育科技有限公司 Multimedia courseware teaching live broadcast method
CN108156502A (en) * 2018-01-05 2018-06-12 创盛视联数码科技(北京)有限公司 A kind of method for improving paintbrush and word net cast synchronism

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020034652A1 (en) * 2018-08-14 2020-02-20 北京大米科技有限公司 System and method for synchronizing user interface, terminal, and server

Similar Documents

Publication Publication Date Title
CN105718570A (en) Data migration method and device used for database
CN104065526B (en) A kind of method and apparatus of server failure alarm
CN105335224A (en) Application switching method and apparatus
CN105786405A (en) Online upgrading method, device and system
CN108021492B (en) Alarm merging method and equipment
CN103729110A (en) Popup window information display method, device and terminal
CN104267915A (en) Information processing method and electronic device
CN110989952B (en) Multi-screen-based mouse sharing implementation method, device and system
CN105611190A (en) Spliced wall redisplay system and redisplay method thereof
CN110417764A (en) The method and apparatus for sending the method and apparatus of data and receiving data
CN109032451A (en) Picture library operation content synchronization system and method
CN105553743A (en) Log obtaining method, system, first network device and third network device
CN109246196A (en) Remote control description synchronization system and method
CN109240780A (en) Audio operation contents synchronization system and method
CN109117287A (en) Match selection operation content synchronization system and method
CN109257414A (en) Clear screen synchronization system and method
CN109032452A (en) Page operation contents synchronization system and method
CN113806183B (en) Application clamping and processing method, device, equipment, storage medium and program product
CN109286658A (en) Remote Selection operates synchronization system, method, equipment and storage medium
CN109284158A (en) Long-range drag operation contents synchronization system, method, equipment and storage medium
CN106293583A (en) desktop window sharing method and system
CN109067885A (en) painting line synchronization system and method
CN110457133A (en) A kind of processing method and system of operating-system resources exception
CN105786649A (en) Data backup method and device
CN100377105C (en) Automatic alarm testing method

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20181218

WW01 Invention patent application withdrawn after publication