# US 2015/0149570 A1 · Message delivery in a messaging system

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

- Number: US 2015/0149570 A1
- Document ID: US20150149570A1
- Status: Published application
- Kind: A1
- Application number: 14/539,602
- Filed: 2014-11-12
- Published: 2015-05-28
- Earliest claimed: 2013-11-22
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Dominic P. Harries; Samuel D. Hughes
- Web page: https://patentgrep.com/patent/US20150149570A1

## CPC

- H04L 67/10: in which an application is distributed across nodes in the network (software deployment G06F8/60; multiprogramming arrangements G06F9/46)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A method, hardware system, and/or computer program product controls message delivery from a publisher application to one or more subscriber applications in a publish/subscribe messaging mechanism. The one or more subscriber applications have a plurality of subscriptions registered with a broker application of the publish/subscribe messaging mechanism. A unified subscription description representing the plurality of subscriptions registered with the broker application is generated, and is then communicated to the publisher application.

## Claims

### Claim 1

A method for controlling message delivery from a publisher application to one or more subscriber applications in a publish/subscribe messaging mechanism, the one or more subscriber applications having a plurality of subscriptions registered with a broker application of the publish/subscribe messaging mechanism, the method comprising:
generating a unified subscription description representing the plurality of subscriptions registered with the broker application; and
communicating the unified subscription description to the publisher application.

### Claim 2 (depends on 1)

The method of claim 1, wherein said generating the unified subscription description comprises:
computing a union finite state machine (FSM) from a plurality of FSMs that represent the plurality of subscriptions.

### Claim 3 (depends on 2)

The method of claim 2, wherein the plurality of subscriptions registered with the broker application is represented by a plurality of text strings, and wherein said computing the union FSM is preceded by:
converting each of the plurality of text strings into a respective FSM so as to obtain the plurality of FSMs that represent the plurality of subscriptions.

### Claim 4 (depends on 2)

The method of claim 2, wherein said generating the unified subscription description further comprises at least one of: minimizing the union FSM; and serializing the union FSM.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
determining, at the publisher application and based on the unified subscription description, if a message to be published matches any of the plurality of subscriptions; and
publishing the message only in response to determining that the message to be published matches any of the plurality of subscriptions.

### Claim 6 (depends on 5)

The method of claim 5, further comprising:
in response to determining that the message to be published does not match any of the plurality of subscriptions, storing the message at the publisher application for subsequent publication at a later time.

### Claim 7 (depends on 6)

The method of claim 6, further comprising discarding the stored message if it is not published within a predetermined time.

### Claim 8

A computer program product for controlling message delivery from a publisher application to one or more subscriber applications of a publish/subscribe messaging mechanism, the one or more subscriber applications having a plurality of subscriptions registered with a broker application of the publish/subscribe messaging mechanism, 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, and wherein the program code is readable and executable by a processor to perform a method comprising:
generating a unified subscription description representing the plurality of subscriptions registered with the broker application; and
communicating the unified subscription description to the publisher application.

### Claim 9 (depends on 8)

The computer program product of claim 8, wherein said generating the unified subscription description comprises:
computing a union finite state machine (FSM) from a plurality of FSMs that represent the plurality of subscriptions.

### Claim 10 (depends on 9)

The computer program product of claim 9, wherein the plurality of subscriptions registered with the broker application is represented by a plurality of text strings, and wherein said computing the union FSM is preceded by:
converting each of the plurality of text strings into a respective FSM so as to obtain the plurality of FSMs that represent the plurality of subscriptions.

### Claim 11 (depends on 9)

The computer program product of claim 9, wherein said generating the unified subscription description further comprises at least one of: minimizing the union FSM; and serializing the union FSM.

### Claim 12 (depends on 8)

The computer program product of claim 8, where the method further comprises:
determining, at the publisher application and based on the unified subscription description, if a message to be published matches any of the plurality of subscriptions; and
publishing the message only in response to determining that the message to be published matches any of the plurality of subscriptions.

### Claim 13 (depends on 12)

The computer program product of claim 12, wherein the method further comprises:
in response to determining that the message to be published does not match any of the plurality of subscriptions, storing the message at the publisher application for subsequent publication at a later time.

### Claim 14 (depends on 13)

The computer program product of claim 13, wherein the method further comprises discarding the stored message if it is not published within a predetermined time.

### Claim 15

A hardware device comprising:
a hardware processor, a computer readable memory, and a computer readable storage medium, wherein program code is stored on the computer readable storage medium, wherein the program code is loaded onto the computer readable memory and executed by the hardware processor to perform a method for controlling message delivery from a publisher application to one or more subscriber applications in a publish/subscribe messaging mechanism, the one or more subscriber applications having a plurality of subscriptions registered with a broker application of the publish/subscribe messaging mechanism, the method comprising:
generating a unified subscription description representing the plurality of subscriptions registered with the broker application; and
communicating the unified subscription description to the publisher application.

### Claim 16 (depends on 15)

The hardware device of claim 15, wherein said generating the unified subscription description comprises:
computing a union finite state machine (FSM) from a plurality of FSMs that represent the plurality of subscriptions.

### Claim 17 (depends on 16)

The hardware device of claim 16, wherein the plurality of subscriptions registered with the broker application is represented by a plurality of text strings, and wherein said computing the union FSM is preceded by:
converting each of the plurality of text strings into a respective FSM so as to obtain the plurality of FSMs that represent the plurality of subscriptions.

### Claim 18 (depends on 16)

The hardware device of claim 16, wherein said generating the unified subscription description further comprises at least one of: minimizing the union FSM; and serializing the union FSM.

### Claim 19 (depends on 15)

The hardware device of claim 15, wherein the method further comprises:
determining, at the publisher application and based on the unified subscription description, if a message to be published matches any of the plurality of subscriptions; and
publishing the message only in response to determining that the message to be published matches any of the plurality of subscriptions.

### Claim 20 (depends on 19)

The hardware device of claim 19, wherein the method further comprises:
in response to determining that the message to be published does not match any of the plurality of subscriptions, storing the message at the publisher application for subsequent publication at a later time.
