Method and apparatus for asynchronous time-based updates of http sessions
First Claim
1. A server system utilizing an HttpSession object in a Java servlet application program interface (API) comprising:
- a plurality of Java Virtual Machines (JVMs) running on at least one server, said at least one server including a local memory;
a second memory having a database for storing HttpSession objects for http sessions being handled by said JVMs, said memory being accessible by each of said JVMs;
a first computer program adapted to store in a memory local to said server running said JVM HttpSession data for each http session handled by said JVM;
a second computer program adapted to write to said database a copy of said HttpSession data for each said http session at a designated time that is a function of a predetermined time interval since a last write to said database of HttpSession object data for said http session.
1 Assignment
0 Petitions
Accused Products
Abstract
The invention and apparatus for updating a back-end database for storing http session for access by multiple servers in a server farm in which the number of writes by the servers to the database are minimized. Particularly, each server maintains up to date copy of the http session data for each http session and writes the http session data to the back-end http session database that is accessible by all of the associated servers only at predetermined intervals. The intervals may be dictated on a purely time basis. Alternately, the interval may be after a specified number of requests are received in a given session or a specified number of changes are made to the http session data of the particular session.
83 Citations
24 Claims
-
1. A server system utilizing an HttpSession object in a Java servlet application program interface (API) comprising:
-
a plurality of Java Virtual Machines (JVMs) running on at least one server, said at least one server including a local memory;
a second memory having a database for storing HttpSession objects for http sessions being handled by said JVMs, said memory being accessible by each of said JVMs;
a first computer program adapted to store in a memory local to said server running said JVM HttpSession data for each http session handled by said JVM;
a second computer program adapted to write to said database a copy of said HttpSession data for each said http session at a designated time that is a function of a predetermined time interval since a last write to said database of HttpSession object data for said http session. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A method of maintaining session data in a server system servicing a network, said server system maintaining state data pertaining to sessions, said method comprising the steps of:
-
(1) storing data for each session in a memory local to a server servicing said session;
(2) writing a copy of said data for each said session stored in said local memory into a central memory accessible to all servers of said server system at designated times, said designated times being a function of a predetermined time interval since a last write to said database of data for said sessions. - View Dependent Claims (12, 13, 14, 15, 16, 17, 19, 20, 21, 22, 23, 24)
-
-
18. A server system utilizing HttpSession objects in a Java servlet application program interface (API) comprising:
-
a plurality of Java Virtual Machines (JVMs) running on at least one server, said at least one server including a local memory;
a memory having a database for storing HttpSession objects for http sessions being handled by said plurality of JVMs, said memory being accessible by each of said JVMs;
a first computer program adapted to store in a memory local to said server running said JVM HttpSession object data for each http session handled by a JVM;
a second computer program adapted to write a copy of said HttpSession data for each said http session in said database at designated times, said designated times determined as a function of at least one of (a) the number of times the HttpSession object data is updated in said local memory and (b) the number of times an http request in said http session is serviced.
-
Specification