An application declares depends_on: [db], but its initial MySQL connection sometimes fails. Restarting the app later works. How can Compose wait for readiness, and should the application still retry connections?
Editorial starter question from DevCircle, provided for learning and discussion.
The ping checks process responsiveness, not application credentials or schema readiness. Validate those separately. Applications still need bounded connection retries because dependencies can fail after startup. Do not blindly retry writes whose commit status is unknown.