I'm working on a nodejs server.
I see there are many ways to implement mysql connection as:
1 connection and never it never end (handle error and re connect again)
A connection pool (How can i know my mysql server allow how many connections at a time)
Init a new connection when we need it (a http resquest...) then end it when done.
My question is: What is the best way to do implement mysql on my server. Or each of them has cons or pros -> show me.