Topic 1 Question 11
You are designing a basket abandonment system for an ecommerce company. The system will send a message to a user based on these rules: ✑ No interaction by the user on the site for 1 hour Has added more than $30 worth of products to the basket
✑ Has not completed a transaction
You use Google Cloud Dataflow to process the data and decide if a message should be sent. How should you design the pipeline?Use a fixed-time window with a duration of 60 minutes.
Use a sliding time window with a duration of 60 minutes.
Use a session window with a gap time duration of 60 minutes.
Use a global window with a time based trigger with a delay of 60 minutes.
ユーザの投票
コメント(6)
There are 3 windowing concepts in dataflow and each can be used for below use case
- Fixed window
- Sliding window and
- Session window.
Fixed window = any aggregation use cases, any batch analysis of data, relatively simple use cases.
Sliding window = Moving averages of data Session window = user session data, click data and real time gaming analysis.
The question here is about user session data and hence session window.
Reference: https://cloud.google.com/dataflow/docs/concepts/streaming-pipelines
👍 14vetaal2022/11/05C. Use a session window with a gap time duration of 60 minutes.
A session window would be the most appropriate option to use in this case, as it would allow you to group events into sessions based on time gaps. In this case, the gap time of 60 minutes could be used to define a session, and if there is no interaction from the user for 60 minutes, a new session would be created. By using a session window, you can track the behavior of the user during each session, including the products added to the basket, and determine if the conditions for sending a message have been met (i.e., the user has added more than $30 worth of products to the basket and has not completed a transaction).
👍 2samdhimal2023/02/05- 正解だと思う選択肢: C
C. Use a session window with a gap time duration of 60 minutes.
👍 1AWSandeep2022/09/02
シャッフルモード