All Projects → nodefluent → Kafka Streams

nodefluent / Kafka Streams

Licence: mit
equivalent to kafka-streams 🐙 for nodejs ✨🐢🚀✨

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Kafka Streams

Logisland
Scalable stream processing platform for advanced realtime analytics on top of Kafka and Spark. LogIsland also supports MQTT and Kafka Streams (Flink being in the roadmap). The platform does complex event processing and is suitable for time series analysis. A large set of valuable ready to use processors, data sources and sinks are available.
Stars: ✭ 97 (-84.18%)
Mutual labels:  kafka, big-data, stream-processing, kafka-streams
Go Streams
A lightweight stream processing library for Go
Stars: ✭ 615 (+0.33%)
Mutual labels:  streams, kafka, stream-processing, kafka-streams
Kafka Ui
Open-Source Web GUI for Apache Kafka Management
Stars: ✭ 230 (-62.48%)
Mutual labels:  streams, kafka, big-data, kafka-streams
Examples
Demo applications and code examples for Confluent Platform and Apache Kafka
Stars: ✭ 571 (-6.85%)
Mutual labels:  kafka, stream-processing, kafka-streams
Faust
Python Stream Processing
Stars: ✭ 5,899 (+862.32%)
Mutual labels:  kafka, stream-processing, kafka-streams
Hazelcast Jet
Distributed Stream and Batch Processing
Stars: ✭ 855 (+39.48%)
Mutual labels:  kafka, big-data, stream-processing
Kspp
A high performance/ real-time C++ Kafka streams framework (C++17)
Stars: ✭ 80 (-86.95%)
Mutual labels:  kafka, stream-processing, kafka-streams
Awesome Kafka
A list about Apache Kafka
Stars: ✭ 397 (-35.24%)
Mutual labels:  kafka, stream-processing, kafka-streams
Kafka Tutorials
Kafka Tutorials microsite
Stars: ✭ 144 (-76.51%)
Mutual labels:  kafka, stream-processing, kafka-streams
Data Accelerator
Data Accelerator for Apache Spark simplifies onboarding to Streaming of Big Data. It offers a rich, easy to use experience to help with creation, editing and management of Spark jobs on Azure HDInsights or Databricks while enabling the full power of the Spark engine.
Stars: ✭ 247 (-59.71%)
Mutual labels:  kafka, big-data, kafka-streams
kafka-shell
⚡A supercharged, interactive Kafka shell built on top of the existing Kafka CLI tools.
Stars: ✭ 107 (-82.54%)
Mutual labels:  streams, stream-processing
open-stream-processing-benchmark
This repository contains the code base for the Open Stream Processing Benchmark.
Stars: ✭ 37 (-93.96%)
Mutual labels:  stream-processing, kafka-streams
football-events
Event-Driven microservices with Kafka Streams
Stars: ✭ 57 (-90.7%)
Mutual labels:  stream-processing, kafka-streams
godsend
A simple and eloquent workflow for streaming messages to micro-services.
Stars: ✭ 15 (-97.55%)
Mutual labels:  streams, stream-processing
talaria
TalariaDB is a distributed, highly available, and low latency time-series database for Presto
Stars: ✭ 148 (-75.86%)
Mutual labels:  big-data, stream-processing
storm-ml
an online learning algorithm library for Storm
Stars: ✭ 18 (-97.06%)
Mutual labels:  big-data, stream-processing
kerala
Distributed KV Streams
Stars: ✭ 16 (-97.39%)
Mutual labels:  streams, stream-processing
Kafkastreams Cep
Complex Event Processing on top of Kafka Streams
Stars: ✭ 257 (-58.08%)
Mutual labels:  kafka, kafka-streams
Logrange
High performance data aggregating storage
Stars: ✭ 181 (-70.47%)
Mutual labels:  streams, stream-processing
stream-registry
Stream Discovery and Stream Orchestration
Stars: ✭ 105 (-82.87%)
Mutual labels:  streams, stream-processing

node-kafka-streams

Build Status npm version

// suggested Node.js version: v12.16.1
npm install --save kafka-streams
const {KafkaStreams} = require("kafka-streams");

const config = require("./config.json");
const factory = new KafkaStreams(config);

const kstream = factory.getKStream("input-topic");
const ktable = factory.getKTable(/* .. */);

kstream.merge(ktable).filter(/* .. */).map(/* .. */).reduce(/* .. */).to("output-topic");

CHANGES: The latest version brings a lot of changes, please check here before updating.

API Overview

You might also like

README Overview

Prerequisites

  • Kafka broker should be version >= 0.11.x
  • Node.js should be version >= 8.x.x

