GithubHelp home page GithubHelp logo

hungngomobile / event-sourcing-kafka-streams Goto Github PK

View Code? Open in Web Editor NEW

This project forked from amitayh/event-sourcing-kafka-streams

0.0 1.0 0.0 820 KB

Demo code from my talk @ Codemotion Milan 2018 - "Building event sourced systems with Kafka Streams"

Home Page: https://speakerdeck.com/amitayh/building-event-sourced-systems-with-kafka-streams

License: MIT License

Shell 1.46% JavaScript 27.45% Scala 66.55% CSS 0.39% HTML 3.73% Dockerfile 0.42%

event-sourcing-kafka-streams's Introduction

Event Sourcing with Kafka Streams

This is a POC for using Kafka Streams as a backbone for an event sourced system.

Running the project locally

You can either run the project with Docker Compose, or run everything on your host.

Prerequisites

  1. Install sbt (help)

  2. Build the project:

    $ sbt assembly
    

Run with Docker Compose

  1. Update your host IP address in .env

  2. Build images

    $ docker-compose build
    
  3. Start the containers

    $ docker-compose up
    

Run on host

Setup

  1. Run Zookeeper / Kafka (help)

  2. Run MySQL (help)

  3. Install the schema

  4. Create the topics (edit config/local.properties as needed):

    $ bin/setup.sh config/local.properties
    

Running

  1. Run the command handler:

    $ bin/commandhandler.sh config/local.properties
    
  2. Run the invoices list projector:

    $ bin/projector.sh config/local.properties
    
  3. Run the web server:

    $ bin/web.sh config/local.properties
    

If everything worked, you should be able to see the app running at http://localhost:8080/index.html

License

Copyright © 2018 Amitay Horwitz

Distributed under the MIT License

event-sourcing-kafka-streams's People

Contributors

amitayh avatar

Watchers

James Cloos 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.