BroncoDirectMe / Backend

BroncoDirectMe's API for the Chrome Extension
https://broncodirect.me
9 stars 1 forks source link

Auto rebooting MySQL Connection #52

Closed PattyCakesxD closed 1 year ago

PattyCakesxD commented 1 year ago

As of right now, any calls to our API is done via 1 connection to the MySQL. As such, if that connection disconnects (which it automatically does, around 8 hours of non-use), it is possible to crash the backend server if someone tries to make a call to the server while there isn't a connection.

This highlights a standard we need to follow: always try/catch any potential for errors so the backend server doesn't die. Thanks for coming to my ted talk