Hi,
I deployed Node.js as a solution to return data from database for a React application. The live site works fine but Node.js seems to go to sleep when not in use after a few minutes. Once the site is "on" again - a page loaded (ex: homepage) which requires access to the database - Node.js seems to wake up and return the data, it takes a minute or two to occur. It then performs as expected serving other calls in a timely manner. I have looked everywhere for solutions but I have no answer. I'm posting it here in the hope that someone has an answer.
I deployed Node.js as a solution to return data from database for a React application. The live site works fine but Node.js seems to go to sleep when not in use after a few minutes. Once the site is "on" again - a page loaded (ex: homepage) which requires access to the database - Node.js seems to wake up and return the data, it takes a minute or two to occur. It then performs as expected serving other calls in a timely manner. I have looked everywhere for solutions but I have no answer. I'm posting it here in the hope that someone has an answer.