# US 2017/0371944 A1 · System and method for streaming events in a transaction-based system

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

- Number: US 2017/0371944 A1
- Document ID: US20170371944A1
- Status: Published application
- Kind: A1
- Application number: 15/699,431
- Filed: 2017-09-08
- Published: 2017-12-28
- Earliest claimed: 2013-03-13
- Assignees: Wal-Mart Stores, Inc.
- Applicants: Wal-Mart Stores, Inc.
- Inventors: Gautham Varada
- Web page: https://patentgrep.com/patent/US20170371944A1

## CPC

- G06F 16/2379: {Updates performed during online database operations; commit processing}
- G06F 16/27: Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
- G06F 16/9574: {of access to content, e.g. by caching}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A system is provided that permits events to be propagated between systems in near real time for the purpose of ensuring consistency in a transaction-based environment. In one implementation, transactions are streamed between systems using a lightweight protocol shortly after they are processed, rather than being communicated in a one-way batch mode as is typically done in conventional retail store systems.

## Claims

### Claim 1

A distributed system comprising:
a plurality of remote systems, each of the remote computing systems including an event emitter, a plurality of event sources, and a first processor, a first one the plurality of remote systems is programmed to receive a transaction, contemporaneously create, via the event emitter, one or more events based on a type of the transaction, determine at least one of the plurality of event sources corresponding with each one of the one or more events based on a type of each one of the one or more events, route each one of the one or more events to the at least one of the plurality of event sources corresponding to each one of the one or more events, commit the transaction the at least one remote computing system, and stream the one or more events from the plurality of event sources over a communications network; and
a central manager comprising a second processor, one or more databases, a cache, a plurality of event sinks, each event sink of the plurality of event sinks corresponding to a different event source of the plurality of event sources in each of the plurality of remote systems, and an event receiver, the central manager programmed to receive, via the event receiver, the stream of the one or more events from the plurality of event sources of the first one of the plurality of remote systems, route each of the one or more events to at least one event sink corresponding to an event source of the plurality of event sources, temporarily store the transaction associated with the one or more events in the cache, after which the central manager is programmed to permanently commit the transaction to the one or more databases at the central manager and proliferate the one or more events to a subset of the plurality of remote systems, each of the remote systems in the subset being different than the first one of the plurality of remote system,
wherein the central manager permanently commits the transaction to the one or more databases subsequent to the first one of the plurality of remote computing systems committing the transaction,
wherein the subset of remote systems are configured to perform one or more functions in response to receiving the one or more events.

### Claim 2 (depends on 1)

The distributed system according to claim 1, wherein the one or more events are communicated to the event receiver of the central manager.

### Claim 3 (depends on 1)

The distributed system according to claim 1, wherein the plurality of event sources comprises a UDP event source, the UDP event source corresponds with an UDP event sink of the central manager.

### Claim 4 (depends on 1)

The distributed system according to claim 1, wherein the plurality of event sources comprises a TCP event source, the TCP event source corresponds with a TCP event sink of the central manager.

### Claim 5 (depends on 1)

The distributed system according to claim 1, wherein the plurality of event sources comprises a file event source, the file event source corresponds with a file event sink of the central manager.

### Claim 6 (depends on 1)

The distributed system according to claim 1, wherein the plurality of event sources comprise a database event source, the database event source corresponds with a database event sink of the central manager.

### Claim 7 (depends on 1)

The distributed system according to claim 1, wherein the one or more remote computing systems are located in one or more commercial store locations, and wherein the one or more remote computing systems process events associated with transactions occurring at the one or more commercial store locations.

### Claim 8 (depends on 7)

The distributed system according to claim 7, wherein a coordination protocol is applied to the one or more databases to ensure consistency.

### Claim 9 (depends on 8)

The distributed system according to claim 8, wherein the central manager receives transactions from a web-based domain.

### Claim 10 (depends on 9)

The distributed system according to claim 9, wherein the central manager updates a website with real-time information associated with the one or more commercial store location.

### Claim 11

A method for processing events in a distributed system, the method comprising:
receiving, via a first one of a plurality of remote systems including a first processor, an event emitter and a plurality of event sources;
creating, via the event emitter of the first one of the plurality of remote systems, one or more events based on a type of the transaction;
determining, via the first one of the plurality of remote systems, at least one of the plurality of event sources corresponding with each one of the one or more events based on a type of each one of the one or more events;
routing, via the first one of the plurality of remote systems, each one of the one or more events to the at least one of a plurality of event sources corresponding each one of the one or more events;
committing, via the first one of the plurality of remote systems, the transaction at the first one of the plurality of remote systems;
streaming, via the first one of the plurality of remote systems, the one or more events from the plurality of event sources over a communications network;
receiving, via a central manager comprising a second processor, one or more databases, a cache, an event receiver, a plurality of event sinks, each event sink of the plurality of event sinks corresponding to a different event source of the plurality of event sources in each of the plurality of remote systems, the stream of the one or more events from the plurality of event sources of first one of the plurality of remote systems;
routing, via the central manager, each of the one or more events to at least one event sink corresponding to an event source of the plurality of event sources;
temporarily storing, via the central manager, the transaction associated with the one or more events in the cache;
after which permanently committing, via the central manager, the transaction to the one or more databases at the central manager;
proliferating, via the central manager, the one or more events to a subset of the plurality of remote systems, each of the remote systems in the subset being different than the first one of the plurality of remote systems; and
performing, via the subset of remote systems, one or more functions in response to receiving the one or more events,
wherein the central manager permanently commits the transaction to the one or more databases subsequent to the first one of the plurality of remote systems system committing the transaction.

### Claim 12 (depends on 11)

The method according to claim 11, further comprising communicating the stream of one or more events to the event receiver of the central manager.

### Claim 13 (depends on 11)

The method according to claim 11, wherein the plurality of event sources comprise a UDP event source, the UDP event source corresponds with an UDP event sink of the central manager.

### Claim 14 (depends on 11)

The method according to claim 11, wherein the plurality of event sources comprise a TCP event source, the TCP event source corresponds with a TCP event sink of the central manager.

### Claim 15 (depends on 11)

The method according to claim 11, wherein the plurality of event sources comprise a file event source, the file event source corresponds with a file event sink of the central manager.

### Claim 16 (depends on 11)

The method according to claim 11, wherein the plurality of event sources comprise a database event source, the database event source corresponds with a database event sink of the central manager.

### Claim 17 (depends on 11)

The method according to claim 11, wherein the one or more remote computing systems are located in one or more commercial store locations, and wherein the method further comprises an act of processing, by the one or more distributed remote computing systems are system, events associated with transactions occurring at the one or more commercial store locations.

### Claim 18 (depends on 11)

The method according to claim 11, further comprising applying, via the central manager, a coordination protocol to the one or more databases to ensure consistency.

### Claim 19 (depends on 11)

The method according to claim 11, further comprising receiving, via the central manager, transactions from a web-based domain.

### Claim 20 (depends on 17)

The method according to claim 17, further comprising updating, via the central manager, a website with real-time information associated with the one or more commercial store locations.
