Skip to content

Create an app to reduce the speed of processing of topics with less data compared with the huge topics.

Notifications You must be signed in to change notification settings

justinjoseph89/kafka-algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Build

kafka-algorithm

Create an app to reduce the speed of processing of less data topics compared with the huge topics.

Important

If you are trying to run this application, you should consider few things before starting:

  • This will work only with the single partition topic.
  • Define proper value for delta values.
  • Try with some wide range of data, Since I need to run more test cases on closer ranges.

Changes

  • Removed saving maxTime in kafka topic and introduced the zookeeper since the compacted topics are hard to maintain.
  • Added the consumer lag property into the algorithm.
  • Generalize functionalities
  • Hardcode the maxTime variable as per your topic data for now, as I need to add the functionality for this in next version.
  • Approach for multiple partitions.

How To Run

  • Please read the application.yaml to configure the application.
  • For better performance, if you are reading from same topic then give the number of partitions as numberOfThreads. Or keep it 1 and run the multiple pods
  • Source Cluster and Target cluster should be different , otherwise the data will enter into the same topic as source. If you want to run this against same cluster then change the KafkaAlgoAppRunner.java constructor to give the different output topic name and lists (Go through class comments).
  • Please note, if the timestamp field is selected manually by setting the property topicsFields then the path should be mentioned in comma seperated form. For example, if the field we need is a which is inside of b, then the value should be set as b,a

About

Create an app to reduce the speed of processing of topics with less data compared with the huge topics.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published