GithubHelp home page GithubHelp logo

store's Introduction

Store Kafka

Simple project to try kafka

This project has some modules to represent microservices and the communication between then using kafka.

Modules

  • commons-database: Commons code to access database;
  • commons-kafka: Commons code to create consumers and producers;
  • email: Listen topic store.new-order and store.send-email;
  • log: Log all messages sended to store.*;
  • order: Listen topic store.new-order and save it in the database;
  • report: Listen topic store.create-report-for-user and create a report for each user;
  • user:
    • Listen topic store.new-order and create a user, if it does not exists;
    • Listen topic store.send-message-to-all-users to send a command to store.create-report-for-user;
  • producer: Create the first input which will be send to store.new-order, it would be something like an http endpoint that create an order.

How to run it?

  • First you need to start a kafka server in your local machine, which has to be located in localhost:9092 as you can see in KafkaReceiver.java;
  • Run the Main class in each module to create consumers and producers needed;
  • Run the MainProducer.java to create first messages in store.new-order.

Disclaimer

store's People

Watchers

James Cloos avatar Gabriel Campioto Pires 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.