# US 2013/0275533 A1 · Peer-to-peer collaboration of publishers in a publish-subscription environment

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

- Number: US 2013/0275533 A1
- Document ID: US20130275533A1
- Status: Published application
- Kind: A1
- Application number: 13/910,242
- Filed: 2013-06-05
- Published: 2013-10-17
- Earliest claimed: 2011-02-24
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Kulvir S. Bhogal; Martin J. Gale; Rick A. Hamilton, II; Andrew R. Jones; Brian M. O'Connell
- Web page: https://patentgrep.com/patent/US20130275533A1

## CPC

- H04L 51/08: Annexed information, e.g. attachments
- H04L 67/104: Peer-to-peer [P2P] networks
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Embodiments of the present invention provide an approach for an enhanced pub/sub environment whereby a peer group of publishers is defined and can collaborate to determine when to cache data being sent to a common broker or brokers. Specifically, in a typical embodiment, configuration data or the like will be read to define a peer group among the publisher systems in the pub/sub messaging environment. Once such a group has been identified, communication therebetween will be established. Once cacheable data has been identified, a unique identifier/set of cache keys will be generated corresponding thereto and associated with the set of data. A message comprising the set of data and corresponding unique identifier will then be sent to a broker system (e.g., from the publisher system(s)), which will store (or have stored) the set of data in a cache, and pass the underlying message along to applicable subscriber system(s).

## Claims

### Claim 1

A method for establishing peer-to-peer (P2P) collaboration of publishers in a publish-subscription (pub/sub) messaging environment, comprising:
identifying a set of publisher systems as a peer group in the pub/sub messaging environment;
establishing P2P communication between the set of publisher systems of the peer group in the pub/sub messaging environment;
identifying a set of data having a potential to be cached based on historical data of the peer group;
generating a unique identifier corresponding to the set of data on at least one of the set of publisher systems, the unique identifier identifying the set of data as cacheable;
sharing the unique identifier among the set of publisher systems;
associating the set of data with the unique identifier; and
sending a first message having the set of data and the unique identifier to a broker system in the pub/sub messaging environment.

### Claim 2 (depends on 1)

The method of claim 1, the associating and the sending being performed by the at least one of the set of publisher systems.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
receiving the first message on the broker system;
locating the unique identifier;
causing the set of data to be stored in a cache; and
sending the first message to a set of subscriber systems in the pub/sub messaging environment.

### Claim 4 (depends on 3)

The method of claim 3, further comprising:
receiving a second message on the broker system from any of the set of publisher systems, the second message comprising an abbreviated message having the unique identifier in place of the set of data;
locating the unique identifier in the abbreviated message;
retrieving the set of data from the cache;
replacing the unique identifier with the set of data in the second message to yield a completed message; and
sending the completed message to the set of subscriber systems.

### Claim 5 (depends on 3)

The method of claim 3, the cache being a broker system cache.

### Claim 6 (depends on 1)

The method of claim 1, the identifying a set of publisher systems further comprising reading configuration data to identify the set of publisher systems as the peer group in the pub/sub messaging environment.

### Claim 7 (depends on 1)

The method of claim 1, further comprising defining a master peer or some other hierarchy for managing communications between the peer group.

### Claim 8 (depends on 1)

The method of claim 1, wherein a service solution provider provides a computer infrastructure that performs the method for one or more consumers.

### Claim 9

A system for establishing peer-to-peer (P2P) collaboration of publishers in a publish-subscription (pub/sub) messaging environment, comprising:
at least one bus;
at least one processor coupled to the at least one bus; and
at least one memory medium coupled to the at least one bus, the at least one memory medium comprising instructions to:
identify a set of publisher systems as a peer group in the pub/sub messaging environment;
establish P2P communication between the set of publisher systems of the peer group in the pub/sub messaging environment;
identify a set of data having a potential to be cached based on historical data of the peer group;
generate a unique identifier corresponding to the set of data on at least one of the set of publisher systems, the unique identifier identifying the set of data as cacheable;
share the unique identifier among the set of publisher systems;
associate the set of data with the unique identifier; and
send a first message having the set of data and the unique identifier to a broker system in the messaging pub/sub environment.

### Claim 10 (depends on 9)

The system of claim 9, the at least one memory medium further comprising instructions to:
receive the first message on the broker system;
locate the unique identifier;
cause the set of data to be stored in a cache; and
send the first message to a set of subscriber systems in the messaging pub/sub environment.

### Claim 11 (depends on 10)

The system of claim 10, the at least one memory medium further comprising instructions to:
receive a second message on the broker system from any of the set of publisher systems, the second message comprising an abbreviated message having the unique identifier in place of the set of data;
locate the unique identifier in the abbreviated message;
retrieve the set of data from the cache;
replace the unique identifier with the set of data in the second message to yield a completed message; and
send the completed message to the set of subscriber systems.

### Claim 12 (depends on 10)

The system of claim 10, the cache being a broker system cache.

### Claim 13 (depends on 10)

The system of claim 10, the at least one memory medium further comprising instructions to:
receive an invalidation message from the publisher system; and
remove a set of items from the cache based on the invalidation message.

### Claim 14 (depends on 9)

The system of claim 9, the memory medium further comprising instructions to define at least one of a master peer or a hierarchy for managing communications between the peer group.

### Claim 15

At least one computer program product for establishing peer-to-peer (P2P) collaboration of publishers in a publish-subscription (pub/sub) messaging environment, the at least one computer program product comprising at least one computer readable storage media, and program instructions stored on the at least one computer readable storage media, to:
identify a set of publisher systems as a peer group in the pub/sub messaging environment;
establish P2P communication between the set of publisher systems of the peer group in the pub/sub messaging environment;
identify a set of data having a potential to be cached based on historical data of the peer group;
generate a unique identifier corresponding to the set of data on at least one of the set of publisher systems, the unique identifier identifying the set of data as cacheable;
share the unique identifier among the set of publisher systems;
associate the set of data with the unique identifier; and
send a first message having the set of data and the unique identifier to a broker system in the pub/sub messaging environment.

### Claim 16 (depends on 15)

The at least one computer program product of claim 15, further comprising program instructions stored on the at least one computer readable storage media to:
receive the first message on the broker system;
locate the unique identifier;
cause the set of data to be stored in a cache; and
send the first message to a set of subscriber systems in the pub/sub messaging environment.

### Claim 17 (depends on 16)

The at least one computer program product of claim 16, further comprising program instructions stored on the at least one computer readable storage media to:
receive a second message on the broker system from any of the set of publisher systems, the second message comprising an abbreviated message having the unique identifier in place of the set of data;
locate the unique identifier in the abbreviated message;
retrieve the set of data from the cache;
replace the unique identifier with the set of data in the second message to yield a completed message; and
send the completed message to the set of subscriber systems.

### Claim 18 (depends on 16)

The at least one computer program product of claim 16, the cache being a broker system cache.

### Claim 19 (depends on 16)

The at least one computer program product of claim 16, further comprising program instructions stored on the at least one computer readable storage media to:
receive an invalidation message from the publisher system; and
remove a set of items from the cache based on the invalidation message.

### Claim 20 (depends on 15)

The at least one computer program product of claim 15, further comprising program instructions storied on the at least one computer readable storage media to: define at least one of a master peer or a hierarchy for managing communications between the peer group.
