-
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
-
start the Kafka server:
bin/kafka-server-start.sh config/server.properties
-
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
-
Send some messages
bin/kafka-console-producer.sh --broker-list localhost:9092 --topic test
> message 1
> message 2
-
Clone this repository into another folder
git clone https://github.com/gabryelrock/poc-springboot-camel-kafka.git
-
Start the application typing it on the terminal
gradle bootRun
-
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 Introduction
poc-springboot-camel-kafka's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.