Recent submissions

Comment · 2 years ago
Healthchecks are a great way to achieve this.

As this repository mentions, this is the example using PostgreSQL.

depends_on: postgres-database: condition: service_healthy

healthcheck: test: ["CMD-SHELL", "pg_isready"] interval: 10s timeout: 5s retries: 5

However, PostgreSQL has already a command for this called pg_isready.

How is this going to work for other cases such as MySQL?

Comment · 2 years ago
Many people have the following setup in docker-compose.yml file.

version: '3' services: mysql: image: mysql:8.0

  app:
    build: .
    command: is_ready --timeout 10 --addr mysql:3306 -- <run migrations command>
For cases like this, returning 503 every time the database is not ready, is not very convenient.
Comment · 2 years ago
To be honest, I wanted to make the title more specific regarding dependencies but the title was already too big.
Comment · 2 years ago
Comment · 2 years ago
Can you suggest to me one way for an API service to wait for a database to accept connections to run the database migrations without the API depending on the liveness of the database to start up?
Comment · 2 years ago
Interesting idea for a feature request. I would love to read a GitHub issue with your specific case so I can start investigating and think about how to solve a problem like this.
Comment · 2 years ago
Interesting project, I was not familiar with that. Thanks for letting me know :)
Comment · 2 years ago
Regarding zero dependencies, I meant that it is a static binary and does not need any external tools to be installed. For example, some alternatives require netcat to be installed.
Comment · 2 years ago
Comment · 3 years ago
I also believe that one week and 30mins are are not enough for 1-on-1s.

In my company, we do 1-on-1s once a month for 1 hour. The manager asks questions like:

- How are you? - What's the skill that you are trying to improve this month? - How I (the manager) or the company can help you to improve this skill? -Do you feel that your responsibilities in the company are common with your personal goals?

I think that these meetings are successful when there is a clear agenda and both sides are prepared.

Personally, I feel very happy with these meetings.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton