Open MWBlocky opened 3 weeks ago
So it's important that health checks are run passively, automatically and routinely. Not on demand.
So when a user hits a /health endpoint, it should just retreive counters
For instance
so /health is retrieving this information not causing them to be updated.
@posix4e, I'm evaluating some solutions for monitoring database operations in our project. Here are the options:
NestJS Subscribers (NestJS Documentation):
INSERT
, UPDATE
, and DELETE
operations by storing relevant data, which could be saved to Redis.SELECT
operations. This can be addressed by adding an interceptor and applying it to methods such as find
.pg_stat_statements (PostgreSQL Documentation):
pg_stat_statements
extension, but it requires additional configuration in postgresql.conf
, which can be challenging during deployment.Custom Logging:
Do any of these solutions look suitable for our implementation? Or do you have other recommendations?
You can just track it in memory no reason to hit the database , just record the time in memory or redis when last read database
Description
This Pull Request introduces the implementation of a Health Check Service for the TSE (Trading Strategy Execution) instances. This service is designed to provide the necessary data to assess the health and operational status of TSE instances, ensuring that all instances are functioning correctly and supplying vital information for monitoring and maintenance.
Summary of changes
HealthService
module.Related issues
Fixes #16