Web service freezing issue!

I’m a Nodejs developer. I’m facing an issue with my node app, let me explain. I have a bot that I developed using Nodejs, I deployed this node app on many hosting platforms but I never faced any issues, but when I deploy my bot on Render it works perfectly, but after a few moments it stops working and stays still, many hour passes but it stays still. even on my PC, I run my bot for over 24 hours without issues. So how can I fix this issue or is this a render server issue?

Hi there,

Are you trying to run the bot as a Web Service? If so, bots are best deployed to us using a Background Worker - these run persistently in the background and don’t expose any web server however, these service types aren’t available with a free instance type.

If you try and run a bot via a Web Service the deployment will probably fail, typically about 10 minutes after you’ve deployed it, and sometimes there are scenarios where 2 may be running for a period of time. This is down to our zero-downtime feature and not something that can be disabled.

If this doesn’t answer your question, just let us know.

Regards,
Mike


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

Actually, my bot exposes a dashboard web on the internet and it’s important, so what should I do now?

Hi there,

You may want to consider splitting this into two services: one for the website (web service) and one for the bot (background worker).

We don’t recommend having one service serve multiple applications.

Regards,
Mike


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