Live data from Hacker News

Show HN: Is_ready – Wait for many services to become available – 0 Dependencies

github.com

1–10 of 41 posts

Re: Show HN: Is_ready – Wait for many services to become available – 0 Dependencies

#2
Zero dependencies seems like a weird selling point, especially since it depends on Clap, Tokio, a Rust compiler...

A neat project, though. I think that this is best solved in the application itself (e.g. your server starts but returns HTTP errors while the database is unavailable), but being able to retrofit this behaviour into any existing application seems useful. Feels like something very similar should be built into tools like docker-compose.

Re: Show HN: Is_ready – Wait for many services to become available – 0 Dependencies

#3

Zero dependencies seems like a weird selling point, especially since it depends on Clap, Tokio, a Rust compiler... A neat project, though. I think that this is best solved in the application itself (e.g. your server starts but returns HTTP errors while the database is unavailable), but being able to retrofit this behaviour into any existing application seems useful. Feels like something very similar should be built i…

The IMO superior https://github.com/F1bonacc1/process-compose project has this built in, while allowing to manage regular programs that don't require containers.

See: https://f1bonacc1.github.io/process-compose/health/?h=port#r...

Re: Show HN: Is_ready – Wait for many services to become available – 0 Dependencies

#4

Zero dependencies seems like a weird selling point, especially since it depends on Clap, Tokio, a Rust compiler... A neat project, though. I think that this is best solved in the application itself (e.g. your server starts but returns HTTP errors while the database is unavailable), but being able to retrofit this behaviour into any existing application seems useful. Feels like something very similar should be built i…

The IMO superior https://github.com/F1bonacc1/process-compose project has this built in, while allowing to manage regular programs that don't require containers. See: https://f1bonacc1.github.io/process-compose/health/?h=port#r...

I have systemd manage my containers and system processes. Are there any benefits to process-compose over just using systemd?

Re: Show HN: Is_ready – Wait for many services to become available – 0 Dependencies

#5

Zero dependencies seems like a weird selling point, especially since it depends on Clap, Tokio, a Rust compiler... A neat project, though. I think that this is best solved in the application itself (e.g. your server starts but returns HTTP errors while the database is unavailable), but being able to retrofit this behaviour into any existing application seems useful. Feels like something very similar should be built i…

Colloquially a lot of people understand “zero dependencies” to mean “you don’t have to deal with pip/virtualenv/npm/yarn” BS. So, a static binary.

Re: Show HN: Is_ready – Wait for many services to become available – 0 Dependencies

#6

Zero dependencies seems like a weird selling point, especially since it depends on Clap, Tokio, a Rust compiler... A neat project, though. I think that this is best solved in the application itself (e.g. your server starts but returns HTTP errors while the database is unavailable), but being able to retrofit this behaviour into any existing application seems useful. Feels like something very similar should be built i…

I took the statement to imply no runtime dependencies, as no compile-time dependencies doesn’t really make sense.

Re: Show HN: Is_ready – Wait for many services to become available – 0 Dependencies

#7

Zero dependencies seems like a weird selling point, especially since it depends on Clap, Tokio, a Rust compiler... A neat project, though. I think that this is best solved in the application itself (e.g. your server starts but returns HTTP errors while the database is unavailable), but being able to retrofit this behaviour into any existing application seems useful. Feels like something very similar should be built i…

The IMO superior https://github.com/F1bonacc1/process-compose project has this built in, while allowing to manage regular programs that don't require containers. See: https://f1bonacc1.github.io/process-compose/health/?h=port#r...

`process-compose` is a "scheduler and orchestrator". `is_ready` only checks for services to be ready so it seems great when you want to start the services by other means and wait for them to be avialabe (for example, services started in another node of a cluster).

Re: Show HN: Is_ready – Wait for many services to become available – 0 Dependencies

#8
Sometimes waiting for the address is not enough. For example, you might want to wait for a specific API enpoint to return 200 OK, or you might want to wait for database migrations to get applied. Is `is_ready` aiming to cover those cases in the future?

Re: Show HN: Is_ready – Wait for many services to become available – 0 Dependencies

#10

Seriously? is_ready() { while ! nc -z $1 $2; do echo "Waiting for $1:$2..." sleep 1 done echo "$1:$2 is accessible." } is_ready google.com 443 & is_ready x.com 443 & wait

is_ready is an alternative to this.

I built it for many reasons: - Most docker images do not contain netcat so you would have to download one of them in any case. - In the case of is_ready, you won't have to write this script yourself. - Repositories like this had a lot of traffic so I supposed that engineers need a similar tool but this repository requires wget and netcat as dependencies. For this reason, I built my own without any dependencies. https://github.com/eficode/wait-for

Post reply on HN