Giter VIP home page Giter VIP logo

Comments (4)

sheshankkodam avatar sheshankkodam commented on July 21, 2024 1

@objectuser Yes, you're right. The topics are available in production and staging environments and it works fine there.

However, in the test environment, we are using docker and docker-compose to create an environment. In this case, we wanted to create topics dynamically by setting allow_topic_creation=true.

As a workaround, I'm running these 2 commands to create the topics prior to running the application

docker exec kafka kafka-topics --create --topic "topic1"
docker-compose up application_name

This works but it would be nice to run the application in 1 command like docker-compose up

from kaffe.

sheshankkodam avatar sheshankkodam commented on July 21, 2024

@objectuser Do we have a solution for this?

from kaffe.

objectuser avatar objectuser commented on July 21, 2024

@sheshankkodam The approach we've used is to just create the topics prior to usage. This seems to always be what we want in any case.

Would this work in your case?

from kaffe.

objectuser avatar objectuser commented on July 21, 2024

Yes, I do see what you mean.

What we do is have an init script that creates the topics when the Docker container starts. So we still only do docker-compose up but we need to maintain the scripts.

Since we have a different path, this would be pretty low on our priority list, but if you'd like to do a PR, that would be 🥇 worthy.

from kaffe.

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.