Sobes.tech
Senior

Can Kafka work over gRPC?

sobes.tech AI

Answer from AI

Kafka initially does not support working over the gRPC protocol, as Kafka is a distributed messaging system that uses its own protocol over TCP for data transfer between brokers and clients.

However, it is possible to create an intermediate layer (proxy or adapter) that will accept gRPC requests and convert them into Kafka messages, and vice versa. This approach allows integrating services that use gRPC with Kafka, but it adds additional logic on top of Kafka.

Thus, Kafka does not operate "over gRPC" directly, but gRPC can be used to interact with services that, in turn, publish or read messages from Kafka.