CN110392102A - Processing method and client, the server-side of data - Google Patents

Processing method and client, the server-side of data Download PDF

Info

Publication number
CN110392102A
CN110392102A CN201910642095.XA CN201910642095A CN110392102A CN 110392102 A CN110392102 A CN 110392102A CN 201910642095 A CN201910642095 A CN 201910642095A CN 110392102 A CN110392102 A CN 110392102A
Authority
CN
China
Prior art keywords
identifier
data
server
service data
processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910642095.XA
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 Chen Sen Century Polytron Technologies Inc
Original Assignee
Beijing Chen Sen Century Polytron Technologies Inc
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 Chen Sen Century Polytron Technologies Inc filed Critical Beijing Chen Sen Century Polytron Technologies Inc
Priority to CN201910642095.XA priority Critical patent/CN110392102A/en
Publication of CN110392102A publication Critical patent/CN110392102A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3236Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
    • H04L9/3239Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of processing method of data and clients, server-side, it is related to data processing field, main purpose is to solve existing server-side and the data in client are inconsistent, influences the synchronism of data processing, thus the problem of reducing the data-handling efficiency of business.It include: that client obtains the first identifier marked when service data updating in server-side, the target service data of the first identifier and request processing are subjected to package coded treatment, send the data processing instructions of the package obtained after carrying processing, server-side carries out decoding process of unpacking to the package that received data processing instructions carry, judgement unpack the service data updating stored in the first identifier after decoding process and current service end when the second identifier that marks it is whether identical, if the first identifier is identical as the second identifier, then the target service data that decoding process of unpacking obtains are handled according to the data processing instructions.

Description

