WO2020024375A1 - 一种数据传输管理的方法及装置 - Google Patents
一种数据传输管理的方法及装置 Download PDFInfo
- Publication number
- WO2020024375A1 WO2020024375A1 PCT/CN2018/105053 CN2018105053W WO2020024375A1 WO 2020024375 A1 WO2020024375 A1 WO 2020024375A1 CN 2018105053 W CN2018105053 W CN 2018105053W WO 2020024375 A1 WO2020024375 A1 WO 2020024375A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- data
- terminal
- change
- digital signature
- instruction
- 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.)
- Ceased
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/70—Admission control; Resource allocation
- H04L47/72—Admission control; Resource allocation using reservation actions during connection setup
- H04L47/722—Admission control; Resource allocation using reservation actions during connection setup at the destination endpoint, e.g. reservation of terminal resources or buffer space
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic 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/3247—Cryptographic 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 involving digital signatures
Definitions
- the present application belongs to the field of data communication technology, and particularly relates to a method and device for data transmission management.
- the terminal When the terminal is used by the user, it often needs to communicate with the server. For example, when the user wants to view the favorites or shopping cart, the terminal needs to interact with the server to obtain the product information in the user's favorite or shopping cart and display it to user.
- a part of data is often cached in a terminal, so as to display a desired data to a user more quickly.
- the data cache mechanism of the terminal is generally as follows: if the terminal has cached data, the cached data is displayed first, and at the same time, the terminal requests data from the server, refreshes immediately after the terminal obtains the latest data returned by the server, and displays the latest data.
- the existing data caching mechanism can improve the user experience.
- the terminal cache data is the same as the server data
- the server still returns the data to the terminal as usual, and there are problems such as wasted network traffic and wasted server resources.
- the embodiments of the present application provide a method and device for data transmission management to solve the problem that when the server and the terminal perform data transmission in the prior art, the server will return the data buffered by the terminal to the terminal as usual. Causes waste of network traffic and waste of server resources.
- a first aspect of the embodiments of the present application provides a method for data transmission management, including:
- Obtain data request information sent by a terminal the data request information is used to request to obtain the latest service data, and the data request information includes: a data name of the service data and a digital signature of the terminal; the digital signature of the terminal is the A digital signature of the service data buffered by the terminal;
- a service data maintaining instruction is sent to the terminal; the service data maintaining instruction is used to instruct the terminal to display the The service data cached by the terminal;
- the target digital signature is different from the terminal digital signature, determining that the target data is based on a change type and change data of the service data buffered by the terminal;
- the change instruction is used to modify the target data based on the change data.
- a second aspect of the embodiments of the present application provides an apparatus for data transmission management, including a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, where the processor executes
- the computer-readable instructions implement the following steps:
- Obtain data request information sent by a terminal the data request information is used to request to obtain the latest service data, and the data request information includes: a data name of the service data and a digital signature of the terminal; the digital signature of the terminal is the A digital signature of the service data buffered by the terminal;
- a service data maintaining instruction is sent to the terminal; the service data maintaining instruction is used to instruct the terminal to display the The service data cached by the terminal;
- the target digital signature is different from the terminal digital signature, determining that the target data is based on a change type and change data of the service data buffered by the terminal;
- the change instruction is used to modify the target data based on the change data.
- a third aspect of the embodiments of the present application provides a computer-readable storage medium storing computer-readable instructions, where the computer-readable instructions include program instructions, and the program instructions when executed by a processor The processor is caused to execute the method of the first aspect described above.
- the method and device for implementing data transmission management have the following beneficial effects: by generating a terminal digital signature based on the service data cached in the terminal, and generating a target digital signature based on the target data in the server, the two The digital signature is compared to determine whether the data on the server side is updated compared to the data in the terminal cache, and instructs the terminal to directly display the cached business data when the two digital signatures are the same; when the two digital signatures are different, it is determined by the data Change the situation, and send the changed data and change instructions in a targeted manner, so that the terminal outputs information and caches the changed data according to the changed situation, without the need to obtain all the business data to display and update the data, which effectively reduces
- the data transmission volume, network access traffic, and server load pressure between the terminal and the server during data transmission are improved, improving server performance and data transmission management efficiency.
- FIG. 1 is a specific implementation flowchart of a method for data transmission management provided in Embodiment 1 of the present application;
- FIG. 2 is a specific implementation flowchart of a data transmission management method provided in Embodiment 2 of the present application; FIG.
- FIG. 3 is a schematic diagram of a data transmission management apparatus provided in Embodiment 3 of the present application.
- FIG. 4 is a schematic diagram of a data transmission management apparatus provided in Embodiment 4 of the present application.
- the embodiment of the present application obtains related data through buried point data to analyze the related data to obtain user behavior and software running status during a certain period of time during an operation, which solves the problem of obtaining data from a single buried point.
- the obtained operation information alone analyzes user data at a certain point, and cannot comprehensively monitor the entire use process, which causes the limitation of data analysis.
- FIG. 1 is a flowchart of a data transmission management method according to an embodiment of the present application.
- the execution subject of the method for data transmission management in this embodiment includes, but is not limited to, devices such as a computer and a server, and these devices have a function of data transmission management.
- the method for data transmission management shown in FIG. 1 may include the following steps:
- data request information sent by a terminal is obtained; the data request information is used to request to obtain the latest service data, and the data request information includes: a data name of the service data and a terminal digital signature; and the terminal digital
- the signature is a digital signature of the service data buffered by the terminal.
- the data request information is used by the terminal to request to obtain the latest service data, and the service data may be the latest data currently on the server side, for example, data in favorites and shopping carts.
- the server After obtaining the data request information, the server searches for the corresponding target data according to the data name in the data request information. Considering that the target data corresponding to the same data name may have been changed (for example, the merchant may modify the product information multiple times), the server can save the target data of previous changes in the database. When the terminal requests data, the latest business data is found according to the data name.
- the user when the user needs to view the information in the current shopping cart through the terminal, the user can enter the page for viewing the shopping cart by touching the screen, clicking the mouse, voice, or gestures, and the terminal sends a data request to the server.
- the server After receiving the data request, the server sends the target data to the terminal according to the current shopping cart data of the user account, that is, the target data, and the terminal displays a corresponding information interface according to the received target data.
- the data request information sent by the terminal to the server further includes a digital signature of the service data cached locally by the terminal.
- Digital signature is to encrypt the summary information of the local data with the terminal's private key and transmit it to the server along with the original text.
- the server can only decrypt the encrypted digest information with the public key of the terminal, and then use the hash function to generate a digest information for the received original text, which is compared with the decrypted digest information. If they are the same, it means that the received information is complete and has not been modified during transmission, otherwise it means that the information has been modified, so the digital signature can verify the integrity of the information.
- the purpose of digitally signing the service data in this embodiment is to determine whether the locally cached data of the terminal is the latest data by comparing the digital signature of the locally cached data of the terminal with the digital signature of the latest data of the server. Updated or changed.
- the terminal in this embodiment includes, but is not limited to, a device such as a mobile phone, a tablet, and a computer, and is used to obtain and display the service data obtained from the server.
- a device such as a mobile phone, a tablet, and a computer
- the type of the terminal is not limited herein.
- the terminal data management in order to ensure the efficiency of terminal information display, by caching the data previously obtained from the server locally on the terminal, when the user needs to view the data, the terminal first displays the data that has been cached, and After that it gets real-time data from the server. In many cases, there is often no difference between the data in the server and the data cached by the terminal, and the server will also send these data to the terminal, and the terminal redisplays the data. This situation can easily cause delays in data display and waste network bandwidth. Phenomenon, and even affect the user experience.
- the target digital signature of the target data corresponding to the data name in the server is the same as the digital signature of the terminal, it means that the data in the server has not been updated or changed, and the data of the terminal can remain unchanged.
- the server sends an instruction to the terminal to keep the data unchanged. After receiving the instruction, the terminal still displays it to the user according to the data in the current cache.
- the target digital signature is different from the terminal digital signature, it is determined that the target data is based on a change type and change data of the service data buffered by the terminal.
- the terminal digital signature After obtaining the data request information sent by the terminal, compare the terminal digital signature with the target digital signature. If the target digital signature is different from the terminal digital signature, it means that the target data of the server is different from the business data cached by the terminal. That is, the data in the server is updated or changed. In this case, the change type and change data of the target data are determined according to the change between the target data and the business data.
- step S103 may include:
- the target digital signature is different from the terminal digital signature, determine, based on a flag bit in the data corresponding to the data name stored in the server, that the target data is based on a change type and Change data; the flag is an identifier generated after the data in the server is changed, and is used to identify the change data and the change type in the server.
- the server when the server updates the data, the server will mark the updated or changed place, which is called a flag bit in this embodiment.
- the flag bit may be a time axis inserted at the target data that has been changed, and the time axis may be used as a mark.
- a flag bit can also be used to directly indicate whether it is increased or overwritten from the previous change. For example, a flag bit of 0 indicates an increase from the last saved business data, and a flag bit of 1 indicates overwrite.
- a data signature that meets the requirements is found in the database, where the data signature that meets the requirements is saved later than the data signature in the data request. Determine whether to increase or overwrite according to the flag bit corresponding to the required data signature. If the flag bits corresponding to the required data signature are all 0, the status operation field is judged to be increased; if a flag bit corresponding to a certain data signature exists to be 1, the status operation field is overwritten. In this way, the status operation field can be determined directly based on the flag bit corresponding to the data signature, and no comparison of business data is required, which shortens the response time of the terminal and improves the efficiency of business data processing.
- a change instruction and the change data are sent to the terminal according to the change type of the target data; the change instruction is used to modify the target data based on the change data.
- a change instruction and change data are sent to the terminal according to the change type.
- the change instruction is used to modify the target data based on the change data.
- the change instruction includes, but is not limited to, an update instruction and a new instruction. Since the change of these information in the server is changed at any time, it is necessary to detect the change of the target data in the server after receiving the data request from the terminal.
- the terminal pushes the new target data to the user, generates a new digital signature based on the latest data, and overwrites the cache with the new digital signature.
- Original digital signature
- the server and the terminal save the latest data
- the latest data, digital signature, and data name may be saved correspondingly, which is convenient for later searching and management.
- the types of changes in this embodiment include, but are not limited to, update changes and new changes, and may also be other changes, such as deletion changes that delete a part of the target data, and all target data formats.
- the format of the conversion changes, etc. are not limited here.
- step S104 may include:
- the target data in the server may be changed.
- the update instruction is used to overwrite the updated data to the corresponding cache data in the terminal.
- the quantity of an item in the shopping cart corresponding to a user account has changed, or an item in the favorites has been removed from the shelf.
- an update instruction and update data are sent to the terminal.
- the update instruction is used to update the quantity of the product
- the update data is used to indicate the data quantity object that needs to be updated and the updated value.
- the data quantity object may be a data name and a data identifier, which are not limited here.
- the target data in the server may be increased. For example, a new item is added to the shopping cart or favorites corresponding to a user account, or account information is added to a certain application software.
- a new instruction and new data are sent to the terminal. The add instruction is used to add the new data to the terminal's cache.
- a new instruction and new data are sent to the terminal, and the new instruction is used to indicate that a new item needs to be added to the shopping cart.
- the action of this item, the new data is the name and quantity of the newly added item.
- a new instruction and new data are sent to the terminal.
- the new instruction is used to indicate the need to add account information in the application software.
- the new data is Data such as account information of the new account.
- the latest target data includes the entire contents of the terminal cache, but only a part of the data is added based on the terminal cache, it is regarded as a new change; if the latest target data does not include all the business data cached by the terminal Content, it is regarded as an update.
- the terminal digital signature is generated based on the service data cached in the terminal, and the target digital signature is generated based on the target data in the server.
- the two digital signatures are compared to determine whether the data on the server side is compared with the data in the terminal cache. Update occurs, and instruct the terminal to directly display the cached business data when the two digital signatures are the same; when the two digital signatures are different, by determining the data changes, the changed data and change instructions are sent in a targeted manner,
- it is not necessary to obtain all the business data to display and update the data which effectively reduces the data transmission volume and network access traffic during data transmission between the terminal and the server. As well as the load pressure of the server, it improves the server performance and the efficiency of data transmission management.
- FIG. 2 shows a specific implementation flowchart of a method for data transmission management provided in Embodiment 2 of the present application.
- a method for data transmission management provided in this embodiment further includes: S201 to S202, which are detailed as follows:
- a modification request sent by the terminal is obtained; the modification request includes a data name of the data to be modified and the modified data.
- the server when the server performs data transmission and management, there is another case.
- the terminal When the terminal needs to actively modify the data, it needs to obtain a modification request sent by the terminal, where the modification request includes the required modification data. Data name and modified data.
- the terminal may be a terminal corresponding to a buyer or a terminal corresponding to a seller, which is not limited herein.
- Buyers can modify favorites and shopping carts, such as adding products, reducing products, modifying product categories and attributes, etc.
- Sellers can modify the specific information of products, for example, they can modify the price, description, delivery time, etc. , After the seller modifies the specific information of the product, the product information in the buyer's favorites or shopping cart will be modified accordingly.
- a modification request is first sent to the server, where the modification request includes the name of the data to be modified as the account avatar, and the modified data is the new account avatar.
- the data corresponding to the data name of the required modified data is modified and saved, and a new digital signature is generated and saved according to the modified data.
- the server After receiving the modification request sent by the terminal, the server modifies and saves the data corresponding to the data name of the data to be modified to ensure that the server and the terminal synchronize the data.
- the server after the server receives the terminal's request to modify the account avatar, it looks up the account information of the account, and uses the account avatar in the modification request to modify the previous account avatar.
- the server After obtaining the data request sent by the terminal, the server needs to compare the terminal digital signature in the data request with the target digital signature. In order to ensure the efficiency of digital signature comparison, a new digital signature is generated from the modified data and stored in Server.
- a database may be set in the server, and the database stores the target data corresponding to the data name and its digital signature. There is a one-to-one correspondence between the target data and the digital signature.
- a data name can correspond to multiple target data and digital signatures, because the data name may have multiple modification history.
- the database can store the target data and numbers corresponding to multiple modification history. The signatures are preserved.
- the server stores the time corresponding to the last time the data signature was returned to the terminal. That is, at least the corresponding relationship among the target data, the digital signature, the data name, and the time of the last return to the terminal is stored in the database of the server. Details of its cache are shown in the following table:
- Target data digital signature Time back to the terminal User A's shopping cart 11111 ... 111 XXXX None User A's shopping cart 22222 ... 222 YYYY 2018.3.20, 11:30 User A's shopping cart 33333 ... 333 ZZZZ 2018.3.21, 15:30 User A's shopping cart 22222 ... 222 YYYY None
- the target data in the data name representing the shopping cart of user A is "11111 ... 111”
- the digital signature corresponding to the target data is "XXXX”
- “None” means that it is not returned to the terminal , Indicating that the terminal has never obtained the service data.
- the second line of business data is the same as the last line, and the data signature is the same, which means that the user (buyer or seller) has modified the business data back to the previous one.
- the terminal when the terminal needs to obtain the target data that the user wants to view, it sends a data request to the server, and the server returns a status operation field according to the data request.
- the terminal performs the corresponding operation according to the status operation field.
- the latest data signature corresponding to the data name may be searched to determine whether the latest data signature has been returned to the terminal. If yes, determine whether the time returned to the terminal is after the terminal clears the cache last time. If after that, it is stated that the service data is still in the terminal cache, it will directly return the status field and the latest data signature indicating that it remains unchanged.
- the latest data signature is YYYY, which has been returned to the terminal at 2018.3.20, 11:30. If the terminal last cleared the cache before 2018.3.20, 11:30, Then the data signature can be directly returned to the terminal for the terminal to push the corresponding service data to the user.
- the synchronization between the terminal data and the data in the server is guaranteed, and according to the modification,
- the subsequent data generates and saves a new digital signature, which improves the efficiency of data transmission between the server and the terminal.
- FIG. 3 is a schematic diagram of a data transmission management apparatus provided in Embodiment 3 of the present application.
- Each unit of the apparatus for data transmission management in this embodiment is configured to perform steps in the embodiment corresponding to FIG. 1.
- the apparatus for data transmission management in this embodiment includes: a request obtaining unit 301, a first instruction unit 302, a data changing unit 303, and a second instruction unit 304.
- the request obtaining unit 301 is configured to obtain data request information sent by a terminal; the data request information is used to request to obtain the latest service data, and the data request information includes: a data name of the service data and a terminal digital signature; The terminal digital signature is a digital signature of the service data buffered by the terminal;
- the first instruction unit 302 is configured to send a service data maintaining instruction to the terminal if the target digital signature of the target data corresponding to the data name in the server is the same as the terminal digital signature; the service data maintaining instruction And used to instruct the terminal to display the service data buffered by the terminal.
- a data changing unit 303 configured to determine, if the target digital signature is different from the terminal digital signature, a change type and change data of the target data based on service data buffered by the terminal;
- a second instruction unit 304 is configured to send a change instruction and the change data to the terminal according to a change type of the target data; the change instruction is used to modify the target data based on the change data.
- the data changing unit 303 may include:
- a flag bit unit configured to determine, if the target digital signature is different from the terminal digital signature, according to a flag bit in data corresponding to the data name stored in the server, that the target data is based on the Business data change types and change data;
- the flag is an identifier generated after the data in the server is changed, and is used to identify the changed data and the type of change in the server.
- the second instruction unit 304 may include:
- An update unit configured to send an update instruction and update data to the terminal if the change type is data update change; the update instruction is used to overwrite the update data to the corresponding cache data in the terminal;
- a new unit is configured to send a new instruction and new data to the terminal if the change type is a new change of data; the new instruction is used to add the new data to the terminal In the cache.
- apparatus for data transmission management may further include:
- a modification request obtaining unit configured to obtain a modification request sent by the terminal; the modification request includes a data name of modified data and modified data;
- a data modification storage unit is configured to modify and save data corresponding to the data name of the required modification data according to the modification request, and generate and save a new digital signature according to the modified data.
- the terminal digital signature is generated based on the service data cached in the terminal, and the target digital signature is generated based on the target data in the server.
- the two digital signatures are compared to determine whether the data on the server side is compared with the data in the terminal cache. Update occurs, and instruct the terminal to directly display the cached business data when the two digital signatures are the same; when the two digital signatures are different, by determining the data changes, the changed data and change instructions are sent in a targeted manner,
- the network access traffic and the load pressure of the server during data transmission between the terminal and the server are effectively reduced, and the server performance and data processing efficiency are improved.
- FIG. 4 is a schematic diagram of a data transmission management apparatus provided in Embodiment 4 of the present application.
- the device 4 for data transmission management in this embodiment includes a processor 40, a memory 41, and computer-readable instructions 42 stored in the memory 41 and executable on the processor 40.
- the steps in the method embodiment for implementing the foregoing data transmission management are implemented, for example, steps 101 to 104 shown in FIG. 1.
- the processor 40 executes the computer-readable instructions 42 the functions of the modules / units in the foregoing device embodiments are implemented, for example, the functions of the units 301 to 304 shown in FIG. 3.
- the computer-readable instructions 42 may be divided into one or more modules / units, the one or more modules / units are stored in the memory 41 and executed by the processor 40, To complete this application.
- the one or more modules / units may be a series of computer-readable instruction instruction sections capable of performing specific functions, and the instruction sections are used to describe the execution of the computer-readable instructions 42 in the data transmission management device 4 process.
- the data transmission management device 4 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server.
- the terminal device may include, but is not limited to, a processor 40 and a memory 41.
- FIG. 4 is only an example of the device 4 for data transmission management, and does not constitute a limitation on the device 4 for data transmission management.
- Components, or different components, for example, the terminal device may further include an input-output device, a network access device, a bus, and the like.
- the processor 40 may be a central processing unit (Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), and application-specific integrated circuits (Applications) Specific Integrated Circuit (ASIC), off-the-shelf Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
- CPU Central Processing Unit
- DSP digital signal processor
- ASIC application-specific integrated circuits
- FPGA off-the-shelf Programmable Gate Array
- a general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
- the memory 41 may be an internal storage unit of the data transmission management device 4, such as a hard disk or a memory of the data transmission management device 4.
- the memory 41 may also be an external storage device of the data transmission management device 4, such as a plug-in hard disk, a smart media card (SMC), and a secure digital device provided on the data transmission management device 4. (Secure Digital, SD) card, Flash Card (FC), etc.
- the memory 41 may include both an internal storage unit and an external storage device of the apparatus 4 for data transmission management.
- the memory 41 is configured to store the computer-readable instructions and other programs and data required by the terminal device.
- the memory 41 may also be used to temporarily store data that has been output or is to be output.
- the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objective of the solution of this embodiment.
- the integrated module / unit When the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, this application implements all or part of the processes in the methods of the above embodiments, and can also be completed by computer-readable instructions instructing related hardware.
- the computer-readable instructions can be stored in a computer-readable storage medium. in.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本申请适用于数据通信技术领域,提供了一种数据传输管理的方法及装置,包括:通过根据缓存在终端中的业务数据生成终端数字签名、根据服务器中的目标数据生成目标数字签名,将这两个数字签名进行对比,确定服务端的数据相比于终端缓存中的数据是否发生更新,并在两个数字签名相同时指示终端直接显示缓存的业务数据;在两个数字签名不同时,通过确定数据发生变化的情况,针对性的发送发生变化了的变动数据和变动指令,以使终端根据变动情况输出信息并将变动数据缓存,有效减少了终端与服务器之间在数据传输时的网络访问流量以及服务器的负载压力,提升服务器性能和数据处理效率。
Description
本申请申明享有2018年8月1日递交的申请号为201810863118.5、名称为“一种数据传输管理的方法及装置”中国专利申请的优先权,该中国专利申请的整体内容以参考的方式结合在本申请中。
本申请属于数据通信技术领域,尤其涉及一种数据传输管理的方法及装置。
终端在被用户使用时,常常需要与服务器进行通信,例如,用户想要查看收藏夹或者购物车时,终端需要与服务器交互,来获取用户的收藏夹或购物车中的商品信息,并显示给用户。现有技术中为了提高处理效率,在终端中往往缓存有一部分数据,以更快地向用户展示期望的数据。终端的数据缓存机制一般是这样的:如果终端有缓存数据则先展示缓存数据,同时终端去向服务器请求数据,在终端获取到服务器返回的最新数据后马上刷新,并显示最新数据。
现有的数据缓存机制能够提高用户体验。但是,在终端缓存数据和服务器数据一样的情况下,服务器仍然会把数据照常返回给终端,存在网络流量浪费和服务器资源浪费等问题。
有鉴于此,本申请实施例提供了一种数据传输管理的方法及装置,以解决现有技术中在服务器和终端之间进行数据传输时,服务器会把终端已缓存的数据照常返回给终端,造成网络流量浪费和服务器资源浪费的问题。
本申请实施例的第一方面提供了一种数据传输管理的方法,包括:
获取终端发送的数据请求信息;所述数据请求信息用于请求获取最新的业务数据,所述数据请求信息中包括:所述业务数据的数据名称和终端数字签名;所述终端数字签名为所述终端缓存的所述业务数据的数字签名;
若服务器中数据名称对应的目标数据的目标数字签名与所述终端数字签名相同,则向所述终端发送业务数据维持不变指令;所述业务数据维持不变指令用于指示所述终端显示所述终端缓存的所述业务数据;
若所述目标数字签名与所述终端数字签名不同,则确定所述目标数据基于所述终端缓存的业务数据的变动类型和变动数据;
根据所述目标数据的变动类型向所述终端发送变动指令和所述变动数据;所述变动指令用于基于所述变动数据对所述目标数据进行修改。
本申请实施例的第二方面提供了一种数据传输管理的装置,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现以下步骤:
获取终端发送的数据请求信息;所述数据请求信息用于请求获取最新的业务数据,所述数据请求信息中包括:所述业务数据的数据名称和终端数字签名;所述终端数字签名为所述终端缓存的所述业务数据的数字签名;
若服务器中数据名称对应的目标数据的目标数字签名与所述终端数字签名相同,则向所述终端发送业务数据维持不变指令;所述业务数据维持不变指令用于指示所述终端显示所述终端缓存的所述业务数据;
若所述目标数字签名与所述终端数字签名不同,则确定所述目标数据基于所述终端缓存的业务数据的变动类型和变动数据;
根据所述目标数据的变动类型向所述终端发送变动指令和所述变动数据;所述变动指令用于基于所述变动数据对所述目标数据进行修改。
本申请实施例的第三方面提供了一种计算机可读存储介质,所述计算机存储介质存储有计算机可读指令,所述计算机可读指令包括程序指令,所述程序指令当被处理器执行时使所述处理器执行上述第一方面的方法。
实施本申请实施例提供的一种数据传输管理的方法及装置具有以下有益效果:通过根据缓存在终端中的业务数据生成终端数字签名、根据服务器中的目标数据生成目标数字签名,将这两个数字签名进行对比,确定服务端的数据相比于终端缓存中的数据是否发生更新,并在两个数字签名相同时指示终端直接显示缓存的业务数据;在两个数字签名不同时,通过确定数据发生变化的情况,针对性的发送发生变化了的变动数据和变动指令,以使终端根据变动情况输出信息并将变动数据缓存,而不需要获取全部的业务数据来进行数据的显示与更新,有效减少了终端与服务器之间在数据传输时的数据传输量、网络访问流量以及服务器的负载压力,提升服务器性能和数据传输管理的效率。
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1是本申请实施例一提供的数据传输管理的方法的具体实现流程图;
图2是本申请实施例二提供的数据传输管理的方法的具体实现流程图;
图3是本申请实施例三提供的数据传输管理的装置的示意图;
图4是本申请实施例四提供的数据传输管理的装置的示意图。
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
本申请实施例通过埋点数据得到关联数据,以对关联数据进行分析,得到整个时间段之内、某一操作过程中的用户行为情况和软件的运行状态情况,解决了根据单一埋点处获取到的操作信息单独分析某一点处的用户数据,不能对整个使用过程进行全面的监控,造成数据分析的局限性的问题。
实施例1
参见图1,图1是本申请一实施例提供的一种数据传输管理的方法的流程图。本实施例中数据传输管理的方法的执行主体包括但不限于计算机、服务器等装置,这些装置具有数据传输管理的功能。如图1所示的数据传输管理的方法可以包括以下步骤:
在S101中,获取终端发送的数据请求信息;所述数据请求信息用于请求获取最新的业务数据,所述数据请求信息中包括:所述业务数据的数据名称和终端数字签名;所述终端数字签名为所述终端缓存的所述业务数据的数字签名。
用户在使用终端时,通过不断向服务器发送数据请求,同时接收服务器发送的业务数据,以实现数据的同步和输出显示。其中,数据请求信息是被终端用于请求获取最新的业务数据,而业务数据可以为在服务器端当前最新的数据,例如,收藏夹、购物车中的数据。
在获取到数据请求信息之后,服务器根据数据请求信息中的数据名称查找对应的目标数据。考虑到同一数据名称对应的目标数据可能存在过更改(例如商家可能多次修改商品信息),服务器可以将历次更改的目标数据都保存在数据库中。在终端请求数据时,根据数据名称查找到最新的业务数据。
示例性的,当用户需要通过终端查看当前购物车中的信息时,可以通过触摸屏幕、点击鼠标、语音或者手势等方式来进入查看购物车的页面,同时终端向服务器发送数据请求。服务器在接收到数据请求之后,根据当前该用户账号的购物车数据,即目标数据,将目标数据发送至终端中,终端根据接收到的目标数据显示出对应的信息界面。
在本实施例中,终端向服务器发送的数据请求信息中,还包括了终端本地所缓存的业务数据的数字签名。数字签名是将本地数据的摘要信息用终端的私钥加密,与原文一起传送给服务器。服务器只有用终端的公钥才能解密被加密的摘要信息,然后用哈希函数对收到的原文产生一个摘要信息,与解密的摘要信息对比。如果相同,则说明收到的信息是完整的,在传输过程中没有被修改,否则说明信息被修改过,因此数字签名能够验证信息的完整性。本实施例中对业务数据进行数字签名的目的在于,通过将终端本地缓存的数据的数字签名与服务器当前最新的数据的数字签名进行对比,确定终端本地缓存的数据是否为最新的数据,即是否发生更新或者变动。
需要说明的是,本实施例中的终端包括但不限于手机、平板、计算机等设备,用于获取并显示从服务器中所获取的业务数据,此处对终端的类型不做限定。
在S102中,若服务器中数据名称对应的目标数据的目标数字签名与所述终端数字签名相同,则向所述终端发送业务数据维持不变指令;所述业务数据维持不变指令用于指示所述终端显示所述终端缓存的所述业务数据。
在终端的数据管理中,为了保证终端信息显示的效率,通过将之前从服务器中获取的数据缓存在终端本地,在用户需要查看这些数据时,终端先显示出来的是已经缓存的这些数据,而在其之后向服务器获取实时数据。在很多情况下,服务器中的数据与终端缓存的数据往往没有区别,而服务器也会将这些数据发送给终端,终端重新显示这些数据,这种情况很容易造成数据显示的延迟,浪费网络带宽的现象,甚至影响用户的使用体验。
在本实施例中,如果服务器中数据名称对应的目标数据的目标数字签名与终端数字签名相同,则说明服务器中的数据没有发生更新或者变动,终端的数据可以保持原先的样子不变。服务器向终端发送数据维持不变的指令。终端在接收到该指令之后,依旧根据当前缓存中的数据显示给用户。
在S103中,若所述目标数字签名与所述终端数字签名不同,则确定所述目标数据基于所述终端缓存的业务数据的变动类型和变动数据。
在获取到终端发送的数据请求信息之后,将终端数字签名与目标数字签名进行对比,若目标数字签名与终端数字签名不同,则说明服务器的目标数据与终端缓存的业务数据存在不一样的地方,即服务器中的数据存在更新或者变动的情况。在这种情况下,根据目标数据和业务数据之间的变化,确定目标数据的变动类型和变动数据。
进一步的,步骤S103中可以包括:
若所述目标数字签名与所述终端数字签名不同,则根据所述服务器中存储的所述数据名称对应数据中的标志位,确定所述目标数据基于所述终端缓存的业务数据的变动类型和变动数据;所述标志位为所述服务器中的数据在变动之后生成的标识,用于标识所述服务器中所述变动数据和所述变动类型。
具体的,服务器在对数据进行更新时,将在更新或者变动的地方做以标记,本实施例中称之为标志位。其中,标志位可以是在已被变动的目标数据处插入时间轴,通过时间轴作为标记。还可以通过标志位直接表示相对于上一次的变动是增加还是覆盖,例如,标志位为0则表示相对于上一次保存的业务数据是增加,标志位为1则表示覆盖。
根据各版本的数据签名的保存时间,在数据库中查找符合要求的数据签名,其中,符合要求的数据签名的保存时间晚于数据请求中的数据签名。根据符合要求的数据签名对应的标志位判断是增加还是覆盖。若符合要求的数据签名对应的标志位均为0,则判断状态操作字段为增加;若存在某一符合要求的数据签名的标志位为1,则状态操作字段为覆盖。这样,直接根据数据签名对应的标志位就可以判断状态操作字段,无需进行业务数据的比较,缩短了响应终端的时间,提高了业务数据处理效率。
在S104中,根据所述目标数据的变动类型向所述终端发送变动指令和所述变动数据;所述变动指令用于基于所述变动数据对所述目标数据进行修改。
在确定目标数据的变动类型之后,根据变动类型向终端发送变动指令和变动数据,其中,变动指令用于基于变动数据对目标数据进行修改,变动指令包括但不限于更新指令和新增指令。由于这些信息在服务器中的变化是随时变化的,因此,需要在接收到终端的数据请求之后,检测服务器中的目标数据的变动情况。
可选的,终端在根据变动指令和变动数据将缓存中的业务数据进行变动之后,将新的目标数据推送给用户,同时根据最新的数据生成新的数字签名,并用新的数字签名覆盖缓存中原先的数字签名。
可选的,服务器和终端在保存最新的数据时,可以将最新的数据、数字签名和数据名称对应保存,方便后期查找与管理。
需要说明的是,本实施例中的变动类型包括但不限于更新变动和新增变动,还可以是其他的变动,例如,将目标数据中的一部分数据删除的删除变动、将全部的目标数据格式转换的格式转换变动等,此处不做限定。
进一步的,步骤S104中可以包括:
在S1041中,若所述变动类型为数据的更新变动,则向所述终端发送更新指令和更新数据;更新指令用于将所述更新数据覆盖至所述终端中对应的缓存数据。
若确定了变动类型为更新变动时,则服务器中的目标数据存在被变动的情况。向终端发送更新指令和更新数据。其中,更新指令用于将更新数据覆盖至终端中对应的缓存数据。
例如,某个用户账号对应的购物车中某个物品的数量发生了变化,或者收藏夹中某个商品已经下架。在确定某个用户账号对应的购物车中的某个商品的数量发生变化时,向该终端发送更新指令和更新数据。其中,更新指令用于更新该商品的数量,更新数据用于表示需要进行更新的数据量对象和更新之后的数值,数据量对象可以是数据名称和数据标识符等,此处不做限定。
在S1042中,若所述变动类型为新增数据的新增变动,则向所述终端发送增加指令和所述新增数据;所述增加指令用于将所述新增数据添加到所述终端的缓存中。
若确定了变动类型为新增变动时,则服务器中的目标数据存在被增加的情况。例如,某个用户账号对应的购物车或者收藏夹中增加了某个新的物品,或者某个应用软件中增加了一个信息的账户信息等。在确定变动类型为新增数据的新增变动之后,向终端发送新增指令和新增数据。其中,增加指令用于将新增数据添加到终端的缓存中。
示例性的,在确定某个用户账号对应的购物车或者收藏夹中增加了某个新的物品时,向终端发送新增指令和新增数据,新增指令用于表示需要在购物车中增加这个物品的动作,新增数据为新增加的这个物品的名称和数量。在确定是某个应用软件中增加了一个信息的账户信息时,向终端发送新增指令和新增数据,新增指令用于表示需要在该应用软件中增加账户信息的动作,新增数据为该新增账户的账户信息等数据。
具体的,若最新的目标数据中包含终端缓存的全部内容,只是在基于终端缓存的基础上增加了一部分数据,则视为新增变动;若最新的目标数据没有包含终端缓存的业务数据的全部内容,则视为更新变动。
需要说明的,由于服务器中的目标数据的变动类型很多,不仅仅只有更新和新增两种变动情况,因此,可以根据数据变动情况识别处不同的变动类型,并根据这些变动类型确定对应的变动类型和变动数据,以使终端可以根据变动类型和变动数据进行对应的操作,本方案中对变动类型不做限定。
上述方案,通过根据缓存在终端中的业务数据生成终端数字签名、根据服务器中的目标数据生成目标数字签名,将这两个数字签名进行对比,确定服务端的数据相比于终端缓存中的数据是否发生更新,并在两个数字签名相同时指示终端直接显示缓存的业务数据;在两个数字签名不同时,通过确定数据发生变化的情况,针对性的发送发生变化了的变动数据和变动指令,以使终端根据变动情况输出信息并将变动数据缓存,而不需要获取全部的业务数据来进行数据的显示与更新,有效减少了终端与服务器之间在数据传输时的数据传输量、网络访问流量以及服务器的负载压力,提升服务器性能和数据传输管理的效率。
实施例2
图2示出了本申请实施例二提供的一种数据传输管理的方法的具体实现流程图。参见图2所示,相对于图1所述实施例,本实施例提供的一种数据传输管理的方法中还包括:S201~S202,具体详述如下:
在S201中,获取终端发送的修改请求;所述修改请求包括所需修改数据的数据名称和修改后的数据。
在本实施例中,在服务器对数据进行传输管理时,还存在一种情况,就是当终端需要主动修改数据的时候,则需要获取终端发送的修改请求,其中,修改请求包括所需修改数据的数据名称和修改后的数据。
终端可以是买家对应的终端,也可以是卖家对应的终端,此处不做限定。买家可以对收藏夹和购物车进行修改,例如增加商品、减少商品、修改商品类别和属性等;卖家可以对商品的具体信息进行修改,例如,可以修改商品的价格、描述、发货时间等,卖家修改商品的具体信息后,买家的收藏夹或购物车中的商品信息也会对应被修改。
示例性的,当终端用户需要修改某个应用软件的账户头像时,则先向服务器发送修改请求,其中修改请求中包括需要修改数据名称为账户头像,修改后的数据为新的账户头像。
在S202中,根据所述修改请求,对所述所需修改数据的数据名称对应的数据进行修改并保存,同时根据修改之后的数据生成并保存新的数字签名。
服务器在接收到终端发送的修改请求之后,对所需修改数据的数据名称对应的数据进行修改并保存,以保证服务端与终端中的数据同步。
示例性地,在服务器在接收到终端的修改账户头像的请求之后,查找该账户的账户信息,并用修改请求中的账户头像修改之前的账户头像。
由于在获取到终端发送的数据请求之后,服务器需要将数据请求中的终端数字签名和目标数字签名进行对比,为了保证数字签名对比的效率,将修改之后的数据生成新的数字签名,并保存在服务器中。
进一步的,服务器中可以设置有数据库,数据库中存储有数据名称对应的目标数据及其数字签名。目标数据和数字签名是一一对应的关系,一个数据名称可以对应多个目标数据和数字签名,因为该数据名称可能有多次修改历史,数据库中可以将多次修改历史对应的目标数据和数字签名都保存下来。
相应的,服务器保存有将数据签名最后一次返回给终端时对应的时间。也就是说,服务器的数据库中至少保存有目标数据、数字签名、数据名称、最后一次返回给终端的时间四者的对应关系。其缓存的详细信息例如下表所示:
| 数据名称 | 目标数据 | 数字签名 | 返回终端的时间 |
| 用户A的购物车 | 11111……111 | XXXX | 无 |
| 用户A的购物车 | 22222……222 | YYYY | 2018.3.20,11:30 |
| 用户A的购物车 | 33333……333 | ZZZZ | 2018.3.21,15:30 |
| 用户A的购物车 | 22222……222 | YYYY | 无 |
示例性地,在第一行中,表示用户A的购物车的数据名称中的目标数据为“11111……111”,目标数据对应的数字签名为“XXXX”,“无”表示没有返回给终端,说明终端从未获取过该业务数据。第二行的业务数据与最后一行的相同,数据签名也相同,这说明用户(买家或卖家)又将业务数据修改回之前的了。
可选的,当终端需要获取用户欲查看的目标数据时,向服务器发送数据请求,服务器根据数据请求返回状态操作字段。终端根据状态操作字段执行相应的操作。
具体的,可以查找数据名称对应的最新的数据签名,确定最新的数据签名是否曾经返给过终端。若是,判断返给终端的时间是否在终端上次清理缓存之后,若在之后,说明终端缓存中还有该业务数据,则直接返回表示维持不变的状态操作字段以及最新的数据签名。示例性地,并一并参阅上表中,最新的数据签名是YYYY,在2018.3.20,11:30已经返给过终端,若终端上次清理缓存是在2018.3.20,11:30之前,则可以直接将该数据签名返给终端,供终端将对应的业务数据推送给用户。
上述方案,通过获取终端发送的修改请求,并根据修改请求中所需修改数据的数据名称和修改后的数据修改服务器中的数据,保证了终端数据与服务器中的数据的同步性,同时根据修改之后的数据生成并保存新的数字签名,提高服务器与终端之间数据传输的效率。
实施例3
参见图3,图3是本申请实施例三提供的一种数据传输管理的装置的示意图。本实施例的数据传输管理的装置包括的各单元用于执行图1对应的实施例中的各步骤,具体请参阅图1及图1对应的实施例中的相关描述,此处不赘述。本实施例的数据传输管理的装置包括:请求获取单元301、第一指令单元302、数据变动单元303以及第二指令单元304。
请求获取单元301,用于获取终端发送的数据请求信息;所述数据请求信息用于请求获取最新的业务数据,所述数据请求信息中包括:所述业务数据的数据名称和终端数字签名;所述终端数字签名为所述终端缓存的所述业务数据的数字签名;
第一指令单元302,用于若服务器中数据名称对应的目标数据的目标数字签名与所述终端数字签名相同,则向所述终端发送业务数据维持不变指令;所述业务数据维持不变指令用于指示所述终端显示所述终端缓存的所述业务数据。
数据变动单元303,用于若所述目标数字签名与所述终端数字签名不同,则确定所述目标数据基于所述终端缓存的业务数据的变动类型和变动数据;
第二指令单元304,用于根据所述目标数据的变动类型向所述终端发送变动指令和所述变动数据;所述变动指令用于基于所述变动数据对所述目标数据进行修改。
进一步的,数据变动单元303可以包括:
标志位单元,用于若所述目标数字签名与所述终端数字签名不同,则根据所述服务器中存储的所述数据名称对应数据中的标志位,确定所述目标数据基于所述终端缓存的业务数据的变动类型和变动数据;
所述标志位为所述服务器中的数据在变动之后生成的标识,用于标识所述服务器中所述变动数据和所述变动类型。
进一步的,第二指令单元304可以包括:
更新单元,用于若所述变动类型为数据的更新变动,则向所述终端发送更新指令和更新数据;所述更新指令用于将所述更新数据覆盖至所述终端中对应的缓存数据;
新增单元,用于若所述变动类型为数据的新增变动,则向所述终端发送新增指令和新增数据;所述新增指令用于将所述新增数据添加到所述终端的缓存中。
进一步的,数据传输管理的装置还可以包括:
修改请求获取单元,用于获取终端发送的修改请求;所述修改请求包括所需修改数据的数据名称和修改后的数据;
数据修改保存单元,用于根据所述修改请求,对所述所需修改数据的数据名称对应的数据进行修改并保存,同时根据修改之后的数据生成并保存新的数字签名。
上述方案,通过根据缓存在终端中的业务数据生成终端数字签名、根据服务器中的目标数据生成目标数字签名,将这两个数字签名进行对比,确定服务端的数据相比于终端缓存中的数据是否发生更新,并在两个数字签名相同时指示终端直接显示缓存的业务数据;在两个数字签名不同时,通过确定数据发生变化的情况,针对性的发送发生变化了的变动数据和变动指令,以使终端根据变动情况输出信息并将变动数据缓存,有效减少了终端与服务器之间在数据传输时的网络访问流量以及服务器的负载压力,提升服务器性能和数据处理效率。
实施例4
图4是本申请实施例四提供的数据传输管理的装置的示意图。如图4所示,该实施例的数据传输管理的装置4包括:处理器40、存储器41以及存储在所述存储器41中并可在所述处理器40上运行的计算机可读指令42。所述处理器40执行所述计算机可读指令42时实现上述各个数据传输管理的方法实施例中的步骤,例如图1所示的步骤101至104。或者,所述处理器40执行所述计算机可读指令42时实现上述各装置实施例中各模块/单元的功能,例如图3所示单元301至304的功能。
示例性的,所述计算机可读指令42可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器41中,并由所述处理器40执行,以完成本申请。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机可读指令指令段,该指令段用于描述所述计算机可读指令42在所述数据传输管理的装置4中的执行过程。
所述数据传输管理的装置4可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。所述终端设备可包括,但不仅限于,处理器40、存储器41。本领域技术人员可以理解,图4仅仅是数据传输管理的装置4的示例,并不构成对数据传输管理的装置4的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述终端设备还可以包括输入输出设备、网络接入设备、总线等。
所称处理器40可以是中央处理单元(Central
Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application
Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
所述存储器41可以是所述数据传输管理的装置4的内部存储单元,例如数据传输管理的装置4的硬盘或内存。所述存储器41也可以是所述数据传输管理的装置4的外部存储设备,例如所述数据传输管理的装置4上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card,FC)等。进一步地,所述存储器41还可以既包括所述数据传输管理的装置4的内部存储单元也包括外部存储设备。所述存储器41用于存储所述计算机可读指令以及所述终端设备所需的其他程序和数据。所述存储器41还可以用于暂时地存储已经输出或者将要输出的数据。
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
所述集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一计算机可读存储介质中。
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。
Claims (20)
- 一种数据传输管理的方法,其特征在于,包括:获取终端发送的数据请求信息;所述数据请求信息用于请求获取最新的业务数据,所述数据请求信息中包括:所述业务数据的数据名称和终端数字签名;所述终端数字签名为所述终端缓存的所述业务数据的数字签名;若服务器中的数据名称对应的目标数据的目标数字签名与所述终端数字签名相同,则向所述终端发送业务数据维持不变指令;所述业务数据维持不变指令用于指示所述终端显示所述终端缓存的所述业务数据;若所述目标数字签名与所述终端数字签名不同,则确定所述目标数据基于所述终端缓存的业务数据的变动类型和变动数据;根据所述目标数据的变动类型向所述终端发送变动指令和所述变动数据;所述变动指令用于基于所述变动数据对所述目标数据进行修改。
- 如权利要求1所述的数据传输管理的方法,其特征在于,所述若所述目标数字签名与所述终端数字签名不同,则确定所述目标数据基于所述终端缓存的业务数据的变动类型和变动数据,包括:若所述目标数字签名与所述终端数字签名不同,则根据所述服务器中存储的所述数据名称对应数据中的标志位,确定所述目标数据基于所述终端缓存的业务数据的变动类型和变动数据;所述标志位为所述服务器中的数据在变动之后生成的标识,用于标识所述服务器中所述变动数据和所述变动类型。
- 如权利要求2所述的数据传输管理的方法,其特征在于,所述变动指令包括更新指令或新增指令;所述根据所述目标数据的变动类型向所述终端发送变动指令和所述变动数据,包括:若所述变动类型为数据的更新变动,则向所述终端发送更新指令和更新数据;所述更新指令用于将所述更新数据覆盖至所述终端中对应的缓存数据;若所述变动类型为数据的新增变动,则向所述终端发送新增指令和新增数据;所述新增指令用于将所述新增数据添加到所述终端的缓存中。
- 如权利要求1或2所述的数据传输管理的方法,其特征在于,所述方法还包括:获取终端发送的修改请求;所述修改请求包括所需修改数据的数据名称和修改后的数据;根据所述修改请求,对所述所需修改数据的数据名称对应的数据进行修改并保存,同时根据修改之后的数据生成并保存新的数字签名。
- 如权利要求3所述的数据传输管理的方法,其特征在于,所述方法还包括:获取终端发送的修改请求;所述修改请求包括所需修改数据的数据名称和修改后的数据;根据所述修改请求,对所述所需修改数据的数据名称对应的数据进行修改并保存,同时根据修改之后的数据生成并保存新的数字签名。
- 一种数据传输管理的装置,其特征在于,包括存储器以及处理器,所述存储器中存储有可在所述处理器上运行的计算机可读指令,其特征在于,所述处理器执行所述计算机可读指令时,实现如下步骤:获取终端发送的数据请求信息;所述数据请求信息用于请求获取最新的业务数据,所述数据请求信息中包括:所述业务数据的数据名称和终端数字签名;所述终端数字签名为所述终端缓存的所述业务数据的数字签名;若服务器中的数据名称对应的目标数据的目标数字签名与所述终端数字签名相同,则向所述终端发送业务数据维持不变指令;所述业务数据维持不变指令用于指示所述终端显示所述终端缓存的所述业务数据;若所述目标数字签名与所述终端数字签名不同,则确定所述目标数据基于所述终端缓存的业务数据的变动类型和变动数据;根据所述目标数据的变动类型向所述终端发送变动指令和所述变动数据;所述变动指令用于基于所述变动数据对所述目标数据进行修改。
- 如权利要求6所述的数据传输管理的装置,其特征在于,所述若所述目标数字签名与所述终端数字签名不同,则确定所述目标数据基于所述终端缓存的业务数据的变动类型和变动数据,包括:若所述目标数字签名与所述终端数字签名不同,则根据所述服务器中存储的所述数据名称对应数据中的标志位,确定所述目标数据基于所述终端缓存的业务数据的变动类型和变动数据;所述标志位为所述服务器中的数据在变动之后生成的标识,用于标识所述服务器中所述变动数据和所述变动类型。
- 如权利要求7所述的数据传输管理的装置,其特征在于,所述变动指令包括更新指令或新增指令;所述根据所述目标数据的变动类型向所述终端发送变动指令和所述变动数据,包括:若所述变动类型为数据的更新变动,则向所述终端发送更新指令和更新数据;所述更新指令用于将所述更新数据覆盖至所述终端中对应的缓存数据;若所述变动类型为数据的新增变动,则向所述终端发送新增指令和新增数据;所述新增指令用于将所述新增数据添加到所述终端的缓存中。
- 如权利要求6或7所述的数据传输管理的装置,其特征在于,所述方法还包括:获取终端发送的修改请求;所述修改请求包括所需修改数据的数据名称和修改后的数据;根据所述修改请求,对所述所需修改数据的数据名称对应的数据进行修改并保存,同时根据修改之后的数据生成并保存新的数字签名。
- 如权利要求8所述的数据传输管理的装置,其特征在于,所述方法还包括:获取终端发送的修改请求;所述修改请求包括所需修改数据的数据名称和修改后的数据;根据所述修改请求,对所述所需修改数据的数据名称对应的数据进行修改并保存,同时根据修改之后的数据生成并保存新的数字签名。
- 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可读指令,其特征在于,所述计算机可读指令被处理器执行时实现:获取终端发送的数据请求信息;所述数据请求信息用于请求获取最新的业务数据,所述数据请求信息中包括:所述业务数据的数据名称和终端数字签名;所述终端数字签名为所述终端缓存的所述业务数据的数字签名;若服务器中的数据名称对应的目标数据的目标数字签名与所述终端数字签名相同,则向所述终端发送业务数据维持不变指令;所述业务数据维持不变指令用于指示所述终端显示所述终端缓存的所述业务数据;若所述目标数字签名与所述终端数字签名不同,则确定所述目标数据基于所述终端缓存的业务数据的变动类型和变动数据;根据所述目标数据的变动类型向所述终端发送变动指令和所述变动数据;所述变动指令用于基于所述变动数据对所述目标数据进行修改。
- 如权利要求11所述的计算机可读存储介质,其特征在于,所述若所述目标数字签名与所述终端数字签名不同,则确定所述目标数据基于所述终端缓存的业务数据的变动类型和变动数据,包括:若所述目标数字签名与所述终端数字签名不同,则根据所述服务器中存储的所述数据名称对应数据中的标志位,确定所述目标数据基于所述终端缓存的业务数据的变动类型和变动数据;所述标志位为所述服务器中的数据在变动之后生成的标识,用于标识所述服务器中所述变动数据和所述变动类型。
- 如权利要求12所述的计算机可读存储介质,其特征在于,所述变动指令包括更新指令或新增指令;所述根据所述目标数据的变动类型向所述终端发送变动指令和所述变动数据,包括:若所述变动类型为数据的更新变动,则向所述终端发送更新指令和更新数据;所述更新指令用于将所述更新数据覆盖至所述终端中对应的缓存数据;若所述变动类型为数据的新增变动,则向所述终端发送新增指令和新增数据;所述新增指令用于将所述新增数据添加到所述终端的缓存中。
- 如权利要求11或12所述的计算机可读存储介质,其特征在于,所述方法还包括:获取终端发送的修改请求;所述修改请求包括所需修改数据的数据名称和修改后的数据;根据所述修改请求,对所述所需修改数据的数据名称对应的数据进行修改并保存,同时根据修改之后的数据生成并保存新的数字签名。
- 如权利要求13所述的计算机可读存储介质,其特征在于,所述方法还包括:获取终端发送的修改请求;所述修改请求包括所需修改数据的数据名称和修改后的数据;根据所述修改请求,对所述所需修改数据的数据名称对应的数据进行修改并保存,同时根据修改之后的数据生成并保存新的数字签名。
- 一种服务器,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,其特征在于,所述处理器执行所述计算机可读指令时实现如下步骤:获取终端发送的数据请求信息;所述数据请求信息用于请求获取最新的业务数据,所述数据请求信息中包括:所述业务数据的数据名称和终端数字签名;所述终端数字签名为所述终端缓存的所述业务数据的数字签名;若服务器中的数据名称对应的目标数据的目标数字签名与所述终端数字签名相同,则向所述终端发送业务数据维持不变指令;所述业务数据维持不变指令用于指示所述终端显示所述终端缓存的所述业务数据;若所述目标数字签名与所述终端数字签名不同,则确定所述目标数据基于所述终端缓存的业务数据的变动类型和变动数据;根据所述目标数据的变动类型向所述终端发送变动指令和所述变动数据;所述变动指令用于基于所述变动数据对所述目标数据进行修改。
- 如权利要求16所述的服务器,其特征在于,所述若所述目标数字签名与所述终端数字签名不同,则确定所述目标数据基于所述终端缓存的业务数据的变动类型和变动数据,包括:若所述目标数字签名与所述终端数字签名不同,则根据所述服务器中存储的所述数据名称对应数据中的标志位,确定所述目标数据基于所述终端缓存的业务数据的变动类型和变动数据;所述标志位为所述服务器中的数据在变动之后生成的标识,用于标识所述服务器中所述变动数据和所述变动类型。
- 如权利要求17所述的服务器,其特征在于,所述变动指令包括更新指令或新增指令;所述根据所述目标数据的变动类型向所述终端发送变动指令和所述变动数据,包括:若所述变动类型为数据的更新变动,则向所述终端发送更新指令和更新数据;所述更新指令用于将所述更新数据覆盖至所述终端中对应的缓存数据;若所述变动类型为数据的新增变动,则向所述终端发送新增指令和新增数据;所述新增指令用于将所述新增数据添加到所述终端的缓存中。
- 如权利要求16或17所述的服务器,其特征在于,所述方法还包括:获取终端发送的修改请求;所述修改请求包括所需修改数据的数据名称和修改后的数据;根据所述修改请求,对所述所需修改数据的数据名称对应的数据进行修改并保存,同时根据修改之后的数据生成并保存新的数字签名。
- 如权利要求18所述的服务器,其特征在于,所述方法还包括:获取终端发送的修改请求;所述修改请求包括所需修改数据的数据名称和修改后的数据;根据所述修改请求,对所述所需修改数据的数据名称对应的数据进行修改并保存,同时根据修改之后的数据生成并保存新的数字签名。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810863118.5A CN109246035A (zh) | 2018-08-01 | 2018-08-01 | 一种数据传输管理的方法及装置 |
| CN201810863118.5 | 2018-08-01 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2020024375A1 true WO2020024375A1 (zh) | 2020-02-06 |
Family
ID=65073428
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2018/105053 Ceased WO2020024375A1 (zh) | 2018-08-01 | 2018-09-11 | 一种数据传输管理的方法及装置 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN109246035A (zh) |
| WO (1) | WO2020024375A1 (zh) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113268499A (zh) * | 2021-06-03 | 2021-08-17 | 京东方科技集团股份有限公司 | 数据采集方法、装置、数据采集系统及服务器 |
| CN115794923A (zh) * | 2022-12-05 | 2023-03-14 | 用友网络科技股份有限公司 | 数据处理方法、装置、可读存储介质和数据系统 |
| CN116192759A (zh) * | 2022-12-13 | 2023-05-30 | 网易(杭州)网络有限公司 | 数据传输量的调整方法、装置、电子设备及存储介质 |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101082915A (zh) * | 2006-05-29 | 2007-12-05 | 陈鹰 | 一种浏览器本地页面的存储和更新方法 |
| WO2015010598A1 (en) * | 2013-07-25 | 2015-01-29 | Tencent Technology (Shenzhen) Company Limited | Method, server, client, and system for releasing instant messaging key-value data |
| CN104391725A (zh) * | 2014-12-08 | 2015-03-04 | 畅捷通信息技术股份有限公司 | 页面展示方法和页面展示装置 |
| CN106682176A (zh) * | 2016-12-29 | 2017-05-17 | 北京五八信息技术有限公司 | 页面的加载方法、装置和设备 |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104539578B (zh) * | 2014-12-01 | 2018-03-16 | 中国科学院计算机网络信息中心 | 一种rpki数据的主动同步方法和系统 |
| CN104468807B (zh) * | 2014-12-12 | 2018-11-13 | 北京易网无际科技有限公司 | 进行网页缓存的处理方法、云端装置、本地装置及系统 |
| CN107864173A (zh) * | 2017-06-26 | 2018-03-30 | 平安普惠企业管理有限公司 | 终端页面缓存方法、系统及可读存储介质 |
| CN107301051A (zh) * | 2017-06-27 | 2017-10-27 | 深圳市金立通信设备有限公司 | 终端动态数据的缓存与交互方法、终端、系统及计算机可读存储介质 |
-
2018
- 2018-08-01 CN CN201810863118.5A patent/CN109246035A/zh active Pending
- 2018-09-11 WO PCT/CN2018/105053 patent/WO2020024375A1/zh not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101082915A (zh) * | 2006-05-29 | 2007-12-05 | 陈鹰 | 一种浏览器本地页面的存储和更新方法 |
| WO2015010598A1 (en) * | 2013-07-25 | 2015-01-29 | Tencent Technology (Shenzhen) Company Limited | Method, server, client, and system for releasing instant messaging key-value data |
| CN104391725A (zh) * | 2014-12-08 | 2015-03-04 | 畅捷通信息技术股份有限公司 | 页面展示方法和页面展示装置 |
| CN106682176A (zh) * | 2016-12-29 | 2017-05-17 | 北京五八信息技术有限公司 | 页面的加载方法、装置和设备 |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113268499A (zh) * | 2021-06-03 | 2021-08-17 | 京东方科技集团股份有限公司 | 数据采集方法、装置、数据采集系统及服务器 |
| CN115794923A (zh) * | 2022-12-05 | 2023-03-14 | 用友网络科技股份有限公司 | 数据处理方法、装置、可读存储介质和数据系统 |
| CN116192759A (zh) * | 2022-12-13 | 2023-05-30 | 网易(杭州)网络有限公司 | 数据传输量的调整方法、装置、电子设备及存储介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN109246035A (zh) | 2019-01-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20250321979A1 (en) | Distributed data access control | |
| CN105094707B (zh) | 一种数据存储、读取方法及装置 | |
| CN113271359A (zh) | 刷新缓存数据的方法、装置、电子设备和存储介质 | |
| US11909861B2 (en) | Privately querying a database with private set membership using succinct filters | |
| CN113722273B (zh) | 一种快照生成方法和装置 | |
| CN107844488B (zh) | 数据查询方法和装置 | |
| WO2020024375A1 (zh) | 一种数据传输管理的方法及装置 | |
| US10394781B2 (en) | Synchronization of offline data | |
| CN112860953A (zh) | 图数据库的数据导入方法、装置、设备及存储介质 | |
| CN104580428A (zh) | 一种数据路由方法、数据管理装置和分布式存储系统 | |
| CN112883307B (zh) | 一种缓存更新方法、装置和社交网络系统 | |
| CN110347751B (zh) | 管理cdn系统业务属性的方法及装置 | |
| CN113760965B (zh) | 数据查询的方法和装置 | |
| CN112711572A (zh) | 适用于分库分表的在线扩容方法和装置 | |
| CN116541145A (zh) | 数据调用方法、装置、计算机设备和计算机存储介质 | |
| CN116233253A (zh) | 业务处理方法、装置、计算机设备和存储介质 | |
| CN113722548A (zh) | 一种业务系统中引用关系的处理方法和装置 | |
| CN113763129A (zh) | 一种处理订单的方法和装置 | |
| CN113268488A (zh) | 数据持久化的方法和装置 | |
| CN113760967B (zh) | 一种数据查询方法和装置 | |
| CN112799863A (zh) | 用于输出信息的方法和装置 | |
| US11740807B2 (en) | Method and system for mapping data protection policies to data clusters | |
| CN118838959A (zh) | 一种同步数据的处理方法和装置 | |
| WO2025222467A1 (zh) | 消息交互方法、装置、设备和存储介质 | |
| CN119719141A (zh) | 数据查询方法、装置和系统 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18928846 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 18928846 Country of ref document: EP Kind code of ref document: A1 |