Setting up a Kafka Cluster with SSL/TLS: A Step-by-Step Guide | Laravel Kafka               Welcome to the Laravel Kafka Blog! | Laravel Kafka

 [ Laravel Kafka ](/)

     Search

 ⌘K

  [   Login with GitHub ](https://laravelkafka.com/oauth/github/redirect)

 ![](https://laravelkafka.com/images/blur-cyan.png) Harness the power of Kafka in your Laravel projects

Use Kafka Producers and Consumers in your laravel app with ease!

 [ View docs ](/) [ View on GitHub ](https://github.com/mateusjunges/laravel-kafka)

 ![](https://laravelkafka.com/images/blue-circle.png) ![](https://laravelkafka.com/images/blue-circle.png)

     MyKafkaConsumer.php

composer.json

 ```
$consumer = Kafka::consumer(["my-topic"])
    ->withBrokers("localhost:8092")
    ->withAutoCommit()
    ->withHandler(new MessageHandler)
    ->build();

$consumer->consume();
```

Welcome to the Laravel Kafka Blog!

 Explore expert insights, hands-on tutorials, and best practices to level up your development workflow and create more efficient, secure applications.

 [  Setting up a Kafka Cluster with SSL/TLS: A Step-by-Step Guide ](/articles/setting-up-a-kafka-cluster-with-ssl-tls-a-step-by-step-guide)
-----------------------------------------------------------------------------------------------------------------------------------------------

     October 21, 2024  Enhance your local Kafka development environment by setting up SSL/TLS encryption. This guide walks you through securing communication between clients and brokers, providing a smoother and more secure development workflow.

 Read article

  October 21, 2024

Sponsors

 [ version="1.0" encoding="UTF-8"?       EasyCal ](https://easycal.app/)

 [ ](https://typesense.org/)
