KafkaIQ

10.10.1 – REST Proxy Deployment & Configuration

Module: Section 10 – Kafka Ecosystem & Tools
Section: 10.10 – REST Proxy Operations & Ecosystem Tools
Goal: Deploy and configure REST Proxy


Installation

# Download Confluent Platform
wget https://packages.confluent.io/archive/7.5/confluent-7.5.0.tar.gz
tar -xzf confluent-7.5.0.tar.gz

# Start REST Proxy
cd confluent-7.5.0
./bin/kafka-rest-start etc/kafka-rest/kafka-rest.properties

Configuration

kafka-rest.properties:

# Kafka brokers
bootstrap.servers=localhost:9092

# REST Proxy listening port
listeners=http://0.0.0.0:8082

# Schema Registry
schema.registry.url=http://localhost:8081

# Consumer settings
consumer.request.timeout.ms=30000
consumer.instance.timeout.ms=300000

Docker Deployment

version: '3'
services:
  rest-proxy:
    image: confluentinc/cp-kafka-rest:latest
    ports:
      - "8082:8082"
    environment:
      KAFKA_REST_HOST_NAME: rest-proxy
      KAFKA_REST_BOOTSTRAP_SERVERS: kafka:9092
      KAFKA_REST_LISTENERS: http://0.0.0.0:8082
      KAFKA_REST_SCHEMA_REGISTRY_URL: http://schema-registry:8081

Key Takeaways

  1. Port: 8082 (default)
  2. Config: Bootstrap servers, Schema Registry URL
  3. Docker: Simple containerized deployment

What's Next?

Next Module: 10.10.2 – Security Considerations