Streaming: Filter Kafka Messages

Medium
Streaming
Kafka
Filtering
readStream
Netflix
Airbnb

Streaming: Filter Kafka Messages

Read orders_topic bounded from earliest to latest. Filter to only messages whose value contains "placed" (placed orders). Return topic, partition, offset, key, value sorted by offset.

Browser Engine: Evaluates PySpark DataFrame & SQL logic locally in Pyodide WebAssembly.

Input data

0 DataFrames

These DataFrames are passed to solve(spark, dfs). Access one with dfs['name'].

Browser engine
Loading Python editor…
Click Run to try the sample cases, or Submit to check the hidden cases. First run caches the browser Python engine (~8–15s once); all code stays on your device.