Giter VIP home page Giter VIP logo

probevortrag-kafka's Introduction

probevortrag-sparsity

This repository contains the example for Kafka Streams data processing that I used in my lecture on Real-Time Stream Processing with Apache Kafka.

Overview:

In this example, we simulate clickstream events, namely pageviews. This pageviews get are continously generated and are written to the kafka topic pageview. Then, several transformations to this data is performed usind kafka streams.

To run:

This example is build on top of the confluent-platform Kafka distribution. To get startet, it is recommended to start a local confluent-platform instance using Docker. You can get the corresponding docker-compose.yml here. The confluent-platform than can be started using

docker-compose up

This will start all necessary services. If the Kafka cluster is up and running, you can execute the example using the jar file in the artifacts as

 java -jar kafka-clickstream-enrich.jar

The application assumes that you are using the standard ports for each of the confluent services. After that, you can have a look at the messages created in the topics using the kafka control center, which should be available under

http://localhost:9021/

Notes on editing the example:

If you wish to modify the sourcecode and implement your own examples, I would suggest you to use an IDE, preferebly IntelliJ IDEA. All necessary dependencies can be resolved using the provided pom.xml file via apache maven. All POJO classes which are used for serializing and deserializing data are build using apache avro. To this end, all classes found in

/src/main/java/org/djames/kafka/streams/example/model

are generated via maven using the target generate-sources from the corresponding avro schme files to be found in

/src/main/avro/org/djames/kafka/streams/example/model

For the serialization/deserialization to work properly, the kafka schema registry is used, which will also be started automatically via docker-compose.

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.