kafka-streams-viz
kafka-streams-viz copied to clipboard
How to use this tool programmatically?
Hey @zz85 thanks for this great tool! I've been using it for quite some time and it is definitely a big saver.
A qq for you: what should I do if I want to use this tool programmatically? Say if I want to dump a file (pdf, jpeg, whatever) from my Java code that contains the drawings of my Topology.describe()
string?
I'm also interested in toolchain ideas here. Here's what I'm planning to do to quickly be able to build png images.
- I have some clojure code that can spit out the topology description text syntax
- Using the javascript from here, I wrote a small node wrapper that reads topology description on stdin and spits out dot syntax
- I'm then using graphviz (via a docker container I found on docker hub) to convert the
.dot
graphviz text files to.png
images. These aren't as nice as therough.js
ones the web app builds, but they look OK.