# US 2016/0261395 A1 · Channel ownership in a publish-subscribe system

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2016/0261395 A1
- Document ID: US20160261395A1
- Status: Published application
- Kind: A1
- Application number: 14/639,383
- Filed: 2015-03-05
- Published: 2016-09-08
- Earliest claimed: 2015-03-05
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: KANAK B. AGARWAL; Patrick J. Bohrer; Ahmed Gheith; Michael D. Kistler; Ramakrishnan Rajamony
- Web page: https://patentgrep.com/patent/US20160261395A1

## CPC

- H04L 67/06: specially adapted for file transfer, e.g. file transfer protocol [FTP]
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

To manage channel ownership in a publish-subscribe data processing environment, a determination is made at a first server that a subscription request from a client relates to a channel, the channel having a channel identifier. At an exchange component in a messaging middleware, a session queue associated with the client is bound to the channel. A mandatory delivery message is configured to be routed using a publisher identifier by the exchange component, the publisher identifier being related to the channel identifier. The mandatory delivery message is communicated from the first server to the exchange component to indicate an intent of the first server to become a publisher of the channel. The mandatory delivery message causes the channel ownership of the channel to be limited to a single publisher.

## Claims

### Claim 1

A method for managing channel ownership in a publish-subscribe data processing environment, the method comprising:
determining, at a first server, using a processor and a memory, that a subscription request from a client relates to a channel, the channel having a channel identifier;
causing, at an exchange component in a messaging middleware, a session queue associated with the client to bind to the channel;
configuring a mandatory delivery message to be routed using a publisher identifier by the exchange component, the publisher identifier being related to the channel identifier; and
communicating, from the first server to the exchange component, the mandatory delivery message to indicate an intent of the first server to become a publisher of the channel, wherein the mandatory delivery message causes the channel ownership of the channel to be limited to a single publisher.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
binding, responsive to the mandatory delivery message being undeliverable to any server instance queues in the messaging middleware, a server instance queue associated with the first server to receive any messages routed using the publisher identifier by the exchange component; and
updating an indicator to indicate that the first server is the publisher of the channel.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
deriving the publisher identifier by using the channel identifier as a parameter of a function.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
configuring, a kill message to be routed using a publisher identifier by the exchange component;
communicating, from the first server to the exchange component, the kill message; and
causing, responsive to communicating the kill message, the exchange component to route the kill message to a set of server instance queues corresponding to a set of other servers;
determining, after a period following the communicating of the kill message, whether the first server remains the publisher of the channel; and
beginning, responsive to the first server remaining the publisher of the channel, publishing content from the first server in response to the subscription request.

### Claim 5 (depends on 4)

The method of claim 4, further comprising:
configuring the kill message with a priority information corresponding to the first server, wherein the priority information comprises a server instance information usable to establish a priority of the first server relative to a second server for the channel, wherein the first server and the second server are both attempting to become publishers of content on the channel.

### Claim 6 (depends on 5)

The method of claim 5, further comprising:
deriving the priority information corresponding to the first server from the server instance information and the channel identifier.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
configuring, a kill message to be routed using a publisher identifier by the exchange component;
communicating, from the first server to the exchange component, a kill message; and
causing, responsive to communicating the kill message, the exchange component to route the kill message to a set of server instance queues corresponding to a set of other servers;
determining, after a period following the communicating of the kill message, whether the first server remains the publisher of the channel; and
updating, responsive to the first server not remaining the publisher of the channel, an indicator to indicate that the first server is not the publisher of the channel.

### Claim 8 (depends on 1)

The method of claim 1, further comprising:
receiving, at the first server from a second server, a kill message, the kill message being routed according to a publisher identifier and including priority information corresponding to the second server, and wherein the first server and the second server are both attempting to become publishers of content on the channel;
determining, by comparing the priority information corresponding to the second server from the kill message with a priority information corresponding to the first server, whether the first server remains the publisher of the channel; and
unbinding from the exchange component, responsive to the second server having a higher priority than the first server, not remaining the publisher of the channel, a server instance queue associated with the first server.

### Claim 9 (depends on 1)

The method of claim 1, further comprising:
receiving, at the first server from a second server, a kill message, the kill message being routed according to a publisher identifier and including priority information corresponding to the second server, and wherein the first server and the second server are both attempting to become publishers of content on the channel;
determining, by comparing the priority information corresponding to the second server from the kill message with a priority information corresponding to the first server, whether the first server remains the publisher of the channel; and
updating, responsive to the first server having a higher priority than the second server, an indicator to indicate that the first server is the publisher of the channel.

