Skip to content
GitHubLinkedIn

DB endpoints

DB endpoints are stable service entry points for database connectivity. They let systems evolve (move databases, change hosts, swap managed backends) without rewriting connection strings everywhere.

  • Provide stable database entry points (*.db.lef) so environments can evolve without rewriting connection strings everywhere.
  • Separate “what endpoint to use” from “which backend host/port currently serves it”.

This is the TCP equivalent of the “front door” concept you get with HTTP ingress:

  • Reverse proxy: stable hostname → routes HTTP(S) to a backend.
  • DB endpoints: stable hostname (*.db.lef) → routes TCP (SQL/Postgres) to a backend.
  • SQL Server: tcp://<database>.db.lef:1433
  • PostgreSQL (if applicable): tcp://<database>.db.lef:5432
  • Not on VPN/LAN → db.lef names may not resolve or route as expected.
  • TCP proxy down → multiple DB endpoints appear down at once.
  • DNS drift/stale cache → you hit the wrong backend or can’t reach any backend.