Periodical web site health checker should be created. Health checker should use aiven services: Postgres DB and Kafka queue.
Application consists of 2 parts:
- Producer, which connects to the kafka queue and sends the result of measuring of the page speed load, response code and pre defined string existance to the queue.
- Consumer, which connects to the same queue and do polling. Both parts are built with docker and can be launched on ECS or GCP Cloud Run.
docker build -f Dockerfile -t aiven .
docker build -f Dockerfile.producer -t aiven_producer . && docker run --env-file .env -it aiven_producer
docker build -f Dockerfile.consumer -t aiven_consumer . && docker run --env-file .env -it aiven_consumer
- Python 3
- Docker
- PostgreSQL
- Kafka
- Docker
@belushkin
MIT License