-
Hello team, In our project, we want to use Redpanda as a broker to allow domains to stream data between each other. Our DDD stack is based on Laravel, so we had to create a PHP library to use Redpanda in our DDD stack. Currently, we are facing an issue. Our Redpanda stack is divided into different Docker containers: our PHP library "redpanda_php" and the Redpanda stack based on "redpandadata/redpanda". Our goal is to allow domains to create topics dynamically based on their domain and the domain event or data to be stored. In our "redpanda_php" library, we want to design a class with associated methods so that developers can easily create topics within their domains. The problem is that we can't find any API routes to perform this topic creation action. Could you please let us know if we have missed something and such an API route exists? Or have we misunderstood a concept and there is another route we can use to create topics? Thank you in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
How are you interacting with redpanda? Are you using Pandaproxy over HTTP or a PHP kafka client? The PHP client I linked too has an API to create topics using |
Beta Was this translation helpful? Give feedback.
How are you interacting with redpanda? Are you using Pandaproxy over HTTP or a PHP kafka client?
The PHP client I linked too has an API to create topics using
newTopic
: https://github.com/arnaud-lb/php-rdkafka/blob/0aee7cf70a287d3e901787be144b7ff5a1441701/rdkafka.stub.php#L40