Tracking client sessions in publish and subscribe systems using a shared repository
AssigneeInternational Business Machines Corporation
InventorsYoav Tock, Nir Naaman, Avraham Harpaz
Life of this patent
Estimating the term…
Abstract
Examples of techniques for tracking client sessions in a publish and subscribe system using a shared repository are described herein. An example system includes a processor of a server to receive a connection request with a client identifier from a client a predefined policy for duplicate client sessions. The processor is to query a shared repository of the system using the client identifier. The processor is to also execute a set of actions based on the predefined policy, a query result including a detected duplicate client session from the shared repository, and a set of parameters.
Claims20
A system, comprising a processor of a server to:
- receive a connection request with a client identifier associated with a client device and a predefined policy for duplicate client sessions within a distributed publish and message broker comprising a plurality of decoupled servers coupled to a shared repository, wherein the plurality of decoupled servers comprises the server and the client device is connected to the server of the plurality of decoupled servers based on a load balancing scheme;
- query the shared repository of the system coupled to the plurality of decoupled servers using the client identifier to detect a risk of a duplicate client session in response to detecting that a client identifier in the shared repository matches the client identifier from the client device and a connected status that indicates that the client identifier is currently being used to connect to one of the plurality of decoupled servers, wherein the shared repository comprises a client status table comprising a list of client IDs with corresponding connection statuses and a server status table comprising a list of the plurality of decoupled servers with associated status codes;
- and
- execute a set of actions based on the predefined policy, the detected risk of the duplicate client session from the shared repository, and a set of parameters.
A computer-implemented method, comprising:
- receiving, via a processor of a server, a connection request with a client identifier associated with a client device and a predefined policy for duplicate client sessions within a distributed publish and message broker comprising a plurality of decoupled servers and a shared repository, wherein the plurality of decoupled servers comprises the server and the client device is connected to the server of the plurality of decoupled servers based on a load balancing scheme;
- querying, via the processor, the shared repository of a system coupled to the plurality of decoupled servers using the client identifier to detect a risk of a duplicate client session in response to detecting that a client identifier in the shared repository matches the client identifier from the client device and a connected status that indicates that the client identifier is currently being used to connect to one of the plurality of decoupled servers, wherein the shared repository comprises a client status table comprising a list of client IDs with corresponding connection statuses and a server status table comprising a list of the plurality of decoupled servers with associated status codes;
- and
- executing, via the processor, a set of actions based on the predefined policy, the detected risk of the duplicate client session from the shared repository, and a set of parameters.
A computer program product for tracking client sessions in a publish and subscribe system, the computer program product comprising a computer-readable storage medium having program code embodied therewith, wherein the computer readable storage medium is not a transitory signal per se, the program code executable by a processor of a server to cause the processor to:
- receive a connection request with a client identifier associated with a client device and a predefined policy for duplicate client sessions within a distributed publish and message broker comprising a plurality of decoupled servers and a shared repository, wherein the plurality of decoupled servers comprises the server and the client device is connected to the server of the plurality of decoupled servers based on a load balancing scheme;
- query the shared repository of the publish and subscribe system coupled to the plurality of decoupled servers using the client identifier to detect a risk of a duplicate client session in response to detecting that a client identifier in the shared repository matches the client identifier from the client device and a connected status that indicates that the client identifier is currently being used to connect to one of the plurality of decoupled servers, wherein the shared repository comprises a client status table comprising a list of client IDs with corresponding connection statuses and a server status table comprising a list of the plurality of decoupled servers with associated status codes;
- and
- track client sessions based on the predefined policy, the detected risk of the duplicate client session from the shared repository, and a set of parameters.
Dependencies are inferred from the claim text.