Skip to content

privatedumbo/rising-whale

Repository files navigation

Rising Whale

Playing around with Streaming and Rising Wave

Quickstart

Project setup

This project is managed through invoke.

$ poetry install
$ inv --list

and serve yourself :)

Setting up Rising Wave

$ cd docker
$ docker-compose up --build -d

After this, you should be able to access:

And connect to a local postgres instance with the arguments in .env suffixed with RISING_WAVE.

Example setup

I'm assuming you already configured Rising Wave following the previous step!

As this in still under active development, there is not a single neat clean tidy entrypoint/CLI for this.

$ python src/rising_whale/kafka/main.py

After running this:

  1. You should have 1 topic created
  2. You should have 1 message in the topic
  3. The message's schema should be registered in RedPanda schema registry

Next:

  1. Connect to RisingWave database through your favorite SQL Client
  2. Allow Rising Wave to read from the topic and query from it:
CREATE SOURCE IF NOT EXISTS rising_whale_purchase
WITH (
   connector='kafka',
   topic='rising-whale-input',
   properties.bootstrap.server='message_queue:29092',
) FORMAT PLAIN ENCODE AVRO (
   schema.registry = 'http://message_queue:8081'
);

select *, _rw_kafka_timestamp from rising_whale_purchase;

About

No description, website, or topics provided.

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published