Patent ID: 11899663
Assignee: STRIPE, INC.
Field: Telecommunications (Electrical engineering)
Classification: CPC G  H | IPC G

Claim 0:
1. A method comprising:
receiving, by one or more processors coupled to non-transitory memory, a first usage record from a first customer system, the first usage record indicating an identification of a first user associated with the first customer system and a quantity of usage of a first unit of measure that occurred during a first predefined time period;
storing, by the one or more processors, the first usage record in a first database;
determining, by the one or more processors, that a usage record aggregation data structure instance exists that uniquely corresponds to both the first user and the first predefined time period, the usage record aggregation data structure instance indicating that usage records of the first user corresponding to the first predefined time period are to be aggregated;
upon determining that the usage record aggregation data structure instance exists, aggregating, by the one or more processors, quantities of usage of the first unit of measure from all usage records, in the first database, that correspond uniquely to both the first user and the first predefined time period;
calculating, by the one or more processors, one or more aggregation metrics based on the aggregated quantities; and
storing, by the one or more processors, the one or more aggregation metrics in a caching layer, along with the identification of the first user and an indication of the first predefined time period.