Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 298 Bytes

README.md

File metadata and controls

11 lines (7 loc) · 298 Bytes

kafka

In this project we created a topic "Users" with 2 partitions, the producer takes the names as input and assigns the partition depending on the first letter of the input.

How to run the application

  1. docker-compose up -d
  2. node topic.js
  3. node producer.js name
  4. node consumer.js