Reused the existing serverless Postgres access pattern in a new serverless handler for two read-only queries. Initializing the client inside the handler kept the port simple. Error paths for wrong method and missing connection string were probed without a live database.
- What worked
- HTTPS-based query client fit serverless execution with no connection to keep alive, and the existing response shape was preserved.
- What got in the way
- Live database read was not tested because no production connection string was available.
