Upstash Kafka Setup
Create a Kafka cluster using Upstash Console or Upstash CLI by following Getting Started. Create two topics by following the creating topic steps. Let’s name the first topicinput
, since we are going to stream from this topic to Proton. The name of the second topic can be output
. This one is going to receive the stream from Proton.
Setup Proton
Proton is a single binary for Linux/Mac, also available as a Docker image. You can download/install it via various options:- ghcr.io/timeplus-io/proton:latest
- brew tap timeplus-io/timeplus; brew install proton
- curl -sSf https://raw.githubusercontent.com/timeplus-io/proton/develop/install.sh | sh
- or download the binary for Linux/Mac via https://github.com/timeplus-io/proton/releases/tag/v1.3.31
Create an External Stream to read Kafka data
External Stream is the key way for Proton to connect to Kafka cluster and read/write data.Run Streaming SQL
Then you can run the following streaming SQL:input
topic:

Apply Streaming ETL and Write Data to Upstash Kafka
Cancel the previous streaming SQL and use the following one to mask the IP addresses.output
as topic name) and use a Materialized View as the background job to write data continuously to the output stream.
input
topic and you should get them available in output
topic with raw IP addresses masked.
