Code Monkey home page Code Monkey logo

kafka-based-cab-driver-and-user-application's Introduction

✨ Kafka Based Cab Driver And User Application ✨

The Cab Driver application publishes live locations periodically to the Kafka and the User Application listens to the live locations from the Kafka.

Details of the applications

  • I have created 2 Spring Boot applications.
    • One for the Cab Driver application.
    • Another one for the User Application.
  • I have used Gradle build tool to manage dependencies.
  • Cab Driver application is the Producer to the Kafka topic.
  • User application is the Consumer of the Kafka topic.
  • Cab Driver application is connected to the Kafka topic and publishes the messages to that topic.
  • User application is configured to listen to that topic and consume the messages.
  • Postman Collection available in the repository to trigger the Cab Driver API.
  • πŸ’Note: For configuration related to Kafka topics etc., please refer the code.

Few commands (For Windows) πŸ’»

  • 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 a Kafka topic - .\bin\windows\kafka-topics.bat --create --topic quickstart-events --bootstrap-server localhost:9092
  • Describe a Kafka topic - .\bin\windows\kafka-topics.bat --describe --topic quickstart-events --bootstrap-server localhost:9092
  • Write events to Kafka topic - .\bin\windows\kafka-console-producer.bat --topic quickstart-events --bootstrap-server localhost:9092
  • Read events from Kafka topic - .\bin\windows\kafka-console-consumer.bat --topic quickstart-events --from-beginning --bootstrap-server localhost:9092

If you are here, thank you πŸ˜ƒπŸ™


kafka-based-cab-driver-and-user-application's People

Contributors

harishankar-github 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.