Coder Social home page Coder Social logo

kafka-watcher's People

Watchers

 avatar  avatar

Forkers

cchenshuai

kafka-watcher's Issues

Add locale switcher and store locale in a cookie

The locale in a browser seems to be a bit of a guess and is hard to change for the user at least in firefox. Therefore we should provide a simple locale selector on the UI and store the result in a cookie.

The locale is currently used for thousands separator. Need to decide whether I want to use it for the date too.

If nothing is selected, we won't force anything into a cookie but just go along with whatever HttpServletRequest.getLocale() spits out.

Accessing the topic page impossible when Kafka is not available

There should be a timeout within a few seconds notifying the user that Kafka can not be reached when no Kafka can be contacted.

Not to forget to clearly state in the error message which host:port we were trying to contact.
Currently the click on topics or just the default page hangs in this case.

Collect windowed stats to show

On the offsets URL, collect windowed stats in particular of the consumer lags. Might be just simple snapshots every N seconds which can be paged through or displayed as a simple graph.

KafkaConsumer used in a non thread safe manner

The QueueWatcher reuses the same KafkaConsumer on each request. As long as only one person is using the UI this is nearly never a problem. But this is plain wrong for a web application and needs to be changed. Need to decide whether to use ThreadLocal or whether to construct a new consumer each time. On my laptop this takes 500ms. Since this UI will likely not expect several hits per second, creating a new consumer each time should be fine. (ThreadLocal has no means to register a cleanup when the thread ends!)

Logging and feedback while reading the __consumer_offsets

With several 100k of consumer-offsets, it takes a while for the Offsets viewer to get to the current state. Three things to do:

  1. Don't log milliseconds but fractional seconds for better readability.
  2. Log every N offsets read to demonstrate progress.
  3. Give feedback on UI while the offsets are not yet completely read.

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.