Javablog.com Kafka Integration

In the latest commit, I added an adapter-kafka into my javablog.com/services project. Apache Kafka will implement the TranslationPort in the hexagonal architecture that is evolving in the javablog API. There are two Topics: translation.requests and translation.responses. Javablog.com will write to the requests and Polybit.ch will read the message. Polybit.ch will write to the responses with a completed translation from an LLM. Javablog.com will poll the translation.responses topic every few minutes and persist the translations as they come in.

I put in a lot of effort to get the secure remote Apache Kafka connection stabilized using Keycloak for SASL_SSL/OAUTHBEARER tokens. Since Apache Kafka will live in the same docker network as the JavaBlog.com API, it uses plaintext 9092. Pretty neat.

评论

评论用于对本文的反馈。如有一般性问题,请使用Stack Overflow。评论可能在一年后被删除。

暂无评论。成为第一个分享您想法的人!