in reply to Best practices for closing database connections?

You haven't said which database system. In case of PostgreSQL: pgbouncer, a connection pooler, might be useful.

pgbouncer website

  • Comment on Re: Best practices for closing database connections?

Replies are listed 'Best First'.
Re^2: Best practices for closing database connections?
by Polyglot (Chaplain) on Mar 17, 2022 at 11:50 UTC

    I'm on MySQL-like MariaDB.

    Blessings,

    ~Polyglot~