Designing Data-Intensive Applications: The Big Ideas Behind Reliable, Scalable, and Maintainable Systems
Rate it:
Open Preview
67%
Flag icon
Another area in which stream processing is used is for analytics on streams.
67%
Flag icon
is more oriented toward aggregations and statistical metrics over a large number of events
67%
Flag icon
However, it could still happen that some events were buffered on another machine somewhere, delayed due to a network interruption.
67%
Flag icon
Assigning timestamps to events is even more difficult when events can be buffered at several points in the system.
67%
Flag icon
However, the clock on a user-controlled device often cannot be trusted, as it may be accidentally or deliberately set to the wrong time
67%
Flag icon
To adjust for incorrect device clocks, one approach is to log three timestamps
67%
Flag icon
By subtracting the second timestamp from the third, you can estimate the offset between the device clock and the server clock
67%
Flag icon
A hopping window also has a fixed length, but allows windows to overlap in order to provide some smoothing.
68%
Flag icon
Unlike the other window types, a session window has no fixed duration.
68%
Flag icon
so the stream processor’s local copy of the database needs to be kept up to date.
68%
Flag icon
the stream processor can subscribe to a changelog of the user profile database as well as the stream of activity events.
« Prev 1 2 Next »