Golang, Software Engineering, Programming, Software Development, DevOps.
set the MaxIdleConns equal to the pool size (also described here): db, err := sql.Open("postgres", dbConnectionString) db.SetMaxOpenConns(8) db.SetMaxIdleConns(8) if err != nil { return nil, err } Execute/Observe/Analyze 3000 requests / second p99 is well below the <60ms! @ 3000 requests per second