Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/rogervinas/spring-boot-camel-kafka-cassandra
- Owner: rogervinas
- Created: 2024-06-25T16:25:53.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-10-29T10:42:27.000Z (3 months ago)
- Last Synced: 2024-10-29T12:33:17.479Z (3 months ago)
- Topics: apache-camel, cassandra, kafka, spring-boot
- Language: Java
- Homepage:
- Size: 135 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```