How to Install and Use Kafka Schema Registry
How to Install and Use Kafka Schema Registry Kafka Schema Registry is a separate service that helps ensure message format consistency in Apache Kafka. Let’s see how to install it and use it in real-world scenarios. Installation Options Docker / Docker Compose The fastest way to try it is using Confluent’s Docker images. Example docker-compose.yml snippet: version: '3' services: zookeeper: image: confluentinc/cp-zookeeper:7.5.0 environment: ZOOKEEPER_CLIENT_PORT: 2181 kafka: image: confluentinc/cp-kafka:7.5.0 environment: KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092 KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 schema-registry: image: confluentinc/cp-schema-registry:7.5.0 environment: SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS: PLAINTEXT://kafka:9092 SCHEMA_REGISTRY_LISTENERS: http://0.0.0.0:8081 ports: - "8081:8081" Run with: ...