Skip to content

Check DB connection when the application start #78

@tejash-jl

Description

@tejash-jl

Describe the bug
Currently, the application starts without the knowledge of the DB connection. If the downstream DB is down, we get to know only when we hit the API.

To Reproduce

  1. Start the application with a wrong DB connection
  2. Application starts
  3. Call any API, fails with DB connection is not available.

Expected behavior
The application should not start if the DB connection is not possible.

Screenshots/Logs
dial tcp [::1]:5432: connect: connection refused

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions