# US 2020/0403850 A1 · Facilitating resilient and fault tolerant asynchronous messaging

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

- Number: US 2020/0403850 A1
- Document ID: US20200403850A1
- Status: Published application
- Kind: A1
- Application number: 15/929,539
- Filed: 2020-05-08
- Published: 2020-12-24
- Earliest claimed: 2019-06-24
- Assignees: Capital One Services, LLC
- Applicants: Capital One Services, LLC
- Inventors: Hala EL-ALI; David GILLAM; Pedro BETANCOURT; Fredrick CRABLE
- Web page: https://patentgrep.com/patent/US20200403850A1

## CPC

- H04L 41/0686: Additional information in the notification, e.g. enhancement of specific meta-data
- H04L 51/214: using selective forwarding
- G06F 11/2002: {where interconnections or communication control functionality are redundant (flexible arrangements for bus networks involving redundancy H04L12/40176)}
- H04L 51/23: Reliability checks, e.g. acknowledgments or fault reporting
- H04W 4/12: Messaging; Mailboxes; Announcements
- H04W 76/11: Allocation or use of connection identifiers
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04W: WIRELESS COMMUNICATION NETWORKS (broadcast communication H04H; communication systems using wireless links for non-selective communication, e.g. wireless extensions H04M1/72)

## Abstract

A device may receive a message from a first different device that includes an identifier and may determine whether the device has previously received the message. The device may generate, based on determining that the device has not previously received the message, an additional identifier and a message status indicator and may cause the additional identifier, the message, and the message status indicator to be stored in a data structure associated with the device. The device may send an acknowledgment status to the first different device and may cause processing of the message to generate an additional message that includes the additional identifier. The device may send the additional message to a second different device and may cause, after sending the additional message to the second different device, the message status indicator in the data structure to be updated.

## Claims

### Claim 1

A method, comprising:
receiving, by a device, a message from a first different device,
wherein the message includes an identifier;
determining, by the device, whether the device has previously received the message;
generating, by the device and based on determining that the device has not previously received the message, an additional identifier and a message status indicator;
causing, by the device, the additional identifier, the message, and the message status indicator to be stored in a data structure associated with the device;
sending, by the device and after causing the additional identifier, the message, and the message status indicator to be stored in the data structure, an acknowledgment status to the first different device;
causing, by the device, processing of the message to generate an additional message that includes the additional identifier;
sending, by the device, the additional message to a second different device; and
causing, by the device and after sending the additional message to the second different device, the message status indicator in the data structure to be updated,
the updated message status indicator indicating that the additional message was processed successfully;
receiving, by the device, a new message that includes a new identifier from the first different device;
determining, by the device and based on the new identifier included in the message, that the device has previously received the new message; and
causing, by the device, the new message to be discarded.

### Claim 2 (depends on 1)

The method of claim 1, wherein the message is one of:
a representational state transfer (REST) request, or
a microservice event message.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
periodically communicating with the data structure to identify one or more stored messages in the data structure.

### Claim 4 (depends on 1)

The method of claim 1, wherein the additional identifier is a universally unique identifier (UUID), and
wherein the message status indicator indicates that the message has an untried status.

### Claim 5 (depends on 1)

The method of claim 1, wherein sending the additional message to the second different device comprises:
sending the additional message to the second different device via a messaging bus.

### Claim 6 (depends on 1)

The method of claim 1, wherein receiving the message from the first different device comprises:
receiving the message from the first different device via an application programing interface (API),
wherein sending the acknowledgment status to the first different device comprises:
sending the acknowledgment status to the first different device via the API.

### Claim 7 (depends on 1)

The method of claim 1, wherein determining whether the device has previously received the message comprises:
identifying the identifier included in the message; and
determining whether any stored message in the data structure is associated with the identifier.

### Claim 8

A device, comprising:
one or more memories; and
one or more processors, communicatively coupled to the one or more memories, configured to:
receive a message that includes an identifier from a different device;
determine, based on the identifier included in the message, that the device has not previously received the message;
generate, based on determining that the device has not previously received the message, an additional identifier and a message status indicator;
cause the additional identifier, the message, and the message status indicator to be stored in a data structure associated with the device;
send, after causing the additional identifier, the message, and the message status indicator to be stored in the data structure, an acknowledgment status to the different device;
cause processing of the message to perform at least one action;
determine whether the message was processed successfully;
cause, after determining that the message was not processed successfully, the message status indicator in the data structure to be updated to indicate whether the message is retriable or not retriable;
cause, after determining that the message status indicator indicates that the message has a retriable or not retriable status, processing of the message; and
cause, after processing of the message, the message status indicator to be updated to indicate that the message was successfully processed.

### Claim 9 (depends on 8)

The device of claim 8, wherein the one or more processor are further configured to:
receive a new message that includes a new identifier from the different device;
determine, based on the new identifier included in the message, that the device has previously received the new message; and
cause the new message to be discarded.

### Claim 10 (depends on 9)

The device of claim 9, wherein the device receives the new message from the different device via at least one of:
an application programing interface (API), or
a messaging bus.

### Claim 11 (depends on 9)

The device of claim 9, wherein the one or more processors, when receiving the new message, are further to:
poll a messaging bus for messages; and
obtain the message and the new message via the messaging bus.

### Claim 12 (depends on 9)

The device of claim 9, wherein the one or more processors, when determining that the device has previously received the new message, are configured to:
parse the new message to identify the new identifier included in the message;
search the data structure based on the new identifier; and
determine, based on searching the data structure, that a stored message is associated with a stored identifier that matches the new identifier.

### Claim 13 (depends on 8)

The device of claim 8, wherein the one or more processors are further to:
cause processing of the message to update an account based on information included in the message.

### Claim 14 (depends on 8)

The device of claim 8, wherein the acknowledgment status indicates that the device received the message.

### Claim 15

A non-transitory computer-readable medium storing instructions, the instructions comprising:
one or more instructions that, when executed by one or more processors of a device, cause the one or more processors to:
obtain one or more messages from a different device,
wherein each message, of the one or more messages, includes a respective identifier, and
wherein, for each message, of the one or more messages, the one or more instructions, when executed by the one or more processors, cause the one or more processors to:
determine whether the device has previously received each message of the one or more messages,
generate, based on determining that the device has not previously received the message, an additional identifier and a message status indicator,
cause the additional identifier, the message, and the message status indicator to be stored in a data structure associated with the device, and
cause processing of the message to perform at least one action;
send, after causing respective processing of each message of the one or more messages, an acknowledgment status concerning the one or more messages to the different device; and
cause, after sending the acknowledgment status to the different device, a respective message status indicator associated with each message, of the one or more messages, in the data structure to be updated,
wherein the respective message status indicator associated with each message indicates whether each message was processed successfully; and
determine that a stored message in the data structure is to be processed, wherein, when the stored message is processed, a stored message status indicator associated with the stored message is updated to indicate that the stored message was processed.

### Claim 16 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein the one or more instructions, when executed by the one or more processors, further cause the one or more processors to:
cause processing of the message to update an account based on information included in the message.

### Claim 17 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein the one or more instructions, when executed by the one or more processors, further cause the one or more processors to:
periodically communicate with the data structure to identify one or more stored messages in the data structure.

### Claim 18 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein the one or more instructions, that cause the one or more processors to obtain the one or more messages from the different device, cause the one or more processors to:
poll a messaging bus for messages; and
obtain the one or more messages via the messaging bus.

### Claim 19 (depends on 18)

The non-transitory computer-readable medium of claim 18, wherein the acknowledgment status indicates that the device received the message.

### Claim 20 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein sending the acknowledgment status to the different device causes a commit offset associated with the one or more messages to be updated.
