Home icon

Build a real-time event pipeline with Spark Real-Time Mode on AWS Glue 6.0

Big Data Blog



This article demonstrates how to build a multi-layer real-time event pipeline using AWS Glue 6.0 for processing trades with heterogeneous schemas across real-time, near-real-time, and batch layers.

  • Spark Real-Time Mode eliminates micro-batch boundaries for sub-second trade scoring and position breach alerts
  • Iceberg v3 Variant columns store semi-structured pricing vectors without requiring fixed schemas upfront
  • Variant shredding automatically extracts fields into typed Parquet columns for faster downstream queries
  • Arrow-native UDFs process data as vectorized columnar batches, eliminating pickle serialization overhead for Python risk calculations
  • Deletion vectors enable efficient row-level updates and cancellations using compact Roaring Bitmaps instead of file rewrites
  • DEFAULT values reduce boilerplate in ingestion code for missing fields
  • Solution uses three independent Glue jobs: real-time alerts (Scala), near-real-time ingestion (PySpark), and batch VaR analytics (PySpark)

The architecture handles schema heterogeneity, JSON parsing overhead, and mixed-latency requirements in a single unified pipeline applicable to IoT, SaaS, and logistics use cases.



Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

Sep 9
2026
Build declarative ETL pipelines with AWS Glue 6.0
Aug 24
2026
Upgrade AWS Glue jobs to Glue 6.0 with AI-powered Spark upgrades
Sep 1
2026
Accelerate Apache Spark debugging on Amazon EMR with AWS DevOps Agent
Aug 24
2026
Introducing AWS Glue 6.0 for faster and more cost-effective data integration

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.