R
Railway16mo ago
Peauts

How to use the Kafka project?

I'm relatively new to Kafka and I want to publish and consume events to the Kafka running in a kafka zookeeper railway project from external code. How should I do this? Also how do I get the api key need to gett logs from kafka to graphana?
6 Replies
Percy
Percy16mo ago
Project ID: 14b01195-935a-4860-b52d-4fcb301d2a14
Peauts
PeautsOP16mo ago
14b01195-935a-4860-b52d-4fcb301d2a14 I when I try to hit the domain for the service with a port number I get these errors {"level":"ERROR","timestamp":"2023-08-23T15:23:18.425Z","logger":"kafkajs","message":"[BrokerPool] Failed to connect to seed broker, trying another broker from the list: Connection timeout","retryCount":2,"retryTime":1150} am I doing something wrong? is my broker not "kafka-production.up.railway.app:29092" How do I set this up so that It can get external messages? Looking it up it seems Like I need to play around with the env variables
Peauts
PeautsOP16mo ago
Confluent
Kafka Listeners – Explained | Confluent
You need to set advertised.listeners (or KAFKA_ADVERTISED_LISTENERS if you’re using Docker images) to the external address (host/IP) so that clients can correctly connect to it. Otherwise, they’ll try to connect to the internal host address—and if that’s…
Peauts
PeautsOP16mo ago
but when I add something like EXTERNAL:kafka-production.up.railway.app:29092 kafka crashes bc it can't bind to that @Brody
Peauts
PeautsOP16mo ago
Oh wow I didn’t know they did kafka too! Thank you!
Want results from more Discord servers?
Add your server