### Claim 10 (depends on 9)

The method of claim 9, further comprising:
configuring, a second kill message to be routed using a publisher identifier by the exchange component;
configuring the second kill message with the priority information corresponding to the first server;
communicating, from the first server to the exchange component, the second kill message; and
causing, responsive to communicating the second kill message, the exchange component to route the second kill message to a set of server instance queues corresponding to a set of other servers.

### Claim 11 (depends on 1)

The method of claim 1, further comprising:
receiving the subscription request at the first server; and
determining that the subscription request is of a type, wherein the type corresponds to the channel.

### Claim 12 (depends on 1)

The method of claim 1, further comprising:
receiving the subscription request at the first server; and
hashing a query in the request to obtain a hash value, wherein the hash value corresponds to the channel, and wherein the type corresponds to the channel.

### Claim 13 (depends on 1)

The method of claim 1, wherein the session queue is uniquely associated with the client in a messaging middleware, wherein the session queue is bound to the exchange component using the channel identifier as a binding key, wherein the publisher identifier forms a routing key, and wherein the exchange component routes the mandatory delivery message using the routing key.

### Claim 14

A computer usable program product comprising a computer readable storage device including computer usable code for managing channel ownership in a publish-subscribe data processing environment, the computer usable code comprising:
computer usable code for determining, at a first server, using a processor and a memory, that a subscription request from a client relates to a channel, the channel having a channel identifier;
computer usable code for causing, at an exchange component in a messaging middleware, a session queue associated with the client to bind to the channel;
computer usable code for configuring a mandatory delivery message to be routed using a publisher identifier by the exchange component, the publisher identifier being related to the channel identifier; and
computer usable code for communicating, from the first server to the exchange component, the mandatory delivery message to indicate an intent of the first server to become a publisher of the channel, wherein the mandatory delivery message causes the channel ownership of the channel to be limited to a single publisher.

### Claim 15 (depends on 14)

The computer usable program product of claim 14, further comprising:
computer usable code for binding, responsive to the mandatory delivery message being undeliverable to any server instance queues in the messaging middleware, a server instance queue associated with the first server to receive any messages routed using the publisher identifier by the exchange component; and
computer usable code for updating an indicator to indicate that the first server is the publisher of the channel.

### Claim 16 (depends on 14)

The computer usable program product of claim 14, further comprising:
computer usable code for deriving the publisher identifier by using the channel identifier as a parameter of a function.

### Claim 17 (depends on 14)

The computer usable program product of claim 14, further comprising:
computer usable code for configuring, a kill message to be routed using a publisher identifier by the exchange component;
computer usable code for communicating, from the first server to the exchange component, the kill message; and
computer usable code for causing, responsive to communicating the kill message, the exchange component to route the kill message to a set of server instance queues corresponding to a set of other servers;
computer usable code for determining, after a period following the communicating of the kill message, whether the first server remains the publisher of the channel; and
computer usable code for beginning, responsive to the first server remaining the publisher of the channel, publishing content from the first server in response to the subscription request.

### Claim 18 (depends on 14)

The computer usable program product of claim 14, wherein the computer usable code is stored in a computer readable storage device in a data processing system, and wherein the computer usable code is transferred over a network from a remote data processing system.

### Claim 19 (depends on 14)

The computer usable program product of claim 14, wherein the computer usable code is stored in a computer readable storage device in a server data processing system, and wherein the computer usable code is downloaded over a network to a remote data processing system for use in a computer readable storage device associated with the remote data processing system.

### Claim 20

A data processing system for managing channel ownership in a publish-subscribe data processing environment, the data processing system comprising:
a storage device, wherein the storage device stores computer usable program code; and
a processor, wherein the processor executes the computer usable program code, and wherein the computer usable program code comprises:
computer usable code for determining, at a first server, using a processor and a memory, that a subscription request from a client relates to a channel, the channel having a channel identifier;
computer usable code for causing, at an exchange component in a messaging middleware, a session queue associated with the client to bind to the channel;
computer usable code for configuring a mandatory delivery message to be routed using a publisher identifier by the exchange component, the publisher identifier being related to the channel identifier; and
computer usable code for communicating, from the first server to the exchange component, the mandatory delivery message to indicate an intent of the first server to become a publisher of the channel, wherein the mandatory delivery message causes the channel ownership of the channel to be limited to a single publisher.
