Duplication avoidance for mutable event based metrics
Abstract
The technology disclosed herein provides a mechanism to avoid double counting when generating metrics from monitoring events received from an endpoint (e.g., end user's web browser, or mobile application). A unique identifier is assigned to each monitoring event matching a metric definition. When the number of unique identifiers assigned is below a predetermined threshold, a deduplication system determines whether the unique identifier for a given monitoring event is duplicative of any other unique identifiers, corresponding to other monitoring events, using a hash set. When the number of unique identifiers exceeds the predetermined threshold, the unique identifiers are automatically added to a probabilistic data structure, such as a scalable Bloom filter. In this scenario, the deduplication system would determine whether the unique identifier for the given monitoring event is duplicative of any other identifiers in the probabilistic data structure.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 5 · Forward citations: 0.
Claims (8 — 1 Independent, 7 Dependent)
- Claim 1Independent Claim
A system comprising: memory; and one or more processors in communication with the memory and configured to: receive a defined set of one or more metric definitions for monitoring events associated with user interaction; detect events that satisfy the one or more metric definitions; assign a unique identifier to each event that satisfies the one or more metric definitions; determine, for a first number of events, whether the assigned unique identifier is duplicative of any other identifiers in a hash set; determine when a second number of events is received, wherein the second number exceeds a threshold; and determine, for the second number of events, whether the assigned unique identifier is duplicative of any other identifiers in a probabilistic data structure.
- Claim 2Depends on #1
The system of claim 1, wherein the probabilistic data structure comprises a scalable bloom filter based on one or more hash functions.
- Claim 3Depends on #1
The system of claim 1, wherein the probabilistic data structure is initialized to a size to accommodate a third number of unique identifiers, and resized when a fourth number of unique identifiers is received.
- Claim 4Depends on #1
The system of claim 1, wherein detecting the events that satisfy the one or more metric definitions comprises filtering the events to retain mutable events and omit non-mutable events, and grouping the filtered mutable events into a specific stream, wherein the specific stream is read by a first reducer having access to the defined set of one or more metric definitions and processed to produce an aggregation request in an aggregation stream.
- Claim 5Depends on #4
The system of claim 4, wherein the aggregation stream is partitioned by metric definition and timestamp.
- Claim 6Depends on #5
The system of claim 5, wherein the aggregation request is received by a second reducer, wherein for each partition the second reducer determines whether the aggregation request was already received, and aggregates the aggregation request into a bucket if it was not already received.
- Claim 7Depends on #6
The system of claim 6, wherein determining, for the first number of events, whether the assigned unique identifier is duplicative of any other identifiers in the hash set comprises maintaining the hash set of unique identifiers in the bucket.
- Claim 8Depends on #7
The system of claim 7, wherein determining when the second number of events is reached comprises determining when the hash set of unique identifiers includes the second number of identifiers.
Technical Overview & Description
BACKGROUND Generally, a monitoring system can include a service configured to receive data that describes an operation or event happening on a client device or customer server. The monitoring system can be configured to perform one or more actions in response to receiving the data in a time-sensitive manner. Examples of these actions include viewing the events as they happen, graphing trends and various values over time, searching for events that match some criteria, and correlating events that happen on multiple distributed machines relating to a single operation. Events can be counted or measured based on defined metrics. The metrics may be defined based on criteria. By way of example, metrics can be defined to count events during a session, such as a browser session, when the session event includes 5 or more clicks on a product. In some scenarios, however, the counting or measurement can be inaccurate as a result of events meeting the same metric definition multiple times. For example, if a metric is defined as 5 or more interactions with objects, the event may be counted a first time when 5 interactions occur and counted a second time when 6 interactions (i.e., more than 5) occur, resulting in an inaccurate count. BRIEF SUMMARY The present disclosure describes a system for generating metrics that avoids counting different versions of a same mutable event. The solution utilizes multiple stateful workloads, and ensures that events are processed only once, even if different versions of the same event occur. One aspect of the disclosure provides a system comprising memory one or more processors in communication with the memory. The one or more processors may be configured to receive a defined set of one or more metric definitions for monitoring events associated with user interaction, detect events that satisfy the one or more metric definitions, assign a unique identifier to each event that satisfies the one or more metric definitions, determine, for a first number
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (5)
Non-Patent Literature (7)
- Singh, Gurminder,
- “
- Deduplication at Scale
- ”
- , Medium
- —
- Amplitude Engineering, May 23, 2019. https://amplitude.engineering/dedupe-events-at-scale-f9e416e46ca9 (Year: 2019).