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, NodeJS) to be used. It would be great to have a specific API into the Campaign javascript environment.
I'm sure that question is not new and the R&D team thought about it, and it's won't be technicaly easy, but this question is comming for several of my customers so I'm suggesting here.
Thanks
Cedric