https://github.com/okp4/kafka-processor-cosmos-block
Kafka Streams Processor to unwrap CØSMOS blocks into CØSMOS transactions
https://github.com/okp4/kafka-processor-cosmos-block
cosmos-sdk kafka kafka-streams
Last synced: 27 days ago
JSON representation
Kafka Streams Processor to unwrap CØSMOS blocks into CØSMOS transactions
- Host: GitHub
- URL: https://github.com/okp4/kafka-processor-cosmos-block
- Owner: okp4
- License: bsd-3-clause
- Created: 2022-04-08T14:07:16.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-29T09:48:15.000Z (about 1 year ago)
- Last Synced: 2024-11-04T19:42:13.892Z (6 months ago)
- Topics: cosmos-sdk, kafka, kafka-streams
- Language: Kotlin
- Homepage:
- Size: 325 KB
- Stars: 4
- Watchers: 3
- Forks: 2
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ccamel - okp4/kafka-processor-cosmos-block - Kafka Streams Processor to unwrap CØSMOS blocks into CØSMOS transactions (Kotlin)
README
# Kafka Processor CØSMOS-Block
> A Kafka Streams Processor to unwrap CØSMOS blocks into CØSMOS transactions powered by Quarkus.
[](https://github.com/okp4/kafka-processor-cosmos-block/releases)
[](https://github.com/okp4/kafka-processor-cosmos-block/actions/workflows/build.yml)
[](https://github.com/okp4/kafka-processor-cosmos-block/actions/workflows/lint.yml)
[](https://github.com/okp4/kafka-processor-cosmos-block/actions/workflows/test.yml)
[](https://conventionalcommits.org)
[](https://github.com/okp4/.github/blob/main/CODE_OF_CONDUCT.md)
[](https://opensource.org/licenses/BSD-3-Clause)
[](https://quarkus.io)## Purpose
The Kafka Processor `CØSMOS-Block` is basically a Stream Processor which continuously
reads [CØSMOS blocks](https://docs.cosmos.network/master/intro/sdk-app-architecture.html) from an `input` Kafka topic,
unwraps the CØSMOS transactions and sends them to an `output` topic.
![]()
This processor plays well with the [CØSMOS Kafka Connector](https://github.com/okp4/kafka-connector-cosmos)
which provides Kafka with CØSMOS blocks ready to be processed.## Implementation
Implementation mainly relies on [Kafka Streams API](https://kafka.apache.org/documentation/streams), library to create
event-stream applications with the following features:- no external dependency other than Kafka itself,
- simple and light library,
- fault-tolerant and scalable.Moreover, this implementation:
- uses [Kotkin](https://kotlinlang.org/) as primary coding language,
- uses [Quarkus](https://quarkus.io/) to minimize resources consumption,
- is as much as possible, lean, i.e. tries to minimize the dependencies to 3rd party libraries and the resulting package
footprint.## Build
This project targets the [JVM 11+](https://openjdk.java.net/), so be sure to have it available in your environment.
This project relies on the [Gradle](https://gradle.org/) build system.
If you are on Windows then open a command line, go into the root directory and run:
```sh
.\gradlew build
```If you are on linux/mac then open a terminal, go into the root directory and run:
```sh
./gradlew build
```This command line produces a _native_ executable: `kafka-processor-cosmos-block-X.Y-runner`
## You want to get involved? 😍
Please check out OKP4 health files :
- [Contributing](https://github.com/okp4/.github/blob/main/CONTRIBUTING.md)
- [Code of conduct](https://github.com/okp4/.github/blob/main/CODE_OF_CONDUCT.md)