System and method for managing an object cache
AssigneeOpen Invention Network, LLC
InventorsDeren George Ebdon, Robert W. Peterson
Life of this patent
Estimating the term…
Abstract
In order to optimize efficiency of serialization, a serialization cache is maintained at an object server. The serialization cache is maintained in conjunction with an object cache and stores serialized forms of objects cached within the object cache. When an object is to be sent from the server to the client, a serialization module determines if a serialized form of the object is stored in the serialization cache. If the object is already serialized within the serialization cache, the serialized form is retrieved and provided to the client. Otherwise, the object is serialized, the object is cached in the object cache and the serialized form of the object is cached in the serialization cache.
Claims17
A method for serializing an object in a server that serves clients on plurality of serialization protocols comprising:
- determining, by the server, an object to be serialized;
- determining, by the server, a serialization protocol of the plurality of serialization protocols for the object to be serialized;
- determining, by the server, if a serialization of the object of the determined serialization protocol is stored in a serialization cache;
- and
- when a serialization of the object of the determined serialization protocol is stored in the serialization cache, retrieving, by the server, a serialized form of the object of the determined serialization protocol from the serialization cache;
- wherein, when one or more immutables of the object are in-line with one or more primitives, the serialization cache stores two serializations of the object.
A caching server that serves clients on plurality of serialization protocols comprising:
- at least one processor and at least one operatively associated memory, the at least one processor programmed to provide:
- an object cache;
- a serialization cache;
- a request handler;
- and
- a serialization module;
- wherein the request handler is configured to determine a requirement to provide an object to a client;
- wherein the serialization module is configured to:
- determine if the object is cached in the object cache;
- when the object is cached in the object cache:
- determining a serialization protocol of the plurality of serialization protocols for the object to be serialized;
- retrieve a corresponding serialization of the object of the determined serialization protocol from the serialization cache;
- and
- provide the retrieved serialization of the object to the client;
- wherein, when one or more immutables of the object are in-line with one or more primitives, the serialization cache stores two serializations of the object.
A method for serializing an object in a server that serves clients on plurality of serialization protocols comprising:
- determining an object to be serialized;
- determining a serialization protocol of the plurality of serialization protocols for the object to be serialized;
- determining if a serialization of the object of the determined serialization protocol is stored in a serialization cache;
- and
- when a serialization of the object of the determined serialization protocol is not stored in a serialization cache:
- serializing the object for the determined serialization protocol;
- storing the object in the object cache;
- and
- storing the serialized object in the serialization cache;
- wherein, when one or more immutables of the object are in-line with one or more primitives, the serialization cache stores two serializations of the object.
Dependencies are inferred from the claim text.