Processing method and client, the server-side of data
Technical field
The present invention relates to a kind of data processing field, processing methods and client more particularly to a kind of data, service End.
Background technique
As the fast development of big data field often deposits mass data to guarantee that client can operate normally Storage some basic datas are stored in server-side, in client come run basis business operation, when client need into When row business data processing, by carrying out processing business data with progress instruction interaction in server-side.However, due to business datum There may be not receiving in interactive process, or when business datum received in server-side changes in the client When, it will lead to server-side and the data in client be inconsistent, influence the synchronism of data processing, to reduce the data of business Treatment effeciency.
Summary of the invention
In view of this, the present invention provides the processing method and client, server-side of a kind of data, main purpose is to solve Existing business data in processing interactive process there may be not receiving, or when received business number in server-side When according to changing in the client, it will lead to server-side and the data in client be inconsistent, influencing the synchronism of data processing, from And the problem of reducing the data-handling efficiency of business.
According to the present invention on one side, a kind of processing method of data is provided, comprising:
The first identifier marked when obtaining service data updating in server-side;
The target service data of the first identifier and request processing are subjected to package coded treatment;
Send the data processing instructions of the package obtained after carrying processing.
Further, before the first identifier marked when detecting service data updating in the reception server-side, the side Method further include:
After completing the Handshake Protocol with server-side, the first mark of business datum and binding that the server-side is sent is received Know, and stores into pre-set business database.
Further, the target service data by the first identifier and request processing carry out package coded treatment packet It includes:
The target service data of request processing and the first identifier of binding are transferred, it is corresponding to the target service data Store identification and the first identifier carry out scrambled, and encoded radio and the target service after package processing scrambled Data.
Further, after the data processing instructions for sending the package obtained after carrying processing, the method is also wrapped It includes:
When receiving data synchronic command, second identifier, updated business that the data synchronic command is carried Data cover updates the first label and business datum in the pre-set business database, and the second identifier is the server-side What middle business datum was marked when updating again.
According to the present invention on one side, the processing method of another data is provided, comprising:
The package carried to received data processing instructions carries out decoding process of unpacking;
Judgement unpack the service data updating that stores in the first identifier after decoding process and current service end when mark Whether second identifier is identical, the mark that the first identifier is marked when being the service data updating received in client;
If the first identifier is identical as the second identifier, according to the data processing instructions to decoding process of unpacking Obtained target service data are handled.
Further, the package carried to received data processing instructions the decoding process that unpack includes:
Unpack the package carried in data processing instructions, and the encoded radio after unpacking be decoded, obtain first identifier, And with unpack after the corresponding store identification of target service data;
The judgement is unpacked the service data updating markers stored in the first identifier after decoding process and current service end Whether the second identifier of note is identical to include:
The second identifier marked when extracting the corresponding service data updating of the store identification, and judge the first identifier It is whether identical as the second identifier.
Further, the judgement is unpacked the business datum stored in the first identifier after decoding process and current service end After whether the second identifier marked when update is identical, the method also includes:
If the first identifier and the second identifier be not identical, data synchronization request, institute are sent to the client It states data synchronization request and carries the second identifier and update marked when business datum described in current service end updates again Business datum afterwards.
Further, the package carried to received data processing instructions unpack before decoding process, described Method further include:
Whether the corresponding business datum of real-time monitoring difference store identification updates;
When monitoring that the business datum updates, the time updated is marked.
Further, the method also includes:
When the business datum updates, judge whether the update of the business datum meets default update condition, If not meeting, send a warning message, time for marking the service data updating and more is carried in the warning information Business datum after new, the default update condition are used to limit the range of the service data updating.
Further, the package carried to received data processing instructions unpack before decoding process, described Method further include:
When completing the Handshake Protocol with client, Xiang Suoshu client synchronization sends the business datum and binding updated First identifier.
According to the present invention on one side, a kind of client is provided, comprising:
Obtain module, the first identifier marked when for obtaining service data updating in server-side;
Processing module, for the target service data of the first identifier and request processing to be carried out package coded treatment;
Sending module, for sending the data processing instructions of the package obtained after carrying processing.
Further, the client further include:
Receiving module, for after completing the Handshake Protocol with server-side, receiving the business datum that the server-side is sent And the first identifier of binding, and store into pre-set business database.
Further, the processing module, specifically for transfer request processing target service data and binding the One mark carries out scrambled to the corresponding store identification of the target service data and the first identifier, and package is handled Encoded radio and the target service data after scrambled.
Further, the client further include:
When receiving data synchronic command, second identifier, updated business that the data synchronic command is carried Data cover updates the first label and business datum in the pre-set business database, and the second identifier is the server-side What middle business datum was marked when updating again.
According to the present invention on one side, a kind of server-side is provided, comprising:
First processing module, the package for being used to analyze the received data process instruction carrying carry out decoding process of unpacking;
Judgment module, for after the decoding process that judges to unpack first identifier and current service end in the business datum that stores Whether the second identifier marked when update is identical, and the first identifier is the service data updating when progress received in client The mark of label;
Second processing module, if identical as the second identifier for the first identifier, according to the data processing Instruction handles the target service data that decoding process of unpacking obtains.
Further, the first processing module, specifically for the package carried in data processing instructions of unpacking, and to tearing open Encoded radio after packet is decoded, obtain first identifier and with unpack after the corresponding store identification of target service data;
The judgment module, the second mark marked when specifically for extracting the corresponding service data updating of the store identification Know, and judges whether the first identifier is identical as the second identifier.
Further, the server-side further include:
Sending module sends number to the client if not identical for the first identifier and the second identifier According to synchronization request, the data synchronization request carries second marked when business datum described in current service end updates again Mark and updated business datum.
Further, the server-side further include:
Whether monitoring modular updates for the corresponding business datum of real-time monitoring difference store identification;
Mark module, for marking the time updated when monitoring that the business datum updates.
Further, the sending module is also used to judge the business datum when the business datum updates Update whether meet default update condition, if not meeting, send a warning message, carried in the warning information label institute The time and updated business datum, the default update condition for stating service data updating are used to limit the business datum The range of update.
Further, the sending module is also used to when completing the Handshake Protocol with client, and Xiang Suoshu client is same Step sends the first identifier of the business datum and binding that update.
According to an aspect of the present invention, a kind of storage medium is provided, at least one is stored in the storage medium to hold Row instruction, the executable instruction make processor execute the corresponding operation of processing method such as above-mentioned data.
According to an aspect of the present invention, a kind of terminal is provided, comprising: processor, memory, communication interface and communication are total Line, the processor, the memory and the communication interface complete mutual communication by the communication bus;
For the memory for storing an at least executable instruction, it is above-mentioned that the executable instruction executes the processor The corresponding operation of the processing method of data.
According to an aspect of the present invention, another storage medium is provided, at least one is stored in the storage medium can It executes instruction, the executable instruction makes processor execute the corresponding operation of processing method such as above-mentioned data.
According to an aspect of the present invention, another terminal is provided, comprising: processor, memory, communication interface and communication Bus, the processor, the memory and the communication interface complete mutual communication by the communication bus;
For the memory for storing an at least executable instruction, it is above-mentioned that the executable instruction executes the processor The corresponding operation of the processing method of data.
By above-mentioned technical proposal, technical solution provided in an embodiment of the present invention is at least had the advantage that
The present invention provides a kind of processing method of data and clients, server-side, with the prior art when client needs When carrying out business data processing, by the way that compared with carrying out instruction interaction in server-side and carrying out processing business data, the present invention is implemented The first identifier that example marks when obtaining service data updating in server-side by client, by the mesh of first identifier and request processing It marks business datum and carries out package coded treatment, then send the data processing instructions of the package obtained after carrying processing, server-side The package carried to received data processing instructions carries out decoding process of unpacking, and then judgement is unpacked the first mark after decoding process Whether knowledge and the second identifier marked when the service data updating stored in current service end are identical, if first identifier and the second mark It is sensible same, then the target service data that decoding process of unpacking obtains are handled according to data processing instructions, to realize service End is synchronous with service data updating to be processed in client, avoids not being updated to client when the service data updating in server-side In end, treatment effeciency of the client to server-side requested service data is improved, and further can ensure the same of safety When, it is synchronized in client while realizing the update of business datum in server-side using mark is automatic, ensures that service The consistency at end and business datum in client.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows a kind of processing method flow chart of data provided in an embodiment of the present invention;
Fig. 2 shows the processing method flow charts of another data provided in an embodiment of the present invention;
Fig. 3 shows the processing method flow chart of another data provided in an embodiment of the present invention;
Fig. 4 shows the processing method flow chart of another data provided in an embodiment of the present invention;
Fig. 5 shows a kind of interaction diagrams of data processing provided in an embodiment of the present invention;
Fig. 6 shows a kind of client composition block diagram provided in an embodiment of the present invention;
Fig. 7 shows another client composition block diagram provided in an embodiment of the present invention;
Fig. 8 shows a kind of server-side composition block diagram provided in an embodiment of the present invention;
Fig. 9 shows another server-side composition block diagram provided in an embodiment of the present invention;
Figure 10 shows a kind of structural schematic diagram of terminal provided in an embodiment of the present invention;
Figure 11 shows the structural schematic diagram of another terminal provided in an embodiment of the present invention;
Figure 12 shows a kind of processing system composition block diagram of data provided in an embodiment of the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
The embodiment of the invention provides a kind of processing methods of data, as shown in Figure 1, this method comprises:
101, the first identifier marked when obtaining service data updating in server-side.
In the embodiment of the present invention, when data are handled, the business datum stored in active client is to pass through service What the business datum in end synchronized in advance, therefore, in preparatory synchronous service data, the business datum that server-side is sent is taken The first identifier being marked with business datum when updating.Wherein, the first identifier is used to mark the industry in server-side Time of the data of being engaged in when updating, timestamp when such as service data updating, the embodiment of the present invention are not specifically limited.
102, the target service data of the first identifier and request processing are subjected to package coded treatment.
In the embodiment of the present invention, in order to determine the safety and confidentiality of data, from the data for being stored with business datum The target service data for needing to request processing are transferred in library, and first identifier and target service data are carried out at package coding Reason.Wherein, coding is by timestamp, or including requesting corresponding store identification to carry out common MD5 volume business processing Code, generates corresponding MD5 value, then carries out common package with target service data, completes the package that can be carried, so as to Server-side is unpacked to obtain target service data to be processed according to package.
103, the data processing instructions of the package obtained after carrying processing are sent.
In the embodiment of the present invention, the data processing instructions of package are carried, by sending to server-side so that server-side obtains Take the target service data to be processed with safety, and according to first identifier determine target service data whether in server-side Service data consistence.
The present invention provides a kind of processing method of data, the embodiment of the present invention obtains business in server-side by client The target service data of first identifier and request processing are carried out package coded treatment by the first identifier that data mark when updating, Then the data processing instructions of the package obtained after carrying processing are sent, so that server-side determines industry according to the first identifier of transmission Whether business data synchronize, and avoid not being updated in client when the service data updating in server-side, improve client to service The treatment effeciency of requested service data is held, and can be in automatic realization server-side further while the update of business datum It is synchronized in client, ensures that the consistency of business datum in server-side and client.
The embodiment of the invention provides the processing methods of another data, as shown in Fig. 2, this method comprises:
201, after completing with the Handshake Protocol of server-side, the of business datum that the server-side is sent and binding is received One mark, and store into pre-set business database.
For the embodiment of the present invention, for the safety of the data output and instruction interaction that carry out server-side and client Property, and synchronize in advance, need active client and server-side to carry out handshake operation.Wherein, active client and server-side After completing Handshake Protocol, receive the business datum that sends of server-side and the first identifier with business datum binding, and store to In pre-set business database.Wherein, shown first identifier is timestamp when marking service data updating in server-side, presets industry The timestamp for being stored with different business data in business database and binding respectively.
202, the first identifier marked when obtaining service data updating in server-side.
This step is identical as step 101 method shown in FIG. 1, and details are not described herein.
203, the target service data of request processing and the first identifier of binding are transferred, to the target service data pair The store identification answered and the first identifier carry out scrambled, and encoded radio and the target after package processing scrambled Business datum.
It is by different shops pair due to needing the data processing request for carrying out target service data for the embodiment of the present invention What the client answered issued, therefore, in order to needing the business datum for carrying out data processing to send, and ensure safety, First identifier when transferring the target service data for needing to request processing and with the binding of target service data, to target service number MD5 coding encrypting, obtained MD5 value and the target for needing to carry out data processing are carried out according to corresponding store identification and first identifier Business datum carries out package, to save the resource of data transmission.
It should be noted that the Encryption Algorithm based on MD5 coding can fix store identification, such as shops when being encoded The length of coding and timestamp, so that the MD5 value length after MD5 coding is consistent, so that server-side and active client are quickly cut Take character string, in the embodiment of the present invention, the concrete mode for carrying out coding package is not specifically limited, and is compiled as long as encryption may be implemented Code can choose other encryption methods and carry out safe transmission.
204, the data processing instructions of the package obtained after carrying processing are sent.
This step is identical as step 103 method shown in FIG. 1, and details are not described herein.
205, when receiving data synchronic command, second identifier, updated that the data synchronic command is carried Business datum covering updates the first label and business datum in the pre-set business database.
For the embodiment of the present invention, due in server-side when determining that first identifier and second identifier are inconsistent, explanation Business datum after the update of time stamp of first identifier, and carried out labeled as the timestamp of second identifier business datum more Newly, in order to synchronize the business datum in the business datum and server-side in client, server-side can be to active client Data synchronic command is sent, is used for second identifier and updated synchronizing traffic data into active client.Wherein, described Be marked when business datum updates again in the second identifier server-side, active client receive second identifier and After updated business datum, first in pre-set business database is marked and business datum carries out covering update, so that again When secondary progress data processing request, what is transferred is as newest second label and updated business datum.
The present invention provides the processing method of another data, the embodiment of the present invention obtains industry in server-side by client The first identifier that business data mark when updating carries out the target service data of first identifier and request processing at package coding Then reason sends the data processing instructions of the package obtained after carrying processing, so that server-side is true according to the first identifier of transmission Determine whether business datum synchronizes, avoid not being updated in client when the service data updating in server-side, improve client to The treatment effeciency of server-side requested service data, and can the update of business datum in automatic realization server-side further It is synchronized in client simultaneously, ensures that the consistency of business datum in server-side and client.
The embodiment of the invention provides the processing methods of another data, as shown in Fig. 2, this method comprises:
301, the package carried to received data processing instructions carries out decoding process of unpacking.
For the embodiment of the present invention, carried in the data processing instructions sent due to client target service data and The package of first identifier, therefore, current service termination is when receiving data processing instructions, unpack at decoding to the package of carrying Reason.It wherein, include MD5 value and target service data in package, MD5 value is the numerical value that first identifier carries out that MD5 is encoded, Or further include that business processing requests corresponding store identification to carry out the numerical value after MD5 coding, first identifier can be client The timestamp marked when business datum is updated in the server-side of middle storage, the embodiment of the present invention are not specifically limited.To envelope Packet is unpacked after decoding, first identifier, store identification, target service data can be obtained, to carry out data processing.
302, judgement is unpacked the service data updating markers stored in the first identifier after decoding process and current service end Whether the second identifier of note is identical.
In the embodiment of the present invention, it is marked when due to first identifier being the service data updating received in client Mark, and second identifier is the mark of service data updating time label in server-side.It should be noted that the mark being marked Timestamp when can update for tagged traffic data is known, therefore, in order to judge in business datum and client in server-side Business datum it is whether consistent, judged using the timestamp that business datum updates in server-side, even connect in client The timestamp of service data updating is identical in the timestamp and server-side of the service data updating received, then illustrates client In business datum and server-side in business datum be update it is consistent, if it is different, then illustrate to update it is inconsistent, in server-side Business datum it is asynchronous with the business datum in client,
If 303, the first identifier is identical as the second identifier, according to the data processing instructions to decoding of unpacking Obtained target service data are handled to be handled.
For the embodiment of the present invention, if first identifier is identical as second identifier, illustrate that the business datum in server-side exists Be synchronized to after client and do not carry out service data updating, therefore, when timestamp of business datum, is the same, then to package into The target service data that row obtains after unpacking are handled according to data processing instructions, and the embodiment of the present invention is not specifically limited.
The present invention provides the processing method of another data, the embodiment of the present invention by server-side to received data at The package that reason instruction carries carries out decoding process of unpacking, and then judgement is unpacked the first identifier after decoding process and current service end Whether the second identifier marked when the service data updating of middle storage is identical, if first identifier is identical as second identifier, according to Data processing instructions handle the target service data that decoding process of unpacking obtains, with realize in server-side and client to The service data updating of processing is synchronous, avoids not being updated in client when the service data updating in server-side, improves client Hold the treatment effeciency to server-side requested service data, and can business datum is more in automatic realization server-side further It is synchronized in client while new, ensures that the consistency of business datum in server-side and client.
The embodiment of the invention provides the processing methods of another data, as shown in Fig. 2, this method comprises:
401, whether the corresponding business datum of real-time monitoring difference store identification updates.
For the embodiment of the present invention, due to being stored with the corresponding business datum of different store identifications in current service end, it is The synchronous efficiency of business datum is improved, whether current service end real-time monitoring difference store identification corresponding business datum occurs It updates.Wherein, the store identification can be shops's title of different Xian Xia shops, shops's coding etc., and business datum can be Basic data under different scenes based on transaction, for example, the single-item data etc. in shop, the embodiment of the present invention is without limitation.
It should be noted that since business datum is the basic data of Xian Xia shops, as long as monitoring these bases It when data change, is then marked, sends timestamp when changing labeled as business datum, the embodiment of the present invention, which is not done, to be had Body limits.In addition, in the embodiment of the present invention, update for business datum may include the increase of business datum, reduction, more Change, as long as monitor business datum and last moment business datum it is not identical as long as be confirmed as service data updating.
402, when monitoring that the business datum updates, the time updated is marked.
Therefore the embodiment of the present invention, is being monitored in order to ensure the update of the synchronizing traffic data of server-side and client When being updated to business datum, the time updated is marked to business datum, that is, marks timestamp when update, such as line The timestamp that 1 title of single-item in lower shops updates is 20190305003, and the embodiment of the present invention is not specifically limited.
Further, for the embodiment of the present invention, further includes: when the business datum updates, judge the industry Whether the update of business data meets default update condition, if not meeting, sends a warning message, carries in the warning information The time and updated business datum, the default update condition for marking the service data updating are used to limit the industry The range that data of being engaged in update.
For the embodiment of the present invention, in order to avoid the update of business datum occurs not being inconsistent logical situation, therefore, into When the monitoring of row business datum, realized by judging whether the update of business datum meets default update condition.Wherein, it presets Update condition is the range that can be updated of preconfigured business datum, for example, the renewable numberical range of business datum, can Service logic range of update etc., the embodiment of the present invention is not specifically limited.When monitoring that it is default that service data updating is not met It when update condition, sends a warning message, and the grasp for the ease of technical staff to abnormal conditions, carries mark in warning information The time of note service data updating and updated business datum, so that the update to business datum re-operates.
403, when completing the Handshake Protocol with client, Xiang Suoshu client synchronization sends the business datum updated and ties up Fixed first identifier.
For the embodiment of the present invention, in order to carry out data transmission current service end and client and the safety of instruction interaction Property, and synchronize in advance, need current service end and client to carry out handshake operation.Wherein, fixed in advance in Handshake Protocol Justice carries out client and scrambled method when server-side carries out data transmission, and if MD5 is encoded, the embodiment of the present invention is not done It is specific to limit.Wherein, after current service end and client complete Handshake Protocol, business datum and and business are sent to client The first identifier of data binding, so that client carries out business operation according to business datum.
404, it unpacks the package carried in data processing instructions, and the encoded radio after unpacking is decoded, obtain first Mark and with unpack after the corresponding store identification of target service data.
For the embodiment of the present invention, when receiving data processing instructions, in order to from the business number in data processing instructions According to and the first certain business datum of label whether be identical, the envelope received of unpacking with the business datum in current service end Packet.Wherein, due to having pre-defined the mode of coding encrypting in Handshake Protocol, to the encoded radio after unpacking, such as MD5 value It is decoded, first identifier that the client that can be obtained is sent, the corresponding store identification of target service data.
405, the second identifier marked when extracting the corresponding service data updating of the store identification, and judge described first It identifies whether identical as the second identifier.
For the embodiment of the present invention, updated again and not same since the business datum stored in current service end is likely to occur The situation into client is walked, in order to avoid client is different from the business datum in server-side and influences the accurate of data processing Property and efficiency, the second identifier marked when extracting the corresponding service data updating of store identification from current service end, judge the Whether one mark is identical as second identifier.It should be noted that the first identifier in the embodiment of the present invention is for indicating client In receive, what second identifier was used to indicate to store in server-side, therefore, if service data updating be it is synchronous, first Mark and second identifier can be identical timestamp, if service data updating is nonsynchronous, first identifier and the second mark Knowing is different timestamps.
If 406a, the first identifier are identical as the second identifier, according to the data processing instructions to solution of unpacking The target service data that code processing obtains are handled.
This step is identical as step 303 method shown in Fig. 3, and details are not described herein.
For the embodiment of the present invention, if the step 406b arranged side by side with step 406a, the first identifier and second mark Knowledge is not identical, then sends data synchronization request to the client, and the data synchronization request carries institute in current service end State the second identifier marked when business datum updates again and updated business datum.
For the embodiment of the present invention, in order to which the business datum in server-side is synchronized to client in time, if first It identifies different from second identifier, then illustrates that the business datum in server-side is updated again, therefore, current service end is to visitor Family end sends data synchronization request.Wherein, business datum in current service end is carried in data synchronization request to carry out again more The second identifier and updated business datum marked when new, so that client is according to the second label and updated business datum It is synchronous to carry out data.In addition, due to the client in the embodiment of the present invention can for businessman's management system, barcode scanning meal ordering system, The application end of the different business such as management system, hand-held meal ordering system is taken out, therefore, is carried out in the embodiment of the present invention with server-side Data processing interactive step it is as shown in Figure 5.
The present invention provides the processing method of another data, the embodiment of the present invention by server-side to received data at The package that reason instruction carries carries out decoding process of unpacking, and then judgement is unpacked the first identifier after decoding process and current service end Whether the second identifier marked when the service data updating of middle storage is identical, if first identifier is identical as second identifier, according to Data processing instructions handle the target service data that decoding process of unpacking obtains, with realize in server-side and client to The service data updating of processing is synchronous, avoids not being updated in client when the service data updating in server-side, improves client Hold the treatment effeciency to server-side requested service data, and can business datum is more in automatic realization server-side further It is synchronized in client while new, ensures that the consistency of business datum in server-side and client.
Further, as the realization to method shown in above-mentioned Fig. 1, the embodiment of the invention provides a kind of clients, such as Shown in Fig. 6, which includes: to obtain module 51, processing module 52, sending module 53.
Obtain module 51, the first identifier marked when for obtaining service data updating in server-side;
Processing module 52, for carrying out the target service data of the first identifier and request processing at package coding Reason;
Sending module 53, for sending the data processing instructions of the package obtained after carrying processing.
The present invention provides a kind of client, the embodiment of the present invention obtains service data updating in server-side by client When the first identifier that marks, the target service data of first identifier and request processing are subjected to package coded treatment, are then sent The data processing instructions of the package obtained after carrying processing, so that server-side determines that business datum is according to the first identifier of transmission No synchronization avoids not being updated in client when the service data updating in server-side, improves client to server-side and requests industry The treatment effeciency for data of being engaged in, and visitor can be synchronized to while the update of business datum in automatic realization server-side further In the end of family, the consistency of business datum in server-side and client is ensured that.
Further, as the realization to method shown in above-mentioned Fig. 2, the embodiment of the invention provides another client, As shown in fig. 7, the client includes: to obtain module 61, processing module 62, sending module 63, receiving module 64, update module 65。
Obtain module 61, the first identifier marked when for obtaining service data updating in server-side;
Processing module 62, for carrying out the target service data of the first identifier and request processing at package coding Reason;
Sending module 63, for sending the data processing instructions of the package obtained after carrying processing.
Further, the client further include:
Receiving module 64, for after completing the Handshake Protocol with server-side, receiving the business number that the server-side is sent According to and binding first identifier, and store into pre-set business database.
Further, the processing module 62, specifically for transferring the target service data and binding of requesting to handle First identifier carries out scrambled to the corresponding store identification of the target service data and the first identifier, and at package Encoded radio and the target service data after managing scrambled.
Further, the client further include:
Update module 65, the second mark for when receiving data synchronic command, the data synchronic command to be carried Knowledge, the first label in the updated business datum covering update pre-set business database and business datum, described second It is identified as and is marked when business datum updates again in the server-side.
The present invention provides another client, the embodiment of the present invention obtains in server-side business datum more by client The target service data of first identifier and request processing are carried out package coded treatment, then sent out by the first identifier marked when new The data processing instructions of the package obtained after sending carrying to handle, so that server-side determines business datum according to the first identifier of transmission Whether synchronize, avoid not being updated in client when the service data updating in server-side, improves client and requested to server-side The treatment effeciency of business datum, and can be synchronized to while the update of business datum in automatic realization server-side further In client, the consistency of business datum in server-side and client is ensured that.
Further, as the realization to method shown in above-mentioned Fig. 3, the embodiment of the invention provides a kind of server-sides, such as Shown in Fig. 8, which includes: first processing module 71, judgment module 72, Second processing module 73.
First processing module 71, the package for being used to analyze the received data process instruction carrying carry out decoding process of unpacking;
Judgment module 72, for after the decoding process that judges to unpack first identifier and current service end in the business number that stores It is whether identical according to the second identifier that marks when updating, when the first identifier is the service data updating received in client into The mark of line flag;
Second processing module 73, if identical as the second identifier for the first identifier, at the data Reason instruction handles the target service data that decoding process of unpacking obtains.
The present invention provides a kind of server-side, the embodiment of the present invention carries received data processing instructions by server-side Package carry out decoding process of unpacking, then judgement is unpacked the industry stored in the first identifier after decoding process and current service end Whether the second identifier that business data mark when updating is identical, if first identifier is identical as second identifier, refers to according to data processing Order handles the target service data that decoding process of unpacking obtains, to realize business to be processed in server-side and client Data, which update, to be synchronized, and avoids not being updated in client when the service data updating in server-side, improves client to server-side The treatment effeciency of requested service data, and can be same while the update of business datum in automatic realization server-side further Step ensures that the consistency of business datum in server-side and client into client.
Further, as the realization to method shown in above-mentioned Fig. 4, the embodiment of the invention provides another server-side, As shown in figure 9, the server-side includes: first processing module 81, judgment module 82, Second processing module 83, sending module 84, prison Survey module 85, mark module 86.
First processing module 81, the package for being used to analyze the received data process instruction carrying carry out decoding process of unpacking;
Judgment module 82, for after the decoding process that judges to unpack first identifier and current service end in the business number that stores It is whether identical according to the second identifier that marks when updating, when the first identifier is the service data updating received in client into The mark of line flag;
Second processing module 83, if identical as the second identifier for the first identifier, at the data Reason instruction handles the target service data that decoding process of unpacking obtains.
Further, the first processing module 81, specifically for the package carried in data processing instructions of unpacking, and it is right Encoded radio after unpacking is decoded, obtain first identifier and with unpack after the corresponding store identification of target service data;
The judgment module 82, second marked when specifically for extracting the corresponding service data updating of the store identification Mark, and judge whether the first identifier is identical as the second identifier.
Further, the server-side further include:
Sending module 84 is sent if not identical for the first identifier and the second identifier to the client Data synchronization request, the data synchronization request carry marked when business datum described in current service end updates again Two marks and updated business datum.
Further, the server-side further include:
Whether monitoring modular 85 updates for the corresponding business datum of real-time monitoring difference store identification;
Mark module 86, for marking the time updated when monitoring that the business datum updates.
Further, the sending module 84 is also used to judge the business number when the business datum updates According to update whether meet default update condition, if not meeting, send a warning message, label carried in the warning information The time of the service data updating and updated business datum, the default update condition is for limiting the business number According to the range of update.
Further, the sending module 84 is also used to when completing the Handshake Protocol with client, Xiang Suoshu client The synchronous first identifier for sending the business datum and binding that update.
The present invention provides another server-side, the embodiment of the present invention takes received data processing instructions by server-side The package of band carries out decoding process of unpacking, and then judgement, which is unpacked, stores in the first identifier after decoding process and current service end Whether the second identifier marked when service data updating is identical, if first identifier is identical as second identifier, according to data processing Instruction handles the target service data that decoding process of unpacking obtains, to realize industry to be processed in server-side and client Data of being engaged in, which update, to be synchronized, and avoids not being updated in client when the service data updating in server-side, improves client to service The treatment effeciency of requested service data is held, and can be in automatic realization server-side further while the update of business datum It is synchronized in client, ensures that the consistency of business datum in server-side and client.
A kind of storage medium is provided according to an embodiment of the present invention, and it is executable that the storage medium is stored at least one The processing method of the data in above-mentioned any means embodiment can be performed in instruction, the computer executable instructions.
Figure 10 shows a kind of structural schematic diagram of the terminal provided according to an embodiment of the present invention, and the present invention is specifically real Example is applied not limit the specific implementation of terminal.
As shown in Figure 10, which may include: processor (processor) 902, communication interface (Communications Interface) 904, memory (memory) 906 and communication bus 908.
Wherein: processor 902, communication interface 904 and memory 906 complete mutual lead to by communication bus 908 Letter.
Communication interface 904, for being communicated with the network element of other equipment such as client or other servers etc..
Processor 902 can specifically execute the phase in the processing method embodiment of above-mentioned data for executing program 910 Close step.
Specifically, program 910 may include program code, which includes computer operation instruction.
Processor 902 may be central processor CPU or specific integrated circuit ASIC (Application Specific Integrated Circuit), or be arranged to implement the integrated electricity of one or more of the embodiment of the present invention Road.The one or more processors that terminal includes can be same type of processor, such as one or more CPU;It is also possible to Different types of processor, such as one or more CPU and one or more ASIC.
Memory 906, for storing program 910.Memory 906 may include high speed RAM memory, it is also possible to further include Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.
Program 910 specifically can be used for so that processor 902 executes following operation:
The first identifier marked when obtaining service data updating in server-side;
The target service data of the first identifier and request processing are subjected to package coded treatment;
Send the data processing instructions of the package obtained after carrying processing.
Another storage medium is provided according to an embodiment of the present invention, and the storage medium is stored at least one and can hold The processing method of the data in above-mentioned any means embodiment can be performed in row instruction, the computer executable instructions.
Figure 11 shows the structural schematic diagram of another terminal provided according to an embodiment of the present invention, and the present invention is specific Embodiment does not limit the specific implementation of terminal.
As shown in figure 11, which may include: processor (processor) 1002, communication interface (Communications Interface) 1004, memory (memory) 1006 and communication bus 1008.
Wherein: processor 1002, communication interface 1004 and memory 1006 are completed each other by communication bus 1008 Communication.
Communication interface 1004, for being communicated with the network element of other equipment such as client or other servers etc..
Processor 1002 can specifically execute in the processing method embodiment of above-mentioned data for executing program 1010 Correlation step.
Specifically, program 1010 may include program code, which includes computer operation instruction.
Processor 1002 may be central processor CPU or specific integrated circuit ASIC (Application Specific Integrated Circuit), or be arranged to implement the integrated electricity of one or more of the embodiment of the present invention Road.The one or more processors that terminal includes can be same type of processor, such as one or more CPU;It is also possible to Different types of processor, such as one or more CPU and one or more ASIC.
Memory 1006, for storing program 1010.Memory 1006 may include high speed RAM memory, it is also possible to also Including nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.
Program 1010 specifically can be used for so that processor 1002 executes following operation:
The package carried to received data processing instructions carries out decoding process of unpacking;
Judgement unpack the service data updating that stores in the first identifier after decoding process and current service end when mark Whether second identifier is identical, the mark that the first identifier is marked when being the service data updating received in client;
If the first identifier is identical as the second identifier, according to the data processing instructions to decoding process of unpacking Obtained target service data are handled.
The embodiment of the invention provides a kind of processing systems of data, as shown in figure 12, comprising: client 1101, service End 1102,
The client 1101, the first identifier marked when for obtaining service data updating in server-side;
The client 1101 is also used to the target service data of the first identifier and request processing carrying out package volume Code processing;
The client 1101 is also used to send the data processing instructions of the package obtained after carrying processing;
The server-side 1102, the package for being used to analyze the received data process instruction carrying carry out decoding process of unpacking;
The server-side 1102 stores in be also used to judge the to unpack first identifier after decoding process and current service end Whether the second identifier marked when service data updating is identical, and the first identifier is that the business datum that receives is more in client The mark being marked when new;
The server-side 1102, if it is identical as the second identifier to be also used to the first identifier, according to the data Process instruction handles the target service data that decoding process of unpacking obtains.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored It is performed by computing device in the storage device, and in some cases, it can be to be different from shown in sequence execution herein Out or description the step of, perhaps they are fabricated to each integrated circuit modules or by them multiple modules or Step is fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific hardware and softwares to combine.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the present invention can have various changes and update.All within the spirits and principles of the present invention, made any to repair Change, equivalent replacement, improvement etc., should all include within protection scope of the present invention.

