veza/veza-backend-api/internal
senke f6a40c9ec6 [BE-SVC-017] be-svc: Implement graceful shutdown
- Created ShutdownManager for coordinated graceful shutdown of all services
- Added Shutdowner interface for services that need graceful shutdown
- Implemented parallel shutdown with individual timeouts (10s per service)
- Added global shutdown timeout (30s total)
- Integrated shutdown manager in main.go for:
  - HTTP server shutdown
  - JobWorker cancellation
  - Config.Close() (DB, Redis, RabbitMQ)
  - Logger sync
  - Sentry flush
- Added comprehensive unit tests for shutdown manager
- Prevents registration of new services during shutdown

Phase: PHASE-6
Priority: P2
Progress: 113/267 (42.32%)
2025-12-24 17:03:11 +01:00
..
api [BE-SVC-016] be-svc: Implement health check improvements 2025-12-24 17:00:53 +01:00
common refonte: backend-api go first; phase 1 2025-12-12 21:34:34 -05:00
config [BE-SVC-015] be-svc: Implement logging aggregation 2025-12-24 16:58:58 +01:00
core [BE-SVC-001] be-svc: Implement caching layer for frequently accessed data 2025-12-24 16:02:16 +01:00
database [BE-DB-018] be-db: Add database performance monitoring 2025-12-24 15:58:48 +01:00
dto [BE-API-001] api: Implement 2FA endpoints (setup, verify, disable) 2025-12-23 01:40:28 +01:00
email STABILISATION: phase 3–5 – API contract, tests & chat-server hardening 2025-12-06 17:21:59 +01:00
errors refactor(marketplace): enforce unified api response envelope 2025-12-06 17:39:04 +01:00
eventbus adding initial backend API (Go) 2025-12-03 20:29:37 +01:00
features adding initial backend API (Go) 2025-12-03 20:29:37 +01:00
handlers [BE-SVC-016] be-svc: Implement health check improvements 2025-12-24 17:00:53 +01:00
infrastructure STABILISATION: phase 3–5 – API contract, tests & chat-server hardening 2025-12-06 17:21:59 +01:00
interfaces adding initial backend API (Go) 2025-12-03 20:29:37 +01:00
jobs STABILISATION: phase 3–5 – API contract, tests & chat-server hardening 2025-12-06 17:21:59 +01:00
logging [BE-SVC-015] be-svc: Implement logging aggregation 2025-12-24 16:58:58 +01:00
metrics [BE-DB-018] be-db: Add database performance monitoring 2025-12-24 15:58:48 +01:00
middleware [BE-SVC-002] be-svc: Implement rate limiting per user 2025-12-24 16:04:36 +01:00
models [BE-SVC-009] be-svc: Implement notification service 2025-12-24 16:41:11 +01:00
monitoring stabilizing veza-backend-api: P1 & P2 2025-12-16 13:34:08 -05:00
repositories [BE-DB-003] be-db: Add soft delete support to all models 2025-12-24 15:07:25 +01:00
repository adding initial backend API (Go) 2025-12-03 20:29:37 +01:00
response stabilizing veza-backend-api: phase 1 2025-12-16 11:23:49 -05:00
security adding initial backend API (Go) 2025-12-03 20:29:37 +01:00
services [BE-SVC-014] be-svc: Implement monitoring and alerting 2025-12-24 16:54:19 +01:00
shutdown [BE-SVC-017] be-svc: Implement graceful shutdown 2025-12-24 17:03:11 +01:00
testutils stabilizing veza-backend-api: phase 1 2025-12-16 11:23:49 -05:00
types adding initial backend API (Go) 2025-12-03 20:29:37 +01:00
utils [BE-SEC-009] be-sec: Implement input sanitization 2025-12-24 12:15:25 +01:00
validators [BE-SEC-006] security: Implement comprehensive password strength validation 2025-12-24 12:08:03 +01:00
workers stabilizing veza-backend-api: phase 1 2025-12-16 11:23:49 -05:00