QuestionQ86

VerifiedIngesting and processing the data

You are using Dataflow to create a streaming data pipeline that analyzes user website click activity from Pub/Sub. You need to calculate the number of clicks for each user site visit. A site visit is defined as a period of activity followed by 30 minutes of inactivity for a particular user. What should you do?

Explanation

Session windows group events for each key based on inactivity: events within the configured gap belong to the same session, and an event after that gap starts a new session. A 30-minute gap duration therefore defines each user’s site visit correctly.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!