3 thoughts on “How to Unit Test Kafka”

    1. 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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: