How To Cloud #1
Create Kafka cluster with
Confluent Cloud
Apache Kafka
Apache Kafka
● Data streaming platform
● Publish/subscribe model
● Something between message broker and database
New Confluent Cloud cluster
Hello world with ccloud
# Run new Fedora container
$ docker run -it fedora
# Install Confluent Cloud
$ curl -L https://cnfl.io/ccloud-cli | sh -s -- -b /usr/bin
# Login
$ ccloud login
# Find your cluster
$ ccloud kafka cluster list | grep henry
# Select your cluster as default
$ ccloud kafka cluster use mycluster
# Create new Kafka topic
$ ccloud kafka topic create mytopic
Hello world with ccloud
# Create new API key for CLI client
$ ccloud api-key create
# Use created key
$ ccloud api-key use keyid
# Run Kafka consumer in the background
$ ccloud kafka topic consume mytopic
# Install top
$ dnf install procps
# Confirm that ccloud consumer is running
$ top
# Send messages to Kafka
$ ccloud kafka topic produce mytopic

How to cloud #1: Create Kafka cluster with Confluent Cloud

  • 1.
    How To Cloud#1 Create Kafka cluster with Confluent Cloud
  • 2.
  • 3.
    Apache Kafka ● Datastreaming platform ● Publish/subscribe model ● Something between message broker and database
  • 5.
  • 7.
    Hello world withccloud # Run new Fedora container $ docker run -it fedora # Install Confluent Cloud $ curl -L https://cnfl.io/ccloud-cli | sh -s -- -b /usr/bin # Login $ ccloud login # Find your cluster $ ccloud kafka cluster list | grep henry # Select your cluster as default $ ccloud kafka cluster use mycluster # Create new Kafka topic $ ccloud kafka topic create mytopic
  • 8.
    Hello world withccloud # Create new API key for CLI client $ ccloud api-key create # Use created key $ ccloud api-key use keyid # Run Kafka consumer in the background $ ccloud kafka topic consume mytopic # Install top $ dnf install procps # Confirm that ccloud consumer is running $ top # Send messages to Kafka $ ccloud kafka topic produce mytopic