Git Product home page Git Product logo

kafka-tutorial's Introduction

Kafka Tutorial

CC BY-SA 4.0

A tutorial into the world of Apache Kafka.

Introduction

This repo contains a few directories of code and config to allow one to become more familiar with Kafka. Kafka can be a little daunting at first with a lot of new jargon and lots of libraries. This repo aims to create a fun, easy way to explore Apache Kafka.

If you find this in any way helpful, make sure to star the repository. If you find an issues, please open an issue or fork the repo and create a pull request with your fix.

The Goal

Throughout this tutorial, you will be building an application that takes a stream of points and creating a Pinball High Score board using Kafka. In a real world environment, your pinball game would be producing the points, game ids, etc., but we will be producing them from a static list as an exercise.

For those that enjoy music while coding, enjoy some American Rock with Pinball Wizard: Youtube, Apple Music, Spotify

Supporting Infrastructure

The first folder you should explore is the Infra folder. In there you will find a docker compose file that will let you spin up a kafka cluster, and a few more pieces for this tutorial. This tutorial assumes that you have docker installed. You can also try using podman with podman-compose but this is untested and currently unsupported.

If you cd into the infra folder, you should be able to do a docker-compose up command and have everything come up. This may take a while the first time, as there are a lot of large images associated with Kafka.

Once you have the containers up and running, run the setup.sh file to create a few topics and other resources needed for this tutorial.

Part 1

Once you have the supporting infrastructure up you are ready to proceed to Part 1

Cleaning up

Once you are done, make sure you stop all containers and remove them:

# in infra/
docker-compose stop
docker-compose rm

# Remove unused images and volumes
# Cleans up space
docker system prune --all

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

CC BY-SA 4.0

kafka-tutorial's People

Contributors

southporter avatar

Watchers

 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.