After deployment, the backend server was very slow

I deployed the backend code. After deployment, I was trying to login, but it took one minute to get the response. Though I got the response within milliseconds in my local. Could you please tell me what happens in my code?

Hi there,

Your service here is using our free instance type. Free instance types spin down after 15 minutes of inactivity and then will restart when they next receive a request, which can take up to a minute or so. This behavior is documented at https://render.com/docs/free.

If you need your service always be available, moving to a paid instance type avoids this behavior, and the service will remain running constantly.

To change the instance type, follow these steps:

  • Navigate to the service in our dashboard
  • Open the ‘settings’ tab
  • Click on the ‘Edit’ button within the ‘Change Instance Type’ section
  • Select the instance type you wish to use (the minimum to avoid sleeping is Starter)
  • If you want to change back to the free instance type, repeat this process but select ‘free’

Regards,
Mike


Render Support Engineer, MT (UTC-6, UTC-7 in Winter)