Yolean / kafka-keyvalue

The sequel to https://github.com/Yolean/kafka-cache - over HTTP this time
Apache License 2.0
3 stars 4 forks source link

Kafka key-value cache

For the sidecar-only maintenance branch see the 1.x branch.

Example usage

See the - name: kkv sidecar in the example yaml.

Constraints

Development

Use [Skaffold](), for example:

eval $(minikube docker-env)
kubectl apply -k github.com/Yolean/kubernetes-kafka/variants/dev-small?ref=v6.0.0
kubectl apply -f https://github.com/Yolean/kubernetes-kafka/raw/50345f266287861d7964d3339a2c2a28e79db2fe/variants/prometheus-operator-example/k8s-cluster-rbac.yaml
SKAFFOLD_NO_PRUNE=true skaffold dev

Builds

JVM:

y-skaffold build --file-output=images-jvm.json

Single-arch native:

y-skaffold build --platform=linux/[choice-of-arch] -p prod-build --file-output=images-native.json

Multi-arch native (expect 3 hrs build time on a 3 core 7Gi Buildkit with qemu):

y-skaffold build -p prod-build --file-output=images-native.json --cache-artifacts=false

Logging

See Quarkus' logging configuration.

KKV Node.js Client

Installable from https://www.npmjs.com/package/@yolean/kafka-keyvalue

Implements the kafka-cache interface but backed by KKV.