RisingWave

Instructions on how to use WarpStream with RisingWave.

A video walkthrough can be found below:

RisingWavearrow-up-right is a distributed SQL streaming database. In this "how-to," we'll show you how to connect it to WarpStream using the Apache Kafka API to create a stream processing application that performs streaming aggregations using RisingWave materialized views.

First, follow our instructions for running the WarpStream Agent locally. We recommend running the: warpstream demo command since it will automatically generate a Kafka topic with fake click stream data for us to consume.

Next, follow the RisingWave Quick Startarrow-up-right instructions to install RisingWave locally and connect to it with psql.

Once you have started a RisingWave instance with the risingwave playground command and then connected to it by running psql -h localhost -p 4566 -d dev -U root , create a new table called website_visits:

Next, create a RisingWave Kafka source:

Next, create a RisingWave materialized view:

Finally, query the newly created materialized view:

You should see the view to continue updating over time as you reissue the query:

Congratulations, you just built a streaming materialized view directly over data flowing through WarpStream!

If you want to quickly recreate the RisingWave environment, you can copy and paste this entire command into psql:

Last updated

Was this helpful?