Skip to content

Missing Health Check Endpoints in All Microservices - Team 065 #4

Description

@Shubhp0712

Description

The architecture diagram in README.md documents /health endpoints for all three microservices (order_service, product_service, user_service), but these endpoints are not implemented in the actual code.

Current Behavior

  • Calling GET /health on any service returns 404 Not Found
  • No health check endpoints exist in app.py files

Expected Behavior

Each service should respond to GET /health with:

  • Status code: 200 OK
  • JSON response indicating service health and database connectivity

Location

  • user_service/app.py
  • product_service/app.py
  • order_service/app.py

Impact

  • Cannot use health checks for container orchestration
  • Documentation-code inconsistency
  • Missing critical production feature

Suggested Solution

Implement /health endpoint in each service that:

  1. Returns 200 OK if service is healthy
  2. Checks database connectivity
  3. Returns appropriate JSON response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions