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

 [ K Laravel Kafka ](/) [Docs](/docs) [Blog](https://laravelkafka.com/blog) [GitHub](https://github.com/mateusjunges/laravel-kafka) 

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

  Documentation 

 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) 

 MyKafkaConsumer.php composer.json 

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

$consumer->consume();
```

 ```
{
    "require": {
        "mateusjunges/laravel-kafka": "^2.11"
    }
}
```

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/)
