A Kafka consumer combined with gRPC for efficient event-triggered service calls
149
This package implements a Kafka consumer combined with gRPC (Remote Procedure Call). The main goal is to decouple the consumer from the function or service calls triggered by the events listened to by the consumer.
When using a consumer to listen for events to trigger a call or service, it often requires restarting the consumer service, which can be inefficient. To address this, this package provides a solution by using gRPC, allowing for a more efficient and decoupled approach.
Before running the Kafka consumer with gRPC, set the following environment variables:
KAFKA_BROKER: Comma-separated list of Kafka broker addressesGRPC_ADDRESS: Address of the gRPC serverKAFKA_WORKER_POOL_NUMBER: Number of worker pools for concurrent message processingGRPC_DIAL_OPTION: Options for gRPC dialing. Use insecure for local development.CERT_FILE_PATH: Path to the TLS certificate file (required for production environments).Content type
Image
Digest
sha256:b40a0c91b…
Size
312.4 MB
Last updated
about 2 years ago
docker pull baskara/kafka-consumer-grpc:0.0.2