US 12,067,529 B2
Bundling line item based events in an event-driven architecture
Bertram Beyer, Nussloch (DE)
Assigned to SAP SE, Walldorf (DE)
Filed by SAP SE, Walldorf (DE)
Filed on Jul. 14, 2021, as Appl. No. 17/375,280.
Prior Publication US 2023/0014255 A1, Jan. 19, 2023
Int. Cl. G06Q 10/0875 (2023.01); G06Q 10/107 (2023.01); G06Q 40/12 (2023.01)
CPC G06Q 10/0875 (2013.01) [G06Q 10/107 (2013.01); G06Q 40/12 (2013.12)] 20 Claims
OG exemplary drawing
 
1. A computer-implemented method comprising:
receiving, at a message outbox of a first microservice, a first new line-item based event comprising line item details for at least one line item of a document;
attempting to locate a first compatible open event bundle for the document that has line items of a same event type as the first new line-item based event;
in response to locating the first compatible open event bundle for the document, adding the first new line-item based event to the first compatible open event bundle;
in response to determining that the first compatible open event bundle cannot be located:
creating the first compatible open event bundle as a first new open event bundle; and
adding the first new line-item based event to the first new open event bundle;
determining that a closing condition has occurred for the first compatible open event bundle; and
closing the first compatible open event bundle, wherein the closing comprises:
generating a first bundled event message that includes line-item based messages for the document of the same event type included in the first compatible open event bundle; and
sending the first bundled event message to a second microservice.