A note on native mode

If you are using the native mode (config: { noptions: {} }). You will have to manually install node-rdkafka alongside kafka-streams. (This requires a Node.js version between 9 and 12 and will not work with Node.js >= 13, last tested with 12.16.1)

On Mac OS High Sierra / Mojave: CPPFLAGS=-I/usr/local/opt/openssl/include LDFLAGS=-L/usr/local/opt/openssl/lib yarn add --frozen-lockfile [email protected]

Otherwise: yarn add --frozen-lockfile [email protected]

(Please also note: Doing this with npm does not work, it will remove your deps, npm i -g yarn)

Aim of this Library

  • this is not a 1:1 port of the official JAVA kafka-streams
  • the goal of this project is to give at least the same options to a nodejs developer that kafka-streams provides for JVM developers
  • stream-state processing, table representation, joins, aggregate etc. I am aiming for the easiest api access possible checkout the word count example

Description

kafka-streams 🐙 equivalent for nodejs ✨🐢🚀✨ build on super fast 🔥 observables using most.js 🤘

ships with sinek 🙏 for backpressure

comes with js and native Kafka client, for more performance and SSL, SASL and Kerberos features

the lib also comes with a few window operations that are more similar to Apache Flink, yet they still feel natural in this api

overwriteable local-storage solution allows for any kind of datastore e.g. RocksDB, Redis, Postgres..

async (Promises) and sync stream operators e.g. stream$.map() or stream$.asyncMap()

super easy API

the lib is based on sinek, which is based on kafka-node's ConsumerGroups

Port Progress Overview

  • [x] core structure
  • [x] KStream base - stream as a changelog
  • [x] KTable base - stream as a database
  • [x] KStream & KTable cloning
  • [x] complex stream join structure
  • [ ] advanced joins see
  • [ ] windows (for joins) see
  • [ ] flink like window operations
  • [x] word-count example
  • [x] more examples
  • [x] local-storage for etl actions
  • [x] local-storage factory (one per action)
  • [ ] KStorage example for any DB that supports atomic actions
  • [ ] backing-up local-storage via kafka
  • [x] kafka client implementation
  • [x] KTable replay to Kafka (produce)
  • [x] stream for topic message production only
  • [x] sinek implementation
  • [x] backpressure mode for KafkaClient
  • [x] auto-json payloads (read-map/write-map)
  • [x] auto producer partition and keyed-message handling
  • [x] documentation
  • [x] API description
  • [ ] higher join & combine examples
  • [x] embed native client librdkafka for more performance
  • [x] SSL
  • [x] SASL
  • [x] Kerberos

Operator Implementations

  • [x] map
  • [x] asyncMap
  • [x] constant
  • [x] scan
  • [x] timestamp
  • [x] tap
  • [x] filter
  • [x] skipRepeats
  • [x] skipRepeatsWith
  • [x] slice
  • [x] take
  • [x] skip
  • [x] takeWhile
  • [x] skipWhile
  • [x] until
  • [x] since
  • [x] reduce
  • [x] chainReduce
  • [x] forEach (observe)
  • [x] chainForEach
  • [x] drain
  • [x] _zip
  • [x] _merge
  • [x] _join
  • [x] _combine
  • [x] _sample
  • [x] throttle
  • [x] debounce
  • [x] delay
  • [x] multicast
  • A description of the operators can be found here
  • Missing an operator? Feel free to open an issue 👮

Additional Operators

  • [x] mapStringToArray
  • [x] mapArrayToKV
  • [x] mapStringToKV
  • [x] mapParse
  • [x] mapStringify
  • [x] atThroughput
  • [x] mapWrapKafkaPayload
  • [x] mapToFormat
  • [x] mapFromFormat
  • Want more? Feel free to open an issue 👮

Stream Action Implementations

  • [x] countByKey
  • [x] sumByKey
  • [x] min
  • [x] max
  • Want more? Feel free to open an issue 👮

Join Operations

Operation description

KStream Status

  • [x] merge
  • [ ] outerJoin
  • [x] innerJoin
  • [ ] leftJoin
  • [x] branch

KTable Status

  • [x] merge
  • [ ] outerJoin
  • [ ] innerJoin
  • [ ] leftJoin

KTable <-> KStream Status

  • [x] merge
  • [ ] outerJoin
  • [ ] innerJoin
  • [ ] leftJoin

Window Operations

KStream

  • [x] window
  • [ ] advanced window
  • [ ] rolling window

More

Can I use this library yet?

Yes.

Are we ready for production yet?

Probably, yes. 😄

Even More

Forks or Stars give motivation

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].