A client buffer update method and device in distributed system

A distributed system and client-side technology, applied in the field of information transmission in distributed systems, can solve problems such as efficiency defects, inability to ensure timely update of cached data, inability to know update cache, etc., to achieve the effect of ensuring data consistency

Active Publication Date: 2008-03-19
KINGDEE SOFTWARE(CHINA) CO LTD
View PDF0 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] However, the general existing technologies do not have a corresponding update mechanism. Even if there is inconsistency in the business data cached in each online client, the client that needs to update the cache can only obtain the latest business data by logging in again. The client actually cannot know when the cache needs to be updated, so the above will not only make the user operation very inconvenient (requires multiple re-logins), but also cannot guarantee the timely update of the cached data
[0007] In another solution in the prior art, a separate "cache refresh" function is provided on each client. When the user triggers this function, manual cache update can be directly realized. Although this solution is better than the above-mentioned re-login method It's a bit better, but it's still an inconvenience and doesn't solve the problem at its root, since manual operations still have efficiency flaws

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A client buffer update method and device in distributed system
  • A client buffer update method and device in distributed system
  • A client buffer update method and device in distributed system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0060] Referring to FIG. 1 , it shows Embodiment 1 of a method for updating client cache data in a distributed system according to the present invention, which may include the following steps:

[0061] Step 101. After a data processing operation at the server end is remotely invoked and successfully executed, put the operation identification information and the object type involved in the first set.

[0062] In the following detailed description, the word "method" will be directly used instead of "operation" for description. The operation identification information in step 101 may generally be a method name or serial number, and the like. Step 101 can be aimed at the successful execution of any interface method of the server.

[0063] Step 102, at regular intervals, identify the write operation set from the first set, and place the object types involved in it in the server context of all logged-in users; there are many ways to identify write operations, simple and convenient ...

Embodiment 2

[0075] Referring to FIG. 2 , it shows Embodiment 2 of a method for updating client cache data in a distributed system, which may include the following steps:

[0076] Step 201, when a data processing operation at the server end is remotely invoked and successfully executed, put the operation identification information and the object type involved in the first set;

[0077] Step 202, after the server executes an operation related to user rights, put the relevant user IDs in the second set;

[0078] Obviously, there is no necessary sequence between steps 201 and 202 .

[0079] Step 203, at regular intervals, identify the write operation set from the first set, and place the object types involved in the first set and the user identifiers in the second set in the server context of all logged-in users;

[0080] Step 204, accept the polling request from the client, and return the corresponding object type and user ID from the server context;

[0081] Step 205, if the client's logi...

Embodiment 3

[0094] Referring to FIG. 3 , a method embodiment 3 for updating client cache data in a distributed system is shown, including the following steps:

[0095] Step 301, when a data processing operation at the server end is remotely invoked and successfully executed, put the operation identification information and the object type involved in the first set;

[0096] Step 302, at regular intervals, identify the write operation set from the first set, convert the object type involved into the corresponding cache ID of the client, and place the corresponding cache ID in the service of all logged-in users In the context of the client; the cached data of the client is partitioned and managed according to the object type:

[0097] Step 303, accepting the polling request from the client, and returning the corresponding buffer identifier from the server context;

[0098] Step 304, the client clears the data in the corresponding cache according to the obtained cache identifier.

[0099] ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a method of updating caching data at a client end in a distributed system, which includes: when data processing operation on a server is invoked remotely and successively executed, the operation mark information and the related object type thereof are placed in a first set; a write operation set is identified from the first set and the related object type is placed in the server context of all login users at regular intervals; polling request of the client end is received and the corresponding object type is returned from the server content; the client end empties the data related with the object type in cache; and perform partition management to the caching data of client end according to the object type. In the invention, the server monitors the write method, the client end initiates the polling and performs the partition management to the caching data of the client end. The cooperation work of the measures can guarantee the data consistency of all online client ends connected with the same server.

Description

technical field [0001] The invention relates to the technical field of information transmission in a distributed system, in particular to a method and device for updating a client cache in a distributed system. Background technique [0002] A distributed system is a system that supports distributed processing, and is a system that executes tasks on a multi-processor architecture interconnected by a communication network. For a large-scale distributed software system deployed on a wide area network, it is generally divided into three layers: client, server, and database, and business data is generally stored in the database. In order to read business data, the client needs to make a remote method call with the server, and then the server communicates with the database, obtains business data from it, performs some processing, and returns it to the client. [0003] In the field of Java, the remote method call is a communication mechanism, which can realize object-to-object com...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/08G06F9/44
Inventor 殷慷杨海悌
Owner KINGDEE SOFTWARE(CHINA) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products