Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/mrmorais/racing-cars-demo
- Owner: mrmorais
- Created: 2022-11-02T21:36:23.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-08T01:25:41.000Z (about 2 years ago)
- Last Synced: 2024-11-01T02:23:38.304Z (2 months ago)
- Topics: kafka, ksqldb, vertx
- Language: Java
- Homepage:
- Size: 248 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```