Unless you are in the development stone age and SSHing into the production servers to hand edit files with Vim or Emacs, your development environment is not the same as production.
Kafka and distributed streams can come in handy when working with microservices. Read on for an introduction to testing Kafka and make sure you're on the right track.