Claims (10)

1. a kind of processing method of data characterized by comprising
The first identifier marked when obtaining service data updating in server-side;
The target service data of the first identifier and request processing are subjected to package coded treatment;
Send the data processing instructions of the package obtained after carrying processing.
2. the method according to claim 1, wherein detecting service data updating markers in the reception server-side Before the first identifier of note, the method also includes:
After completing the Handshake Protocol with server-side, the first identifier of business datum and binding that the server-side is sent is received, And it stores into pre-set business database.
3. method according to claim 1 or 2, which is characterized in that the mesh by the first identifier and request processing Mark business datum carries out package coded treatment
Transfer the target service data of request processing and the first identifier of binding, shop corresponding to the target service data Mark and the first identifier carry out scrambled, and encoded radio and the target service number after package processing scrambled According to.
4. a kind of processing method of data characterized by comprising
The package carried to received data processing instructions carries out decoding process of unpacking;
Judgement unpack the service data updating stored in the first identifier after decoding process and current service end when mark second Identify whether the mark identical, the first identifier is marked when being the service data updating received in client;
If the first identifier is identical as the second identifier, decoding process of unpacking is obtained according to the data processing instructions Target service data handled.
5. a kind of client characterized by comprising
Obtain module, the first identifier marked when for obtaining service data updating in server-side;
Processing module, for the target service data of the first identifier and request processing to be carried out package coded treatment;
Sending module, for sending the data processing instructions of the package obtained after carrying processing.
6. a kind of server-side characterized by comprising
First processing module, the package for being used to analyze the received data process instruction carrying carry out decoding process of unpacking;
Judgment module, for after the decoding process that judges to unpack first identifier and current service end in the service data updating that stores When the second identifier that marks it is whether identical, the first identifier is marked when being the service data updating received in client Mark;
Second processing module, if identical as the second identifier for the first identifier, according to the data processing instructions The target service data that decoding process of unpacking obtains are handled.
7. a kind of storage medium, it is stored with an at least executable instruction in the storage medium, the executable instruction makes to handle Device executes the corresponding operation of processing method of data as claimed in any one of claims 1-3.
8. a kind of terminal, comprising: processor, memory, communication interface and communication bus, the processor, the memory and The communication interface completes mutual communication by the communication bus;
The memory executes the processor as right is wanted for storing an at least executable instruction, the executable instruction Ask the corresponding operation of the processing method of data described in any one of 1-3.
9. a kind of storage medium, it is stored with an at least executable instruction in the storage medium, the executable instruction makes to handle Device executes the corresponding operation of processing method of data as claimed in claim 4.
10. a kind of terminal, comprising: processor, memory, communication interface and communication bus, the processor, the memory and The communication interface completes mutual communication by the communication bus;
The memory executes the processor as right is wanted for storing an at least executable instruction, the executable instruction The corresponding operation of the processing method of data described in asking 4.
CN201910642095.XA 2019-07-16 2019-07-16 Processing method and client, the server-side of data Pending CN110392102A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910642095.XA CN110392102A (en) 2019-07-16 2019-07-16 Processing method and client, the server-side of data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910642095.XA CN110392102A (en) 2019-07-16 2019-07-16 Processing method and client, the server-side of data

Publications (1)

Publication Number Publication Date
CN110392102A true CN110392102A (en) 2019-10-29

Family

ID=68285023

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910642095.XA Pending CN110392102A (en) 2019-07-16 2019-07-16 Processing method and client, the server-side of data

Country Status (1)

Country Link
CN (1) CN110392102A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140298313A1 (en) * 2013-01-07 2014-10-02 Tencent Technology (Shenzhen) Company Limited Method, server, client and system for updating data
CN108011926A (en) * 2017-11-06 2018-05-08 中国银联股份有限公司 A kind of file transmitting method, processing method, server and system
CN108282347A (en) * 2016-12-30 2018-07-13 航天信息股份有限公司 A kind of server data online management method and system
CN108777632A (en) * 2018-05-18 2018-11-09 阿里巴巴集团控股有限公司 Data processing method, client, business platform and configuration platform
CN109213792A (en) * 2018-07-06 2019-01-15 武汉斗鱼网络科技有限公司 Method, server-side, client, device and the readable storage medium storing program for executing of data processing

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140298313A1 (en) * 2013-01-07 2014-10-02 Tencent Technology (Shenzhen) Company Limited Method, server, client and system for updating data
CN108282347A (en) * 2016-12-30 2018-07-13 航天信息股份有限公司 A kind of server data online management method and system
CN108011926A (en) * 2017-11-06 2018-05-08 中国银联股份有限公司 A kind of file transmitting method, processing method, server and system
CN108777632A (en) * 2018-05-18 2018-11-09 阿里巴巴集团控股有限公司 Data processing method, client, business platform and configuration platform
CN109213792A (en) * 2018-07-06 2019-01-15 武汉斗鱼网络科技有限公司 Method, server-side, client, device and the readable storage medium storing program for executing of data processing

