The backend and fetcher apps both connect to a configured Kafka broker on startup. During dev/test, we often need to bring up the backend, fetcher and dependent services (e.g, zookeeper, kafka, and solr) with docker-compose. Relying on depends_on doesn't always work since it only waits for the container that the dependent service is running on, not the actual service process. How can we fix this, possible solution:
https://github.com/vishnubob/wait-for-it
The backend and fetcher apps both connect to a configured Kafka broker on startup. During dev/test, we often need to bring up the backend, fetcher and dependent services (e.g, zookeeper, kafka, and solr) with docker-compose. Relying on
depends_ondoesn't always work since it only waits for the container that the dependent service is running on, not the actual service process. How can we fix this, possible solution:https://github.com/vishnubob/wait-for-it