Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mrmorais/racing-cars-demo

Online Interactive Game for Kafka/kSQL Demo
https://github.com/mrmorais/racing-cars-demo

kafka ksqldb vertx

Last synced: 20 days ago
JSON representation

Online Interactive Game for Kafka/kSQL Demo

Awesome Lists containing this project

README

        

# Cars Race Demo

Developed with Vert.x, Kafka, kSQL and React App.

![](./cars-race-diagram.jpg)

## kSQL Statements

Create `car_race_updates` stream

```sql
CREATE STREAM car_race_updates (session VARCHAR, team VARCHAR)
WITH (kafka_topic='cars_race_clicks', value_format='json', partitions=6);
```

Create `car_care_scores` materialized view

```sql
CREATE TABLE car_race_scores WITH (format='json') AS
SELECT session, team, COUNT(team) as score FROM car_race_updates
GROUP BY session, team
EMIT CHANGES;
```

## Running

### React App

```
$ yarn
$ yarn start
```

### Vert.x App

```
$ ./mvnw clean compile exec:java
```