Code Monkey home page Code Monkey logo

kafka-cdi-microprofile-hello-world's Introduction

kafka-cdi-microprofile-hello-world - A hello world using Apache Kafka and Eclipse Microprofile

Apache Kafka

Apache Kafka is a community distributed streaming platform that has three key capabilities: publish and subscribe to streams of records, store streams of records in a fault-tolerant durable way and then process as streams as they occur. Apache Kafka has several success cases that include at the Java World.,

Install Apache Kafka

The official documentation has a nice getting start with Apache Kafka that teaches to install it and also Zookeeper, briefly, Kafka uses Zookeeper to Cluster membership, topic configuration and so on.

Download the 2.1.0 release and un-tar it.

tar -xzf kafka_2.11-2.1.0.tgz
cd kafka_2.11-2.1.0
  • Start first a Zookeeper instance
bin/zookeeper-server-start.sh config/zookeeper.properties
  • To finally, start with Apache Kafka:
 bin/kafka-server-start.sh config/server.properties

Using Docker

Docker

Run the command:

docker-compose -f docker-compose.yml up -d

To connect as localhost, also defines the Kafka as localhost, within Linux append value below at the /etc/hosts

127.0.0.1       localhost kafka

To stop the services:

docker-compose -f docker-compose.yml down

Install maven dependencies

Run:

mvn clean install

Execute the App at your IDE and check the results.

kafka-cdi-microprofile-hello-world's People

Contributors

otaviojava 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.