Giter Site home page Giter Site logo

cujo78 / kstreams-des-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jbfletch/kstreams-des-demo

0.0 0.0 0.0 77 KB

Kafka Streams demo project containing Derivative Events, the Processor Api and Wall-clock examples

License: MIT License

Java 100.00%

kstreams-des-demo's Introduction

kstreams-des-demo

Demo project for Derivative Events and other Kafka Streams fun

Relies on the kafka-streams-fluent-test library.

Requirements: Maven, Java 8+

Overview: This is a self contained Kafka Streams project that illustrates a few different ways to use derivative events.
It includes the following unit tests

DesStreamJsonTest - Simple example of applying an event profile for notification

DesStreamMultiTableJsonTest - Complex event aggregate example that shows how to implement topology to assure event completeness

SessionWindowProcessorApiTest - Simple example of emitting the latest value for a given session key using wall clock time and the processor api

WallClockAlertProcessorApiTest - Demo illustrating a way to use wall clock time to detect when an external integration receives and event and never returns a message back within a given time span.

WallClockWindowProcessorApiTest - Shows how to use a TimestampKeyValue store to emit the last received value for a given key after x time interval. The interval is tracked per key and begins when that key is first inserted into the store

SampleLatestNMessagesTest- This demonstrates keeping and emitting the last n values (in our example n == 2) for a given key

SampleLatestNMessagesWindowTest- This demonstrates keeping and emitting the last n values (in our example n == 2) for a given key, subject to windows of 10 seconds, in this example late arriving records are dropped

To Run: Pull the project down, specify jdk 8+, and run mvn clean test this will run the unit tests.

kstreams-des-demo's People

Contributors

jbfletch avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.