Giter VIP home page Giter VIP logo

Comments (10)

mateusjunges avatar mateusjunges commented on July 21, 2024 1

@aungmyatmoethegreat I just cloned your repo, ran docker compose up -d --build and executed the saga:listen and saga:produce commands. I can listen to the messages just fine:

image

from laravel-kafka.

theaungmyatmoe avatar theaungmyatmoe commented on July 21, 2024 1

Hey there, this is now working well now. I just updated for your reference. It's not an issue with this lib at all. It's an issue of Bitnami image's KRAFT listener issue.

from laravel-kafka.

mateusjunges avatar mateusjunges commented on July 21, 2024

@aungmyatmoethegreat in your first version you mentioned it stopped working after you upgraded to Laravel 11. Can you reproduce this issue in a fresh laravel installation?

from laravel-kafka.

theaungmyatmoe avatar theaungmyatmoe commented on July 21, 2024

@aungmyatmoethegreat in your first version you mentioned it stopped working after you upgraded to Laravel 11. Can you reproduce this issue in a fresh laravel installation?

Yes I can,

from laravel-kafka.

theaungmyatmoe avatar theaungmyatmoe commented on July 21, 2024

@mateusjunges I just installed it in a fresh Laravel and Docker setup. There's still an issue with listening, although it works well for producing messages.

https://github.com/aungmyatmoethegreat/kafka-reproduce

from laravel-kafka.

theaungmyatmoe avatar theaungmyatmoe commented on July 21, 2024

I started to worry about the Bitnami Kafka image, so I tested with Confluent Cloud, and the same issue still persists. I can produce the message, but consuming in Laravel Kafka is still an issue. Additionally, I noticed that I have to append ->withSasl() to the config all the time, as the environment variables are not even loaded.

KAFKA_BROKERS=pkc-12576z.us-west2.gcp.confluent.cloud:9092
KAFKA_SECURITY_PROTOCOL=SASL_SSL
KAFKA_MECHANISMS=PLAIN
KAFKA_USERNAME=
KAFKA_PASSWORD=
Screenshot 2024-05-15 at 7 50 02 PM

from laravel-kafka.

mateusjunges avatar mateusjunges commented on July 21, 2024

I'll check out the demo repo in later today. About the ->withSasl call, you have to add it when you are using sasl, the env keys are there only to prevent you from adding it directly to the codebase

from laravel-kafka.

theaungmyatmoe avatar theaungmyatmoe commented on July 21, 2024

Okay thank you for the Sasl reference. But please look the consuming process.

from laravel-kafka.

theaungmyatmoe avatar theaungmyatmoe commented on July 21, 2024

Okay, I would like to test again. What runtime do you use for the docker? Could you please specify your docker runtime? I am currently using orbstack instead of docker desktop.

from laravel-kafka.

theaungmyatmoe avatar theaungmyatmoe commented on July 21, 2024

I just updated config to use docker instead of confluent cloud. Working with confluents is fine. But it's still an issue with kafk-cp or bitnami kafka.

from laravel-kafka.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.