2 years ago
Description: Simple Kafka Setup For Small Projects
Category: Queues
9 Replies
2 years ago
how can i connect this from node js server in developement and production enviroment
9 months ago
I think the template description should include the following to complete the installation/start-using-it:
1 - Expose the service with a TCP proxy pointing to port 9092, this will provide a public url like: random-url.proxy.rlwy.net:12354
2 - Modify the env KAFKA_ADVERTISED_LISTENERS to the value generated in step1, like this: PLAINTEXT://public-tcp-url-generate-in-step-1:port
I had to do both configurations to get it working for me, maybe it will help the next one
jesushdez
I think the template description should include the following to complete the installation/start-using-it: 1 - Expose the service with a TCP proxy pointing to port 9092, this will provide a public url like: [random-url.proxy.rlwy.net:12354](http://random-url.proxy.rlwy.net:12354) 2 - Modify the env KAFKA\_ADVERTISED\_LISTENERS to the value generated in step1, like this: PLAINTEXT://[public-tcp-url-generate-in-step-1:port](http://random-url.proxy.rlwy.net:12354) I had to do both configurations to get it working for me, maybe it will help the next one
9 months ago
Will add this thank you!
The current setup was made for use using the private url but I will add support for public url as well
angobello
Will add this thank you! The current setup was made for use using the private url but I will add support for public url as well
9 months ago
Yes, I realized that it is designed for internal use, but for local testing we need a public URL... that's why I think it's valid to explain it in the description.
In any case, very good template, thanks for the contribution
9 months ago
Hey, may I suggest an improvement?
It would be possible to add a volume to the template?, so that the sent messages are saved in case the service is restarted.
I tried to do it on my own but I got a permissions error.
It would be great if you could help me with this.
Best Regards
jesushdez
Hey, may I suggest an improvement? It would be possible to add a volume to the template?, so that the sent messages are saved in case the service is restarted. I tried to do it on my own but I got a permissions error. It would be great if you could help me with this. Best Regards
9 months ago
Sure will do
jesushdez
Yes, I realized that it is designed for internal use, but for local testing we need a public URL... that's why I think it's valid to explain it in the description. In any case, very good template, thanks for the contribution
9 months ago
Hello,
Added the public url as KAFKA_PUBLIC_URL, the volume stuff is trickier than i thought but currently hammering at it
angobello
Hello, Added the public url as KAFKA\_PUBLIC\_URL, the volume stuff is trickier than i thought but currently hammering at it
9 months ago
Amazing, thanks, i will test this later on.
EDIT: i just test it, it work perfectly...