This page was moved to this URL
Author: Ran Silberman
I am a tour guide in Israel with a passion for the Bible. For many years I work in the software industry as a software consultant. I blog in http://ransilberman.blog View all posts by Ran Silberman
3 thoughts on “How to Unit Test Kafka”
If you’re starting ZooKeeper or Kafka and accessing the filesystem, you’re rather doing an integration test than a unit test! http://stackoverflow.com/questions/5357601/whats-the-difference-between-unit-tests-and-integration-tests
Thank you Valeriobruno.
Well, not really.
The Kafka broker that is started here is a local broker that is not part of an integration environment.
Both Kafka and Zookeeper have the Local-Server feature that allow a broker to be initialized locally inside a unit test.
This is better than a mock server as it really checks the writing and reading to/from real Kafka server, in a UnitTest environment.
Excellent post Ran! Thanks a lot