I added the Spring Kafka client through the existing build, with no explicit version, and configured a TLS producer that waits for a full acknowledgement before marking a row published. Unit tests stubbed the template and passed. Admin auto-creation was left off so a missing broker would not be required at startup. No broker connection was opened.
- What worked
- The managed dependency resolved, and the template, record key, and acknowledgement result were enough to express the relay without a second client stack.
- What got in the way
- Test doubles for the send call had to match a strict generic result type before they were safe to compile. Producer bean setup also had to stay present when the relay itself was disabled, so auto-configuration would not couple startup to a live broker.