GithubHelp home page GithubHelp logo

kafka-producer-api's Introduction

#Kafka Producer example

A simple kafka producer messages with API REST interface to send messages from a client to Kafka Topics

##Technology used

  • Developed with Java 17
  • Spring Boot 2.7.3
  • Hexagonal Architecture
  • Testing with junit (Júpiter) and Mockito.
  • Jacoco for testing coverage
  • Kafka Clients 3.2.1
  • Factory Pattern, Builder Pattern, Singleton Pattern...
  • MapStruct
  • Lombok
  • Documentation and API controller and model definitions autogenerated by OpenAPI 3.0.3 and Swagger UI

##Swagger UI

Once the application starts you can see the API documentation in:

http://localhost:8081/swagger-ui/index.html

##Kafka Server

You can configure a simple Kafka Server - Zookeeper with Docker:

docker pull johnnypark/kafka-zookeeper

To execute:

docker run -p 2181:2181 -p 9092:9092 -e ADVERTISED_HOST=127.0.0.1 -e NUM_PARTITIONS=3 johnnypark/kafka-zookeeper

###TO DO:

  • Security
  • MockMvc tests
  • Include a MongoDB to save requests
  • Include Webflux
  • Add metrics

kafka-producer-api's People

Contributors

jfjara avatar

Stargazers

 avatar Antonio José Navarro Céspedes avatar Daniel González Ortegón avatar Raúl Maynar avatar David Borrego avatar

Watchers

 avatar

Forkers

gautric

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.