Coder Social home page Coder Social logo

jshubham1 / spring-kafka-transactions Goto Github PK

View Code? Open in Web Editor NEW

This project forked from milofelipe/spring-kafka-transactions

0.0 0.0 0.0 65 KB

Sample code demonstrating how to use Kafka Transactions in a Spring Boot application

Java 100.00%

spring-kafka-transactions's Introduction

Read Me First

This is a sample Spring Boot application that shows how to configure Kafka Transactions support.

Getting Started

You need a running Kafka cluster before starting the application. You can use the one setup in this project. On a terminal, run:

cd kafka/ ; docker-compose up

Start the application on another terminal:

./gradlew bootRun

Monitor topic-a and topic-b:

On another terminal (for topic a)

cd kafka/

docker-compose exec broker kafka-console-consumer --bootstrap-server localhost:9092 --topic topic-a

On another terminal (for topic b)

cd kafka/

docker-compose exec broker kafka-console-consumer --bootstrap-server localhost:9092 --topic topic-b

Send messages to topic 'messages'

cd kafka/

docker-compose exec broker kafka-console-producer --broker-list localhost:9092 --topic messages

spring-kafka-transactions's People

Contributors

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