I have a simple kafka streams app that utilizes interactive queries and uses RESTfull for instances communication.
The app works fine outside of docker with multiple streams instance. And the streams#allMetadata() returns a correct list of all running instances. However, once I run the app inside docker, the results of streams#allMetadata() is an empty array [].
Note: when running in docker, everything works except the discoverability of other instances. [I can interact with different streams instances and can get the data they are storing]
I've already looked at other posts here with the same issue, but mine seems a bit different other posts
- I have the same
APPLICATION_ID
in all my instances. - The communication between Kafka and any individual instance is working. And Streams are working correctly [meaning
BOOTSTRAP_SERVERS_CONFIG
is configured correctly] - Data are stored correctly on all instances and I can interact with each instance directly through its IP[meaning
APPLICATION_SERVER_CONFIG
is configured correctly on each instance] - I am running the same version of Kafka and Streams v1.1.0.
- I tried confluent and landoop Kafka docker images, same results.
What am I missing here?