2 years ago
Description: Simple Kafka Setup For Small Projects
Category: Queues
9 Replies
a year ago
how can i connect this from node js server in developement and production enviroment
5 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
root101
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:123542 - Modify the env KAFKA_ADVERTISED_LISTENERS to the value generated in step1, like this: PLAINTEXT://public-tcp-url-generate-in-step-1:portI had to do both configurations to get it working for me, maybe it will help the next one
5 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
5 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
5 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
root101
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
5 months ago
Sure will do
root101
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
5 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
5 months ago
Amazing, thanks, i will test this later on.
EDIT: i just test it, it work perfectly...