Giter VIP home page Giter VIP logo

kafka-topic-cloner's People

Contributors

etienneguerlais avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

kafka-topic-cloner's Issues

Prevent same-topic cloning

To prevent mistakes, cloning into the source topic should be impossible.
A parameter could be passed to force same-topic cloning.

Use async producer

An async producer would provude better performances thanks to batch producing.
Make sure that the messages order stays untouched.

Reduce verbose logs

The message consumed and message produced are filling stdout very quickly. We could log only one in a hundred or something similar.

Allow cross-cluster cloning

a second url could be passed as the destination topic's broker. This would allow cloning from a cluster to another.

Kafka package

Move consuming and producing to the kafka package

Add a timeout to the consumer

A timeout to the consumer, similar to what we do with console consumer (timeout.ms) could let the user know when the cloning is ended by terminating the application

Add a flag to override (or not) the producer timestamp

Cloning a topic's content currently overrides the producer timestamp which is contained in the event's metadata with the cloning time.
While this can sometimes be the desired behavior, it is not always the case.
A flag could be added with three different behaviors:

  • Set the timestamp to the cloning time
  • Do not touch the timestamp
  • Set the timestamp to the cloning time only for events that don't have one

Add help command

Add a --help command that displays the list of commands / arguments

Testing

Unit and integration testing :)

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.