Back to results
US 10,956,369 B1Granted
Data aggregations in a distributed environment
AssigneeAmazon Technologies, Inc.
InventorsYu Liu, Robert McGregor Calhoun, Jr.
Life of this patent
Estimating the term…
Abstract
The disclosure is related to a system that saves booking requests to a transaction data store and generates data aggregations from the booking requests. A two-phase booking process is employed that includes validating the local timestamp of a booking request. Asynchronous archiving of booking requests to an archive is also employed. Aggregations can be generated from the transaction archive.
Claims20
A method, comprising:
- obtaining, in at least one computing device, a booking request from an upstream system, the booking request corresponding to a request to store a transaction into a transaction data store, the booking request further comprising an idempotency key assigned to the request to store the transaction;
- generating, by the at least one computing device, a local timestamp associated with the booking request, the local timestamp being based upon when the booking request is received by the one of the at least one computing device;
- storing, by the at least one computing device, the booking request in the transaction data store, the booking request stored along with the idempotency key and the local timestamp in the transaction data store, the booking request further being stored with a designation that the booking request is uncommitted;
- archiving, by the at least one computing device, the booking request in a transaction archive, the booking request being obtained from a transaction data stream from the transaction data store;
- validating, by the at least one computing device, the local timestamp against a global write horizon, the global write horizon being based upon an authoritative time;
- in response to validating, by the at least one computing device, the local timestamp against the global write horizon, storing a committed booking request in the transaction data store along with a designation that the committed booking request is committed, the committed booking request stored along with the global write horizon;
- archiving, by the at least one computing device, the committed booking request in the transaction archive, the committed booking request being obtained from the transaction data stream from the transaction data store;
- obtaining, by the at least one computing device, a table identifying a shard state of a plurality of shards within the transaction data stream;
- identifying, by the at least one computing device, a stream state of the transaction data stream based upon the shard state of the plurality of shards, the stream state based upon an earliest global write horizon corresponding to the plurality of shards;
- in response to determining that the stream state postdates a time interval, identifying a plurality of records within the transaction archive having a local timestamp that falls within the time interval;
- and
- generating a data aggregation based upon the plurality of records having the local timestamp that falls within the time interval.
9 more elements
A method, comprising:
- obtaining, via at least one computing device, a booking request comprising an idempotency key and a local timestamp;
- storing, via the at least one computing device, the booking request in a transaction data store along with an uncommitted designation;
- validating, via the at least one computing device, the local timestamp against a global write horizon based upon an authoritative time;
- archiving, via the at least one computing device, the booking request from a transaction data stream into a transaction archive;
- in response to validating the local timestamp, storing, via the at least one computing device, a final booking request in the transaction data store along with a committed designation;
- archiving, via the at least one computing device, the final booking request from the transaction data stream into the transaction archive;
- and
- generating, via the at least one computing device, a data aggregation based upon a particular time window from the transaction archive, wherein generating the data aggregation further comprises:
- identifying a plurality of booking requests associated with an uncommitted designation from the transaction archive that are associated with a local timestamp corresponding to the particular time window;
- determining whether each of the plurality of booking requests has a matching final booking request associated with a committed designation within the transaction archive;
- discarding individual ones of the plurality of booking requests that fail to have the matching final booking request;
- and
- generating the data aggregation from the plurality of booking requests having the matching final booking request.
10 more elements
A system, comprising:
- at least one computing device;
- a transaction data store in communication with the at least one computing device;
- a transaction collector executable by the at least one computing device;
- a transaction archive in communication with the at least one computing device;
- a booking service executable by the at least one computing device, wherein the booking service, when executed, causes the at least one computing device to at least:
- obtain a booking request comprising an idempotency key and a local timestamp;
- store the booking request in the transaction data store along with the local timestamp and an uncommitted designation;
- validate the local timestamp against a global write horizon based upon an authoritative time;
- in response to validating the local timestamp, store a final booking request in the transaction data store along with a committed designation;
- archive the booking request from the transaction data store in a transaction archive, the booking request obtained from a transaction data stream;
- and
- archive the final booking request from the transaction data store in a transaction archive if the local timestamp was validated, the booking request obtained from the transaction data stream;
- and
- a data aggregator executable by the at least one computing device, wherein the booking service, when executed, causes the at least one computing device to at least:
- generate a data aggregation based upon a particular time window from a plurality of booking requests and a plurality of final booking requests;
- and
- wherein the transaction collector archives the booking request and the final booking request along with an indication of a shard within the transaction data stream from which they are obtained.
14 more elements
Dependencies are inferred from the claim text.