Altinn / altinn-notifications

Altinn platform microservice for handling notifications (mail, sms, etc)
MIT License
2 stars 3 forks source link

Set up health checks confirming Kakfa connectivity as producer #160

Closed acn-sbuad closed 1 year ago

acn-sbuad commented 1 year ago

Description

We need a health check to confirm the connectivity between the e-mail service and the Kafka broker.

Considerations

Development tasks

Test

Acceptance criteria

acn-sbuad commented 1 year ago

Confirming connectivity with producer health check for now. Cannot guarantee that the consumer will read from the partition that a new health check message is written to without creating a flaky check. Implemented and tested ok for notifications

acn-sbuad commented 12 months ago

Using AspNetCore.HealthChecks.NpgSql attempts to read from the yniqul table which the user has no rights to do (?). Anyways it ends with an exception `


Unhandled exception. Npgsql.NpgsqlException (0x80004005): Exception while reading from stream

Custom health check towards postgre has run successfully