Giter Club home page Giter Club logo

kafkalocationapp's Introduction

LocationManagementApp with Kafka (Basic)

This is a basic application that uses kafka to demonstrate producer and consumer relationship and functionalities, how they work. Location is being generated randomly from one service and being consumed by another service simultaneously.

Features

  • Random Location Producr
  • Location details being consumed and updated to subscribers or consumers at real time

Kafka Commands for windows used in this project via cmd after selecting kafka files that contains bin folder

Start Zookeeper server

bin\windows\zookeeper-server-start.bat config\zookeeper.properties

Start kafka server

bin\windows\kafka-server-start.bat config/server.properties

Create Topics

bin\windows\kafka-topics.sh --create --topic user-topic --bootstrap-server localhost:9092

Produce new Topics for testing

bin\windows\kafka-console-producer.bat --topic user-topic --bootstrap-server localhost:9092
>Testing Message

Consume created topics for testing

bin\windows\kafka-console-consumer.bat --topic user-topic --from-beginning --bootstrap-server localhost:9092

Configurations for Consumer Service

Check following configurations Change DB details accordingly

#server
server.port=8081

#Consumer Config
spring.kafka.consumer.bootstrap-servers=localhost:9092
spring.kafka.consumer.group-id=group-1
spring.kafka.consumer.auto-offset-reset=earliest
spring.kafka.consumer.key-deserializer=org.apache.kafka.common.serialization.StringDeserializer
spring.kafka.consumer.value-deserializer=org.apache.kafka.common.serialization.StringDeserializer


Run Locally Backend

Clone the project

  git clone https://github.com/subhajit51193/KafkaLocationApp.git

Go to the project directory

  cd KafkaLocationApp
  cd EdnUserApp

Install dependencies

  mvn clean install

Start the server

  mvn spring-boot:run

Configurations for Producer Service

Check following configurations Change DB details accordingly

#Producer Config
spring.kafka.producer.bootstrap-servers=localhost:9092
spring.kafka.producer.key-serializer=org.apache.kafka.common.serialization.StringSerializer
spring.kafka.producer.value-serializer=org.apache.kafka.common.serialization.StringSerializer


Run Locally Backend

Clone the project

  git clone https://github.com/subhajit51193/KafkaLocationApp.git

Go to the project directory

  cd KafkaLocationApp
  cd FoodDeliveryBoyApp

Install dependencies

  mvn clean install

Start the server

  mvn spring-boot:run

Deployment

Not Deployed

Tech Stack

Client: Java, SpringBoot, Kafka

DataBase: N/A

Server: Embedded Tomcat

Authors

Feedback

If you have any feedback, please reach out to us at [email protected]

๐Ÿ”— Links

portfolio linkedin

kafkalocationapp's People

Contributors

subhajit51193 avatar

Watchers

 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.