Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/rogervinas/spring-boot-camel-kafka-cassandra

🐪 Spring Boot Camel + Kafka + Cassandra
https://github.com/rogervinas/spring-boot-camel-kafka-cassandra

apache-camel cassandra kafka spring-boot

Last synced: 3 months ago
JSON representation

🐪 Spring Boot Camel + Kafka + Cassandra

Awesome Lists containing this project

README

        

[![CI](https://github.com/rogervinas/spring-boot-camel-kafka-cassandra/actions/workflows/ci.yml/badge.svg)](https://github.com/rogervinas/spring-boot-camel-kafka-cassandra/actions/workflows/ci.yml)
![Java](https://img.shields.io/badge/Java-21-blue?labelColor=black)
![SpringBoot](https://img.shields.io/badge/SpringBoot-3.3.x-blue?labelColor=black)
![ApacheCamel](https://img.shields.io/badge/ApacheCamel-4.8.0-blue?labelColor=black)
![Cassandra](https://img.shields.io/badge/Cassandra-5.0-blue?labelColor=black)
![ConfluentKafka](https://img.shields.io/badge/ConfluentKafka-7.6.1-blue?labelColor=black)

# Spring Boot + Apache Camel + Kafka + Cassandra

Documentation:
* [Cassandra CQL Camel Component](https://camel.apache.org/components/4.4.x/cql-component.html)

# Test
```shell
./gradlew check
```

# Run
```shell
docker compose up -d
./gradlew bootRun
docker compose down
```

# Build and Run Jar
```shell
docker compose up -d
./gradlew build
java -jar build/libs/spring-boot-camel-kafka-cassandra-0.0.1-SNAPSHOT.jar
docker compose down
```

# CQL shell
```shell
docker compose up -d
docker exec -it spring-boot-camel-kafka-cassandra-cassandra-1 cqlsh cassandra 9042 --cqlversion='3.4.7'
use test_keyspace;
select * from hits;
```

# Send to Kafka using [kcat](https://github.com/edenhill/kcat)
```shell
kcat -b localhost:9094 -t hits -P src/test/resources/message.json
```