Similar Documents

Publication Publication Date Title
US9083684B2 (en) Communication node, key synchronization method, and key synchronization system
US8009672B2 (en) Apparatus and method of splitting a data stream over multiple transport control protocol/internet protocol (TCP/IP) connections
CN106648940A (en) Remote procedure call method and device
CN104503745B (en) A kind of method and apparatus generated using channel packet
CN108933805A (en) A kind of document transmission method and system
CN111083161A (en) Data transmission processing method and device and Internet of things equipment
CN104283723B (en) Network access log processing method and processing device
US10735373B2 (en) Communications over multiple protocol interfaces in a computing environment
CN112398916B (en) File transmission method and device based on HTTP (hyper text transport protocol)
CN104378234A (en) Cross-data-center data transmission processing method and system
CN106790221B (en) Internet protocol security IPSec protocol encryption method and network equipment
CN110011952B (en) Data transmission method, service cluster and client
CN110581812A (en) Data message processing method and device
CN110377440B (en) Information processing method and device
CN107135190B (en) Data flow attribution identification method and device based on transport layer secure connection
CN111158637A (en) Block chain-based random number generation method, equipment and storage medium
CN117176802B (en) Full-link monitoring method and device for service request, electronic equipment and medium
EP3026860B1 (en) Method and system for transmission management of full configuration synchronization between eml-nml
CN109067922A (en) A kind of data transmission method and device
CN110392102A (en) Processing method and client, the server-side of data
US20160261719A1 (en) Information processing system, control program, and control method
CN107204855A (en) One kind is affixed one's seal method, service end, client and sealing system
CN115378855A (en) Data packet testing method and device, communication device and storage medium
CN110445658A (en) A kind of message processing method and system
CN109271454A (en) A kind of method and the network equipment that data are synchronous

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
AD01 Patent right deemed abandoned

Effective date of abandoning: 20230310

AD01 Patent right deemed abandoned