Chapter 8. Testing a Kafka Streams application

This chapter covers

  • Testing a topology
  • Testing individual processors and transformers
  • Integration testing with an embedded Kafka cluster

So far, we’ve covered the essential building blocks for creating a Kafka Streams application. But there’s one crucial part of application development I’ve left out until now: how to test your application. One of the critical concepts we’ll focus on is placing your business logic in standalone classes that are entirely independent of a Kafka Streams application, because that makes your logic much more accessible to test. I expect you’re aware of the importance of testing, but we’ll review my top two reasons for why testing is just as necessary as the development ...

Get Kafka Streams in Action: Real-time apps and microservices with the Kafka Streams API now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.