Code Monkey home page Code Monkey logo

poc-springboot-camel-kafka's Introduction

poc-springboot-camel-kafka

Spring boot application with Camel and Kafka

How to run

  1. Download the 2.2.0 release and un-tar it: http://ftp.unicamp.br/pub/apache/kafka/2.2.0/kafka_2.12-2.2.0.tgz

    tar -xzf kafka_2.12-2.2.0.tgz
    cd kafka_2.12-2.2.0

  2. start the Kafka server:

    bin/kafka-server-start.sh config/server.properties

  3. Lets create a topic named "test" with a single partition and only one replica

    bin/kafka-topics.sh --create --bootstrap-server localhost:9092 --replication-factor 1 --partitions 1 --topic test

  4. Send some messages

    bin/kafka-console-producer.sh --broker-list localhost:9092 --topic test
    > message 1
    > message 2

  5. Clone this repository into another folder git clone https://github.com/gabryelrock/poc-springboot-camel-kafka.git

  6. Start the application typing it on the terminal gradle bootRun

  7. Back to the terminal where the step 4 was done and send some messages again like "apple", "orange" or "limon", now on the terminal where the application was started (step 6) you'll see what predicate and processor was actived, for example, when you sent apple, Apple predicate will process the message and print something. :)

poc-springboot-camel-kafka's People

Contributors

gabryellr avatar pjrluizcarlos avatar

Stargazers

Hadj H. avatar  avatar Eric Lima avatar Ílson Bolzan avatar

Watchers

Ílson Bolzan avatar James Cloos avatar  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.