Asynchronous data storage operations

文档序号:1722477 发布日期:2019-12-17 浏览:33次 中文

阅读说明:本技术 异步数据存储操作 (Asynchronous data storage operations ) 是由 A·K·伊恩格尔 于 2018-04-24 设计创作,主要内容包括:处理系统服务器以及使用该服务器提供数据值的方法。所述服务器维护对象的缓存。所述服务器执行异步计算以确定对象的所述值。响应于所述异步计算已经确定所述对象的所述值之前对所述对象的请求,从所述缓存返回所述对象的值。在所述异步计算确定所述对象的所述值之后,响应对所述对象的请求返回由所述异步计算确定的所述对象的值。(a processing system server and a method for providing data values using the same. The server maintains a cache of objects. The server performs an asynchronous calculation to determine the value of the object. Returning a value of the object from the cache in response to the asynchronous computation having determined a request for the object before the value of the object. After the asynchronous calculation determines the value of the object, returning the value of the object determined by the asynchronous calculation in response to a request for the object.)

1. In a processing system comprised of servers, a method for the servers to provide data values, comprising:

The server maintains a cache of objects;

The server performing an asynchronous calculation to determine the value of an object;

In response to a request for the object before the asynchronous computation has determined the value of the object, returning the value of the object from the cache of objects; and

In response to a request for the object after the asynchronous computation has determined the value of the object, returning the value of the object determined by the asynchronous computation.

2. The method of claim 1, wherein the asynchronous computation comprises at least one expectation.

3. The method of claim 1, wherein the asynchronous computation comprises at least one process or thread.

4. The method of claim 1, further comprising:

In response to the asynchronous calculation determining the value of the object, updating the cache with the value of the object determined by the asynchronous calculation.

5. The method of claim 1, wherein the step of the server performing asynchronous computations occurs in response to a request for the object.

6. The method of claim 1, wherein the step of the server performing asynchronous computations occurs periodically.

7. The method of claim 1, wherein the step of the server performing asynchronous calculations occurs after a time interval has elapsed.

8. The method of claim 1, wherein the server performs the step of asynchronous computation occurring at a frequency related to how frequently the object changes.

9. The method of claim 1, wherein the server performs the step of asynchronously calculating occurs with a frequency related to a degree of importance with a current value of the object.

10. The method of claim 1, further comprising at least one additional server, wherein the asynchronous computation determines the value of the object by querying the at least one additional server.

11. the method of claim 10, further comprising

The server stores object o2 in the object's cache;

The server performing an asynchronous computation c2 to store an object o2 on the at least one additional server; and

In response to receiving a request for object o2 before asynchronous computation c2 completes execution, the request from the object's cache is satisfied.

12. The method of claim 10, wherein the at least one additional server comprises a plurality of servers and the asynchronous computation receives different values from at least two of the plurality of servers.

13. The method of claim 12, wherein the asynchronous computation determines the value of the object from values most frequently returned by the at least one additional server.

14. the method of claim 12, wherein the different value has a timestamp associated therewith, and wherein the asynchronous calculation determines the value of the object based on the timestamp.

15. The method of claim 10, further comprising

The server performs asynchronous computation c2 to store object o2 on the at least one other server.

16. The method of claim 15, further comprising:

In response to the asynchronous calculation c2 storing an object o2 on the at least one additional server, the object's cache is updated with the value of the object o 2.

17. the method of claim 15, wherein asynchronous computation c2 includes an error handling method further comprising:

in response to the asynchronous calculation c2 failing to store the object o2, retrying to store the object o2 on the at least one other server using the error handling method.

18. A processing system, comprising:

A server;

A persistent memory;

a network interface device for communicating with one or more networks; and

At least one processor communicatively coupled with the server, the persistent storage, and the network interface device, the at least one processor, in response to executing computer instructions, performing operations comprising:

The server maintains a cache of objects;

The server performing an asynchronous calculation to determine the value of an object;

In response to a request for the object before the asynchronous computation has determined the value of the object, returning the value of the object from the cache of objects; and

in response to a request for the object after the asynchronous computation has determined the value of the object, returning the value of the object determined by the asynchronous computation.

19. the processing system of claim 18, wherein the asynchronous computation comprises at least one expectation.

20. The processing system of claim 18, wherein the asynchronous computation comprises at least one process or thread.

21. The processing system of claim 18, wherein the at least one processor, in response to executing the computer instructions, is configured to perform operations comprising:

In response to the asynchronous calculation determining the value of the object, updating the cache with the value of the object determined by the asynchronous calculation.

22. The processing system of claim 18, wherein the server performing the asynchronous computation occurs in response to a request for the object.

23. The processing system of claim 18, wherein the step of the server performing asynchronous computations occurs periodically.

24. The processing system of claim 18, wherein the step of the server performing asynchronous computations occurs after a time interval has elapsed

25. the processing system of claim 18, wherein the server performs the step of asynchronous computation occurring at a frequency related to how frequently the object changes.

26. A computer program product comprising a computer readable storage medium having program instructions embodied thereon, the program instructions being executable by a processor to cause the processor to perform the method of any of claims 1 to 17.

Background

the present invention relates generally to data caching in computer systems. Data storage may be very delayed. This is particularly true for cloud storage, where the latency of retrieving and storing data may be high, as the storage server may be remote from the client. There is a need for a method of reducing the latency of data storage operations.

Disclosure of Invention

According to various embodiments, a processing system including a server, and a method of providing data values for the server, is disclosed, comprising: the server maintains a cache of objects; the server performing an asynchronous calculation to determine a value of the object; returning the value of the object from the cache in response to a request by the object before the asynchronous calculation determines the value of the object; and returning the value of the object determined by the asynchronous calculation in response to a request by the object after the value of the object is determined by the asynchronous calculation.

according to various embodiments of the present invention, there is provided a processing system comprising: a server; a persistent memory; a network interface device for communicating with one or more networks; and at least one processor communicatively coupled to the server, the persistent storage, and the network interface device, the at least one processor, in response to executing computer instructions, operable to perform operations comprising: the server maintaining a cache of objects in the persistent storage; the server performing an asynchronous calculation to determine a value of the object; returning the value of the object from the cache in response to a request by the object before the asynchronous calculation determines the value of the object; and returning the value of the object determined by the asynchronous calculation in response to a request by the object after the value of the object is determined by the asynchronous calculation.

Drawings

The accompanying figures, where like reference numerals refer to identical or functionally similar elements throughout the separate views and which together with the detailed description below are incorporated in and form part of the specification, serve to further illustrate various embodiments and to explain various principles and all advantages all in accordance with the present invention, wherein:

FIG. 1 shows a block diagram of an example of a client-server system according to an embodiment of the invention;

FIG. 2 illustrates a block diagram of an example of a method for asynchronous data storage operations, according to an embodiment of the invention;

FIG. 3 illustrates a block diagram of an example processing system server node, according to an embodiment of the present invention;

FIG. 4 depicts a cloud computing environment suitable for use with embodiments of the present invention; and

Fig. 5 depicts abstraction model layers according to the cloud computing embodiment of fig. 4.

Detailed Description

As required, detailed embodiments are disclosed herein; however, it is to be understood that the disclosed embodiments are merely examples and that the systems and methods described below may be embodied in various forms. Therefore, specific structural and functional details disclosed herein are not to be interpreted as limiting, but merely as a basis for the claims and as a representative basis for teaching one skilled in the art to variously employ the present subject matter in virtually any appropriately detailed structure. Further, the terms and phrases used herein are not intended to be limiting but rather to provide an understandable description of the concept.

19页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:云平台系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类