Giter Club home page Giter Club logo

kstreams's Introduction

GKS (Gigaspaces KStreams state store)

GKS is a fully searchable state store for Kafka streams based on Gigaspaces.

  1. Install InsightEdge. Update the license file under $GS_HOME/gs-license.txt Modify the bin/set-gs-env.sh as required.

  2. Install Kafka. Set the KAFKA_HOME environment variable.

  3. Run bin/start-gs.sh script to start Gigaspaces

  4. Run bin/start-kafka.sh

  5. Run bin/deploy-gs.sh

  6. Run bin/kafka-write-messages.sh to place data in Kafka topic.

  7. Run com.gigaspaces.demo.kstreams.App Java program.

The Kafka StateStore example takes Kafka stream input in the form of a key: followed by text.

The key is used to uniquely identify a document stored in Gigaspaces. You can also think of it as a title of a document. With that we store a map that contains the words in the text and the counts.

For example: key:this is is a test

Creates the following data structure that gets stored to Gigaspaces. docId: key, map{ this=1, is=2, a=1, test=1, " "=4}

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.