✦ Want a lab built just for you? ✦
Request a Lab ↗

Real-Time Clickstream Analytics with Kinesis and Redshift Serverless

About this lab

You are a data engineer at AdPulse, a digital advertising platform that serves display ads across thousands of publisher websites. The product team needs real-time visibility into which ad creatives are getting clicks, which campaigns are overspending, and where users are dropping off. The current nightly batch reports are too slow for the media buyers who optimize campaigns throughout the day.

You will build a real-time pipeline that ingests clickstream events through Amazon Kinesis Data Streams, processes them with a Lambda consumer that enriches and aggregates the data, and loads the results into Amazon Redshift Serverless for instant querying. You will also build a click fraud detection check that flags suspicious patterns before they reach the warehouse.

Lab details

  • Level: Intermediate
  • Cloud: AWS
  • Domain: Data Engineering
  • Duration: 90 minutes

What you will learn

  • Set up Amazon Redshift Serverless with a namespace and workgroup
  • Create and configure a Kinesis Data Stream for event ingestion
  • Build a Lambda consumer that processes streaming records in batches
  • Implement basic click fraud detection logic in the processing layer
  • Run real-time analytics queries against streaming data in Redshift

Concepts covered

  • Real-Time Streaming
  • Amazon Kinesis
  • Redshift Serverless
  • Event Processing
  • Click Fraud Detection
  • Lambda Event Source Mappings

Technologies used

  • Amazon Kinesis Data Streams
  • AWS Lambda
  • Amazon Redshift Serverless
  • Python (boto3)

Prerequisites

  • An AWS account with permissions to create Kinesis, Lambda, and Redshift resources
  • Basic Python knowledge
  • Familiarity with SQL

Topics

  • AWS
  • Kinesis
  • Lambda
  • Redshift
  • Streaming
  • Real-Time
  • Intermediate
  • Data Engineering
  • AdTech