You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/windowing.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ With windows, you can calculate such aggregations as:
9
9
- Total of website visitors for every hour
10
10
- The average speed of a vehicle over the last 10 minutes
11
11
- Maximum temperature of a sensor observed over 30 second ranges
12
-
- Give an user a reward after 10 succesful actions
12
+
- Give a user a reward after 10 successful actions
13
13
- Track user activity sessions on a website
14
14
- Detect fraud patterns in financial transactions
15
15
@@ -205,14 +205,14 @@ Count-based Tumbling Windows slice incoming events into batch of a fixed size.
205
205
For example, a tumbling window configured with a count of 4 will batch and aggregate message 1 to 4, then 5 to 8, 9 to 12 and so on.
206
206
207
207
```
208
-
Count Tumbing Windows
208
+
Count Tumbling Windows
209
209
[0, 3] : ....
210
210
[4, 7] : ....
211
211
[8, 11] : ....
212
212
[12, 15] : ....
213
213
```
214
214
215
-
In a tumbing window each message is only assigned to a **single** interval.
215
+
In a tumbling window each message is only assigned to a **single** interval.
216
216
217
217
**Example**
218
218
@@ -358,7 +358,7 @@ Count Hopping Windows
358
358
[6, 11] : ......
359
359
```
360
360
361
-
In hopping windows each messages can be assigned to multiple windows because the windows overlap.
361
+
In hopping windows each message can be assigned to multiple windows because the windows overlap.
362
362
363
363
## Time-based Sliding Windows
364
364
Sliding windows are overlapping time-based windows that advance with each incoming message, rather than at fixed time intervals like hopping windows. They have a fixed 1 ms resolution and perform better and are less resource-intensive than hopping windows with a 1 ms step. Sliding windows do not produce redundant windows; every interval has a distinct aggregation.
@@ -440,7 +440,7 @@ sdf = (
440
440
441
441
Sliding windows are overlapping windows that advance with each incoming message. They are equal to count-based hopping windows with a step of 1.
442
442
443
-
For example a sliding window of 4 messagew will generate the followiwng windows:
443
+
For example a sliding window of 4 messages will generate the following windows:
444
444
445
445
```
446
446
Count Sliding Windows
@@ -504,7 +504,7 @@ sdf = (
504
504
505
505
## Session Windows
506
506
507
-
Session windows group events that occur within a specified timeout period. Unlike fixed-time windows (tumbling, hopping, sliding), session windows have dynamic durations based on the actual timing of events, making them ideal for user activity tracking, fraud detection, and other event-driven scenarios.
507
+
Session windows group events that occur within a specified timeout period. Unlike fixed-time windows (tumbling, hopping, sliding), session windows have dynamic durations based on the actual timing of events. This makes them ideal for user activity tracking, fraud detection, and other event-driven scenarios.
508
508
509
509
A session starts with the first event and extends each time a new event arrives within the timeout period. The session closes after the timeout period with no new events.
510
510
@@ -525,7 +525,7 @@ Timeout: 10 seconds
525
525
Grace: 2 seconds
526
526
527
527
Session 1: [0, 20] - Events A, B (B extends the session from A)
528
-
Session 2: [25, 35] - Events C, D (D extends the session from C)
528
+
Session 2: [25, 40] - Events C, D (D extends the session from C)
529
529
Session 3: [45, 55] - Event E (session will close at 55 if no more events)
0 commit comments