E-Commerce

A home goods retailer sees 68% cart abandonment. The marketing team wants to trigger personalized recovery actions (push notification, email, exit-intent popup discount) within 2 minutes of abandonment — not 24 hours later when the shopper has already bought from a competitor.

The batch abandonment email sends at 8 AM next morning. By then, 72% of those shoppers have already completed purchase elsewhere. Recovery rate: 2.1%.
LIVEsession_events
session_iduser_ideventproduct_namepricecart_totalts
sess_k8m2nusr_58312page_viewPottery Barn Linen Duvet18902024-03-15T19:42:08.000Z
sess_k8m2nusr_58312add_to_cartPottery Barn Linen Duvet1891892024-03-15T19:42:51.000Z
sess_k8m2nusr_58312page_viewLinen Pillow Sham Set (2)791892024-03-15T19:43:18.000Z
sess_k8m2nusr_58312add_to_cartLinen Pillow Sham Set (2)792682024-03-15T19:43:44.000Z
sess_k8m2nusr_58312add_to_cartLinen Pillow Sham Set (2)793472024-03-15T19:44:02.000Z
sess_r4p9wusr_22107add_to_cartCeramic Table Lamp1241242024-03-15T19:44:30.000Z
Streaming SQLRunning
Ingest session events from Kafka
CREATE SOURCE session_events WITH (
  connector = 'kafka',
  topic = 'ecommerce.session.events',
  properties.bootstrap.server = 'broker:9092'
) FORMAT PLAIN ENCODE JSON;
Detect abandoned carts and compute recovery actions
abandonment_actionsauto-updating
session_idcart_totalidle_secondsuser_ltvdiscount_pctaction_typetriggered_at
sess_k8m2n347122124010push_notification2024-03-15T19:46:04.000Z
sess_r4p9w12494855email2024-03-15T19:46:04.000Z
sess_t7v3q651123200email2024-03-15T19:46:04.000Z
RisingWave detects session sess_k8m2n idle for 90 seconds with a $347 cart (Pottery Barn duvet + 2 pillow shams). A 10% discount push notification fires at the 2-minute mark. Recovery rate jumps to 11.4%.
Best-in-Class Event Streaming
for Agents, Apps, and Analytics
GitHubXLinkedInSlackYouTube
Sign up for our to stay updated.