It's easy to create some libraries to communicate outside Adobe Campaign with the simplicity of Javascript and the HTTPClientRequest class, but as Kafka is not based on HTTP protocol, it's not possible to consume or produce over topics in Campaign. Apache Kafka needs specific libraries (Java, Python...